Use wildcard in IF/OR formula

Shadkng

Active Member
Joined
Oct 11, 2018
Messages
365
Hi, I am trying to find out if it is possible to use wildcards in a formula. In the formula below you can see the items in the "OR" statement all start with "FAS-5". Any help is appreciated. Thanks

Code:
=IF(OR($BF24="FAS-5 SL - HIGH",$BF24="FAS-5 SL WHITE",$BF24="FAS-5 SL ANOD",$BF24="FAS-5 DUAL WHT",$BF24="FAS-5 DUAL ANOD"),INDEX('DEDUCT ARRAY'!$B$5:$J$50,MATCH($C24,'DEDUCT ARRAY'!$A$5:$A$50,0),MATCH(IY$22,'DEDUCT ARRAY'!$B$3:$J$3,0)),0)
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try:

=IF(LEFT($BF24,5) = "FAS-5",INDEX....
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,631
Messages
6,120,645
Members
448,974
Latest member
DumbFinanceBro

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