#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Counting Dates

I need to count days between 2 dates in 2 cells. Like B:2-B:1. In case B2 is
empty i need that to be counted as on today-system date. Can you help on that?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Counting Dates

This is probably what you are looking for...

=IF(B2="",TODAY()-B1,B2-B1)

Rick


"Riyaz" wrote in message
...
I need to count days between 2 dates in 2 cells. Like B:2-B:1. In case B2
is
empty i need that to be counted as on today-system date. Can you help on
that?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Counting Dates

=IF(B2="",TODAY(),B2)-B1

--
__________________________________
HTH

Bob

"Riyaz" wrote in message
...
I need to count days between 2 dates in 2 cells. Like B:2-B:1. In case B2
is
empty i need that to be counted as on today-system date. Can you help on
that?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Counting Dates

Thank you so much Bob

"Bob Phillips" wrote:

=IF(B2="",TODAY(),B2)-B1

--
__________________________________
HTH

Bob

"Riyaz" wrote in message
...
I need to count days between 2 dates in 2 cells. Like B:2-B:1. In case B2
is
empty i need that to be counted as on today-system date. Can you help on
that?




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
Counting dates Tendresse Excel Discussion (Misc queries) 12 May 8th 07 03:00 AM
counting occasions dates occur between 2 dates hoyt New Users to Excel 5 June 16th 06 08:11 AM
Counting dates, within a list of dates jrheinschm Excel Worksheet Functions 7 April 19th 06 06:13 PM
Counting dates Juan_Quar Excel Discussion (Misc queries) 4 March 29th 06 02:10 PM
Counting Dates PH NEWS Excel Worksheet Functions 2 February 21st 06 04:07 PM


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