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 / New Users / April 2007

Tip: Looking for answers? Try searching our database.

rounding in excel tables to add months

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JudyT - 19 Apr 2007 20:36 GMT
We have a table that we are adding years and months such as 5.1 is equal to 5
years and 1 month.  What we want to have happend is excel to stop the
rounding and add the months like months with a base of 12 not 10.  We have
tried, int, rounding, changing formats, precise formatting...and are at a
loss.

Please help in despartate need.
JudyT
Niek Otten - 19 Apr 2007 21:08 GMT
Hi Judy,

There is no simple reliable way to add dates like that.
Use Excel's built-in date facilities instead.
To learn all about calculating with dates, look here:

http://www.cpearson.com/excel/datetime.htm#AddingDates

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| We have a table that we are adding years and months such as 5.1 is equal to 5
| years and 1 month.  What we want to have happend is excel to stop the
[quoted text clipped - 4 lines]
| Please help in despartate need.
| JudyT
Niek Otten - 19 Apr 2007 21:20 GMT
<There is no simple reliable way>

Not entirely true.

With the date in A1 and the "time" to be added in B1:

=DATE(YEAR(A1)+INT(B1),MONTH(A1)+MOD(B1,1)*10,DAY(A1))

Nevertheless, do read the article I pointed you to.

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| Hi Judy,
|
[quoted text clipped - 12 lines]
|| Please help in despartate need.
|| JudyT
MartinW - 20 Apr 2007 11:28 GMT
Hi Judy,

As Niek says you are probably better off sticking with Excel's
built-in date facilities but for what it is worth the following formula
will convert your decimal input to the decimal equivalent on a
basis of 12 instead of ten.

=INT(A1)+((A1-INT(A1))*10)/12

HTH
Martin

Rate this thread:






 
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



©2008 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.