RE: Help with formula – too many nested IFs



I guess I would do something like
=IF(NOT(OR(ISBLANK(B1),ISBLANK(C1))),[calculate delivery
performance,IF(NOT(OR(ISBLANK(A1),ISBLANK(B1))),[calculate delivery
performance],"")

This seems rather complicated though. Perhaps you can split these
IF-THEN-ELSE constructions into multiple logic statements, make sure that
each is operating correctly, and then combine all of them into one giant
formula?

What I put above says, in plain English, "IF neither B1 nor C1 is blank,
then calculate performance, ELSE IF neither A1 nor B1 is blank, THEN
calculate performance, ELSE nothing."

Dave
--
Brevity is the soul of wit.


"Bob" wrote:

Dave,
You're right! Thanks for catching my error.
Can you help me modify my formula to incorporate the 3rd step and/or rewrite
it so that it doesn't include so many nested IFs?
Bob


"Dave F" wrote:

Based on steps 1 and 2, your 3rd step should have the logic (A1 OR B1) AND
C1, not the way you have it, which is A1 AND B1 OR C1.

Dave

--
Brevity is the soul of wit.


"Bob" wrote:

A1 = Original Planned Due Date
B1 = Revised Planned Due Date
C1 = Actual Due Date

I’m trying to write a formula that computes the following:

1) If dates exist in cells B1 AND C1, calculate delivery performance (i.e.,
Eary, On-time, or Late) in cell D1

ELSE

2) If dates exist in cells A1 AND C1, calculate delivery performance in cell
D1

ELSE

3) If there are no dates in ((A1 AND B1) OR C1), display “Missing date(s)”
in cell D1

The formula I have written so far is:
=IF(AND(CELL("type",B1)="v",CELL("type",C1)="v"),IF(B1>C1,"Early",IF(B1=C1,"On-time","Late")),IF(AND(CELL("type",A1)="v",CELL("type",C1)="v"),IF(A1>C1,"Early",IF(A1=C1,"On-time","Late"))))

The only part of my formula that I’m having trouble figuring out is how to
capture #3 above.

Also, is there a way to rewrite my formula so that it doesn’t use so many
nested IF statements? Is there a different Excel built-in function that I
can use to streamline my formula?

Any help would be greatly appreciated.
Thanks,
Bob

.



Relevant Pages

  • =?Utf-8?Q?RE:_Help_with_formula_=E2=80=93_too_many?= =?Utf-8?Q?_nested_IFs?=
    ... Dave - Thanks again! ... If the cells in question can have values other than blanks, ... "Bob" wrote: ... performance],IF,ISBLANK)),[calculate delivery ...
    (microsoft.public.excel.worksheet.functions)
  • =?Utf-8?Q?RE:_Help_with_formula_=E2=80=93_too_many?= =?Utf-8?Q?_nested_IFs?=
    ... CELL will test for a value. ... Brevity is the soul of wit. ... "Bob" wrote: ... performance],IF,ISBLANK)),[calculate delivery ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Help With Conditional Formatting
    ... formatting from another website but cell K223 ... All I want to do is if the date in the cell is 14 days or less away to be ... "David Biddulph" wrote: ... Column K is the requested delivery date from the customer, ...
    (microsoft.public.excel.misc)
  • Re: Help With Conditional Formatting
    ... David Biddulph ... All I want to do is if the date in the cell is 14 days or less away to be ... format and to the intermediate parameters which we've been looking at. ... Column K is the requested delivery date from the customer, ...
    (microsoft.public.excel.misc)
  • Re: Wed. 9/14 Big Show Synopsis
    ... > always enjoy these, particularly their delivery -- i.e., Dave just reading ... Nice goin', Bob. ... > Hey, where's Reese?! ... Biff left me hangin'." ...
    (alt.fan.letterman)