View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default 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