Using wildcards with IF statements, or add a 2nd criteria (probably an easy fix)

Status
Not open for further replies.

NewbieExcel123

New Member
Joined
Jul 30, 2024
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hi all,

This is most likely an easy fix, I wanted to use wildcards to find the word "Pass" which covers criteria "Pass" and "Pass (Advisory)", however I've discovered you can't use Wildcards with IFs?
I'm also thinking it may be easier to just add a 2nd criteria to the formula to capture "Pass (Advisory)" as well as "Pass", but I'm unsure how to do this?

I have this formula

=LET(f,FILTER($P$5:$P$100,$O$5:$O$100="AO"),s,SEQUENCE(ROWS(f)),fr,FREQUENCY(IF(f="Pass",s),IF(f="Fail",s)),SUM(--(fr>=5)))*0.5

It counts how many times Pass appears in sequence against an AO or EO criteria before the word Fail appears

Column PColumn O
AOPass
AOPass
AOPass
EOPass
EOFail
EOPass
EOPass (Advisory)
EOPass
AOPass
AOPass (Advisory)


Thank you
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Status
Not open for further replies.

Forum statistics

Threads
1,224,823
Messages
6,181,171
Members
453,021
Latest member
Justyna P

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