Nested if for 12 results? Can it be done?

Churchy LaFemme

Board Regular
Joined
Sep 22, 2010
Messages
136
This nested if in a shared workbook is getting unwieldly. The one thing I can do, what I hope to do, is update the IF statement in Column I, Status, so that if always works.

The status text strings are found in the cells above columns 0 though P. (That is, the if refences are to O2, P2, etc.) Data inputs are always dates.

There are two basic flows – Monkey is from the US, or not from the US.
If from the US, we skip two steps.

There are two variables.
1. A non-US monkey may have quarantine set right away, set during reviews process, or it may already have happened and the “Monkey in Quarantine status will never appear. (One of the current problems is that if someone inputs the date that quarantine was set, the row will immediately show a later stage status, making it appear we have completed more steps than we have.

2. Assessments may be resubmitted.
– Either the director returns an assessment with questions, and we resubmit after addressing questions - Or we may realize we need to update and then resubmit resubmit (We’ve had problems where once something has been returned or resubmitted, that status sticks in “Director Reviewing”

First step is that once we have a date in Column, the first status should be triggered for that row. That is, one we input a date in column O, a status appears in column I. Column U may also be completed at the point, which is where this started falling apart. (The table is actually A-AL, but only columns that are part of this beastly IF are shown.)

Ignore the top row and the left-hand column. Those are not part of the table in my worksheet. Uploads are disabled (work) so I had to paste from Excel.

Complete IntakeDirector Reviewing AssessmentAddress QuestionsDirector Reviewing AssessmentVet Finalizing AssessmentMonkey in QuarantineMonkey Introduced to GroupMonkey AcclimatingDirector DeterminationDetermination
Column AColumn IColumn OColumn PColumn QColumn RColumn SColumn TColumn UColumn VColumn QColumn X
COUNTRYSTATUSMonkey ArrivedAssessment SubmittedDirector Returns w QuestionsResubmit AssessmentDirector ApproveVet Sets QuarantineMonkey Completes QuarantineStaff Manages & MonitorsDetermination - Sanctuary or RehomeMonkey Set for Stay or Rehome
USComplete IntakeDATAIGNORE - may or may not have data
Case 1Director Reviewing AssessmentDATA
Case 2Director Reviewing AssessmentDATADATA
Address QuestionsDATADATAIGNORE - may or may not have data
Vet Finalizing AssessmentDATAIGNORE - may or may not have data
Monkey in QuarantineDATABLANK
Case 1Monkey Introduced to GroupDATADATA
Case 2Skip if Column A is "US"IGNORE if Column A is "US"
Case 1Monkey AcclimatingDATA
Case 2Skip if Column A is "US"IGNORE if Column A is "US"
Director DeterminationDATA
DeterminationDATA

If there is a good tutorial somewhere that explains how to structure Nested IF statements to this level of complexity, that would be helpful.

I'm hoping someone has already build such a creature, and can provide the blueprint.
 
Following up. We are starting are new year process and it appears that both solutions are correct. (The JPEG with flow was also a very helpful exercise.)
I would like to mark both

felixstraube and dreid1011 as the "solution" but if this is not possible, anyone using this thread should look into both of those solutions.​

 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,225,738
Messages
6,186,728
Members
453,368
Latest member
positivemind

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top