LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default adding differences between dates

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"RobertK" wrote in message
...
Thanks, that did it.
--
Robert K


"T. Valko" wrote:

Try this array formula** :

=SUM(IF(A2:A100<"",IF(B2:B100<"",B2:B100-A2:A100,TODAY()-A2:A100)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"RobertK" wrote in message
...
Thanks, but is there any way to do it without repeating the formula.
I'm
looking for a cell formula.
--
Robert K


"T. Valko" wrote:

Try this entered in column C:

=IF(A2<"",IF(B2<"",B2-A2,TODAY()-A2),"")

Copy down as needed, then to get a grand total:

=SUM(C2:C100)

--
Biff
Microsoft Excel MVP


"RobertK" wrote in message
...
I have 2 column A & B. Both columns have 100s of rows but they may
not
all
be filled, many will be blank. I want to know the number of days
there
are
(total) betwen the two columns when there is an entry in both
columns
plus
the numbers of days there are from today (total) when only column A
has
a
date. If column B has a date column A will also have a date.

Example

A B
1/2/09 2/3/09
3/6/08

6/7/09 7/4/09

4/5/08

3/6/09 3/30/09

--
Robert K








 
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
Differences between Dates Jack Excel Worksheet Functions 5 July 7th 08 08:50 PM
Formula to calculate differences between dates?? Lisa Excel Discussion (Misc queries) 8 March 30th 07 06:56 PM
Calculating differences in dates Paul Sheppard Excel Discussion (Misc queries) 5 June 30th 05 01:18 PM
calculating time/dates differences fvglassman Excel Discussion (Misc queries) 3 June 22nd 05 11:10 PM
Calculating differences between dates ALISONHELP Excel Worksheet Functions 2 April 6th 05 10:27 AM


All times are GMT +1. The time now is 09:55 PM.

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"