Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / November 2005

Tip: Looking for answers? Try searching our database.

SUM Days (to 30), Months (to 12) and Years

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
an - 23 Nov 2005 12:04 GMT
Hello!

I have:

YY   MM   DD
2     9     20
4     3     15

I would like your help for the next result after sum periods:

YY    MM    DD
 7     1       5

Thanks in advance.
an
Roger Govier - 23 Nov 2005 12:28 GMT
Hi Just Extend the logic posted to your previous question on years and months.

=SUM(A2:A3)+INT(SUM(B2:B3)/12)
in Cell B4
=MOD(SUM(B2:B3),12)+INT(SUM(C2:C3)/30)
in cell C4
=MOD(SUM(C2:C3),30)

Note
This will not be accurate due to variation in month lengths.

Regards

Roger Govier

> Hello!
>
[quoted text clipped - 11 lines]
> Thanks in advance.
> an
an - 23 Nov 2005 14:19 GMT
Exactly, RG

Many thanks, more one time.
an

> Hi Just Extend the logic posted to your previous question on years and months.
>
[quoted text clipped - 26 lines]
> > Thanks in advance.
> > an
Niek Otten - 23 Nov 2005 13:19 GMT
=YEAR(DATE(A1+A2,B1+B2,C1+C2))-1900
=MONTH(DATE(A1+A2,B1+B2,C1+C2))
=DAY(DATE(A1+A2,B1+B2,C1+C2))

But you get 4, not 5 for the day.

Signature

Kind regards,

Niek Otten

> Hello!
>
[quoted text clipped - 11 lines]
> Thanks in advance.
> an
Niek Otten - 23 Nov 2005 13:31 GMT
In this case. If your data were
2 9 20
4 5 15

you would get 7 for the day

Signature

Kind regards,

Niek Otten

> =YEAR(DATE(A1+A2,B1+B2,C1+C2))-1900
> =MONTH(DATE(A1+A2,B1+B2,C1+C2))
[quoted text clipped - 17 lines]
>> Thanks in advance.
>> an
an - 23 Nov 2005 14:20 GMT
Thanks, too.
an

> In this case. If your data were
> 2 9 20
[quoted text clipped - 23 lines]
> >> Thanks in advance.
> >> an
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.