![]() |
SUMIF or IF to display number of days or N/A
I am trying to display the number of days between 2 dates if the cell in the
range is greater then 0 or if the range cell is 0, I want to display N/A. BD3 = 40 BB3 = 4-18-07 D3 = 2-24-07 I want the formula to display 53 BD3 = 0 BB3 = 4-18-07 D3 = 2-24-07 I want the formula to display N/A |
SUMIF or IF to display number of days or N/A
=IF(BD30,BB3-D3,NA())
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "nan" wrote in message ... I am trying to display the number of days between 2 dates if the cell in the range is greater then 0 or if the range cell is 0, I want to display N/A. BD3 = 40 BB3 = 4-18-07 D3 = 2-24-07 I want the formula to display 53 BD3 = 0 BB3 = 4-18-07 D3 = 2-24-07 I want the formula to display N/A |
SUMIF or IF to display number of days or N/A
=IF(BD30,BB3-D3,"N/A")
Be sure to format the cell as general. Hope this helps. -- John C "nan" wrote: I am trying to display the number of days between 2 dates if the cell in the range is greater then 0 or if the range cell is 0, I want to display N/A. BD3 = 40 BB3 = 4-18-07 D3 = 2-24-07 I want the formula to display 53 BD3 = 0 BB3 = 4-18-07 D3 = 2-24-07 I want the formula to display N/A |
SUMIF or IF to display number of days or N/A
One way
=IF(BD3=0,NA(),BB3-D3) -- Regards, Peo Sjoblom "nan" wrote in message ... I am trying to display the number of days between 2 dates if the cell in the range is greater then 0 or if the range cell is 0, I want to display N/A. BD3 = 40 BB3 = 4-18-07 D3 = 2-24-07 I want the formula to display 53 BD3 = 0 BB3 = 4-18-07 D3 = 2-24-07 I want the formula to display N/A |
SUMIF or IF to display number of days or N/A
Thanks, the answers were really fast.
"nan" wrote: I am trying to display the number of days between 2 dates if the cell in the range is greater then 0 or if the range cell is 0, I want to display N/A. BD3 = 40 BB3 = 4-18-07 D3 = 2-24-07 I want the formula to display 53 BD3 = 0 BB3 = 4-18-07 D3 = 2-24-07 I want the formula to display N/A |
All times are GMT +1. The time now is 04:36 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com