View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom[_2_] Peo Sjoblom[_2_] is offline
external usenet poster
 
Posts: 964
Default 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