Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tanya
 
Posts: n/a
Default sum of date ranges

I have the formula to calcuate date ranges which are returned in the
following format:
C D E
2 0years 4months 9days worked in Dept. A
3 4years 2months 15days worked in Dept. B
4 28years 8months 30days worked in Dept. C

What formula would I use to calculate the total number of years worked in
all three departments?


  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

If you have dates for these time periods it would probably
be easier to something like a DATEDIF formula.

The problem arises when you try to calculate how many days
are in a month. 28,29,30,31?

=SUMPRODUCT(--(SUBSTITUTE(C2:C4,"years",""))) = 32
=SUMPRODUCT(--(SUBSTITUTE(D2:D4,"months",""))) = 14
=SUMPRODUCT(--(SUBSTITUTE(E2:E4,"days",""))) = 54

To go any further and refine the months and days you would
need to define just how many days are in a month.

Biff

-----Original Message-----
I have the formula to calcuate date ranges which are

returned in the
following format:
C D E
2 0years 4months 9days worked in Dept.

A
3 4years 2months 15days worked in Dept.

B
4 28years 8months 30days worked in Dept. C

What formula would I use to calculate the total number of

years worked in
all three departments?


.

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
Date issue between Windows and Macintosh version dlg1967 Excel Discussion (Misc queries) 4 January 19th 05 03:51 PM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM
calculating date time ranges Patrick Excel Worksheet Functions 2 November 11th 04 05:07 AM


All times are GMT +1. The time now is 09:08 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"