IF / SEARCH function not progressing to next condition?

suzid123

New Member
Joined
Feb 2, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm almost certain I'm using the wrong search function. Apologies, my work computer doesn't permit me to install XL2BB.

I have one list which has classes and their status in the program.
The possible statuses are:
Active
Confirmed
Pending
Exploratory

There are multiple classes per school, and each class can have a different status.

I want a different column to assign a category to the school, using the hierarchy of terms above (Active is first, then Confirmed, etc

So if School A's classes read:
Confirmed, Active, Pending

I want Cell F2 to read "Active".


I have tried creating an =TEXTJOIN range, so the results come up as "Confirmed,Active,Pending", but I can't do a wildcard search with IF function, and my SEARCH function doesn't progress past the first logic test.

Thanks in advance for any help.
 

Attachments

  • Excel.JPG
    Excel.JPG
    35.2 KB · Views: 17

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Welcome to the Forum!

Like this perhaps?

ABCDE
1Status
2Active
3Confirmed
4Pending
5Exploratory
6
7
8School AConfirmedSchool AActive
9School AActiveSchool BConfirmed
10School APendingSchool CActive
11School BConfirmedSchool DExploratory
12School BPendingSchool EPending
13School BConfirmed
14School CActive
15School CExploratory
16School DExploratory
17School EExploratory
18School EPending
19
Sheet1
Cell Formulas
RangeFormula
E8:E12E8=INDEX(Status,MIN(FILTER(MATCH(B$8:B$18,Status,),A$8:A$18=D8)))
Named Ranges
NameRefers ToCells
Status=Sheet1!$A$2:$A$5E8:E12
 
Upvote 0
Solution
Welcome to the Forum!

Like this perhaps?

ABCDE
1Status
2Active
3Confirmed
4Pending
5Exploratory
6
7
8School AConfirmedSchool AActive
9School AActiveSchool BConfirmed
10School APendingSchool CActive
11School BConfirmedSchool DExploratory
12School BPendingSchool EPending
13School BConfirmed
14School CActive
15School CExploratory
16School DExploratory
17School EExploratory
18School EPending
19
Sheet1
Cell Formulas
RangeFormula
E8:E12E8=INDEX(Status,MIN(FILTER(MATCH(B$8:B$18,Status,),A$8:A$18=D8)))
Named Ranges
NameRefers ToCells
Status=Sheet1!$A$2:$A$5E8:E12


Hi, thanks so much for your response. For some reason I just got a "#VALUE!" Error.

I saved the Status range on another sheet, it references appropriately,
These are my actual & Exact ranges as of right now. I probably need the G ranges to be longer. Any idea why it would have returned a #value! ?

=INDEX(Status,MIN(FILTER(MATCH('[2022 Participating Stakeholders.xlsx]Actual '!$G3:$G50,Status,),D6:D1164=D6)))
 
Upvote 0
My formula: =INDEX(Status,MIN(FILTER(MATCH(B$8:B$18,Status,),A$8:A$18=D8))), i.e. equal sized column references

Your formula: =INDEX(Status,MIN(FILTER(MATCH('[2022 Participating Stakeholders.xlsx]Actual '!$G3:$G50,Status,),D6:D1164=D6))), i.e. mismatched sizes.

I think this is probably the source of the #VALUE error.

By the way, do you need the workbook reference: '[2022 Participating Stakeholders.xlsx]Actual '!$G3:$G50.

And is the worksheet name 'Actual ' (with a trailing space) or Actual?
 
Upvote 0
My formula: =INDEX(Status,MIN(FILTER(MATCH(B$8:B$18,Status,),A$8:A$18=D8))), i.e. equal sized column references
Your formula: =INDEX(Status,MIN(FILTER(MATCH('[2022 Participating Stakeholders.xlsx]Actual '!$G3:$G50,Status,),D6:D1164=D6))), i.e. mismatched sizes.

I think this is probably the source of the #VALUE error.

By the way, do you need the workbook reference: '[2022 Participating Stakeholders.xlsx]Actual '!$G3:$G50.

And is the worksheet name 'Actual ' (with a trailing space) or Actual?
Hiya, thanks so much, fixing the range sizes worked perfectly!

And yes, the 'Participating Stakeholders' sheet reference was because it was drawing from a second sheet - I believe they do have a trailing space in their sheet name, but as they have other formulas drawing from the sheet I daren't change it haha

THANK YOU!
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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