View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
John C[_2_] John C[_2_] is offline
external usenet poster
 
Posts: 1,358
Default 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