Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default calc # of d, m, y, then round to nearest fraction

Hello, I have been reading a lot of the Q&A here, but I haven't found one
that worked perfectly for my spreadsheet. I even went to the Pearson site,
but I didn't have any luck with the formulas.

GOAL: Multi-function cell
Calculate the number of days, months, and years, then have each result
displayed as a specific number (rounded to the nearest fraction, preferably
to the 100th or even as a quarter fraction).

Can anyone provide the exact formula for me to use?

Please use the following cells:
A1 = Date Submitted
B1 = Date Approved
C1 = Length of Time: Days
D1 = Length of Time: Months
E1 = Length of Time: Years

Thank you very much!
--
Ruby
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 252
Default calc # of d, m, y, then round to nearest fraction

These formulas will give you the whole number of days, months, and years.

=DATEDIF(A1,B1,"MD")
=DATEDIF(A1,B1,"YM")
=DATEDIF(A1,B1,"Y")

Why would you want fractions? How much of a month is 1 day; 1/31 of a
month, or 1/30? If you really wanted to estimate the fraction portion you
could try these instead

=B1-A1
=(B1-A1)/30
=(B1-A1)/365

"Ruby" wrote:

Hello, I have been reading a lot of the Q&A here, but I haven't found one
that worked perfectly for my spreadsheet. I even went to the Pearson site,
but I didn't have any luck with the formulas.

GOAL: Multi-function cell
Calculate the number of days, months, and years, then have each result
displayed as a specific number (rounded to the nearest fraction, preferably
to the 100th or even as a quarter fraction).

Can anyone provide the exact formula for me to use?

Please use the following cells:
A1 = Date Submitted
B1 = Date Approved
C1 = Length of Time: Days
D1 = Length of Time: Months
E1 = Length of Time: Years

Thank you very much!
--
Ruby

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default calc # of d, m, y, then round to nearest fraction

Thank you, Sloth. The person who I'm preparing this for wants the results as
accurate and precise as possible, so that's why I'm using fractions. (I know,
if it were up to me, I'd be fine with integers.)

Your second set of functions worked very well...
1-Feb-06 1-Apr-07 424.00 d 14.13 m 1.16 y
....but the # of days in a month aren'ts always 30. I read in one post to
use "30.4..." (something like that), but that doesn't seem accurrate - or is
it?

The first set did work for same years, but it did not round to nearest
fraction:
28-Nov-05 6-Dec-05 8.00 d 0.00 m 0.00 y

The first set did not work with different years:
1-Feb-06 1-Apr-07 0.00 d 2.00 m 1.00 y

Any additional suggestions is much appreciated.

--
Thank you,
Ruby


"Sloth" wrote:

These formulas will give you the whole number of days, months, and years.

=DATEDIF(A1,B1,"MD")
=DATEDIF(A1,B1,"YM")
=DATEDIF(A1,B1,"Y")

Why would you want fractions? How much of a month is 1 day; 1/31 of a
month, or 1/30? If you really wanted to estimate the fraction portion you
could try these instead

=B1-A1
=(B1-A1)/30
=(B1-A1)/365

"Ruby" wrote:

Hello, I have been reading a lot of the Q&A here, but I haven't found one
that worked perfectly for my spreadsheet. I even went to the Pearson site,
but I didn't have any luck with the formulas.

GOAL: Multi-function cell
Calculate the number of days, months, and years, then have each result
displayed as a specific number (rounded to the nearest fraction, preferably
to the 100th or even as a quarter fraction).

Can anyone provide the exact formula for me to use?

Please use the following cells:
A1 = Date Submitted
B1 = Date Approved
C1 = Length of Time: Days
D1 = Length of Time: Months
E1 = Length of Time: Years

Thank you very much!
--
Ruby

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Round amount to nearest $10 after other formula calc. in same cell debtors Excel Worksheet Functions 2 March 24th 06 11:45 AM
Format Round to Nearest Thousand GillianHG Excel Discussion (Misc queries) 3 March 21st 06 06:43 PM
Need additoinal symbols for fractions jmcclain Excel Discussion (Misc queries) 4 January 5th 06 04:46 AM
Round Up to Nearest 10 Marek Excel Worksheet Functions 4 April 29th 05 01:16 PM
Round time to nearest quarter hr John Excel Worksheet Functions 2 March 16th 05 09:41 PM


All times are GMT +1. The time now is 11:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"