Thread: Nested IFs
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John C[_2_] John C[_2_] is offline
external usenet poster
 
Posts: 1,358
Default Nested IFs

We all are, thanks for the feedback.
--
John C


"lwilliams" wrote:

Wow, I really like the second statement. I guess you can tell I'm only a
hack at this. Thanks for the help.
--
Larry


"John C" wrote:

You could get rid of some of the nested IFs as well, by the following:
=IF(OR(O29="Void",O29="Spare",O29="Open"),O29,IF(O 29="Closed",MIN(N29-D29,1)," ",))))



--
John C


"lwilliams" wrote:

I am using nested IFs to determine the number of days between two events. If
the two events occurred on the same day, how do I return a 1 instead of 0 and
not affect the calculation for other date ranges?

The current statement is

=IF(O29="Void","Void",IF(O29="Spare","Spare",IF(O2 9="Open","Open",IF(O29="Closed",N29-D29," "))))

where n29 is date opened and d29 is date closed and o29 is the status
Thanks
--
Larry