Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default if cell is blank then calculate how many days?

What would the formula in C column be if I want to know how many days from
the A column date to today - if the B column is blank?

A B C
Start Date Return to Work Date Out How Many Days?
06/29/2009
01/11/2009 02/02/2009

Thank you for your help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default if cell is blank then calculate how many days?

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

If you want to limit this to workdays (Mon-Fri) try:
=IF(B2="",NETWORKDAYS(A2,TODAY())-1,"")
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Machel" wrote:

What would the formula in C column be if I want to know how many days from
the A column date to today - if the B column is blank?

A B C
Start Date Return to Work Date Out How Many Days?
06/29/2009
01/11/2009 02/02/2009

Thank you for your help!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default if cell is blank then calculate how many days?

Try this:

=IF(AND(COUNT(A1),B1=""),TODAY()-A1,"")

--
Biff
Microsoft Excel MVP


"Machel" wrote in message
...
What would the formula in C column be if I want to know how many days from
the A column date to today - if the B column is blank?

A B C
Start Date Return to Work Date Out How Many Days?
06/29/2009
01/11/2009 02/02/2009

Thank you for your help!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default if cell is blank then calculate how many days?

Thank you so much! that worked!
If we also want to know the number counting all the days (not just work
days), then I would remove the NETWORKDAYS portion?

"Luke M" wrote:

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

If you want to limit this to workdays (Mon-Fri) try:
=IF(B2="",NETWORKDAYS(A2,TODAY())-1,"")
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Machel" wrote:

What would the formula in C column be if I want to know how many days from
the A column date to today - if the B column is blank?

A B C
Start Date Return to Work Date Out How Many Days?
06/29/2009
01/11/2009 02/02/2009

Thank you for your help!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default if cell is blank then calculate how many days?

Hi,

Here is another way to write it:

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

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Machel" wrote:

What would the formula in C column be if I want to know how many days from
the A column date to today - if the B column is blank?

A B C
Start Date Return to Work Date Out How Many Days?
06/29/2009
01/11/2009 02/02/2009

Thank you for your help!

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
How to calculate # of days Jonathan Excel Worksheet Functions 3 March 4th 09 09:23 PM
Calculate the Days migdad Excel Worksheet Functions 8 May 1st 06 12:53 AM
Formula to calculate number of days & ignore blank cells Mifty Excel Discussion (Misc queries) 7 February 13th 06 10:36 PM
formula to calculate future date from date in cell plus days Chicesq Excel Worksheet Functions 8 November 3rd 05 12:25 PM
if blank cell, don't calculate Dan Excel Worksheet Functions 2 June 13th 05 06:11 PM


All times are GMT +1. The time now is 07:19 AM.

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

About Us

"It's about Microsoft Excel"