View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roberta H via OfficeKB.com
 
Posts: n/a
Default proper syntax order

Hello all, I have three fields

"ReceivedDate"
"Date"
"Total Days"

The first two are date fields, the second I want to either count the number
of days between the dates or if no "Date" than "Total Days" would should "0".


"Date" - "ReceivedDate" = "Total Days"
2/6/06 - 1/12/06 = 25
This works - if that's all I needed, however,

"Date" - "ReceivedDate" = "TotalDays", If "Date" is blank, then "TotalDays" =
0
I can't get the right order to make this simple formula work.
Please help.
Thank you.

--
Message posted via http://www.officekb.com