Formula to check multiple cells for multiple values...

Charmwah

Board Regular
Joined
Jan 23, 2017
Messages
64
Hi all

I essentially would like a simplified version of the following:

=IF(OR(BF11="H",BJ11="H",BN11="H",BR11="H",BV11="H",BZ11="H",CD11="H",CH11="H",CL11="H",CP11="H",BF11="ü",BJ11="ü",BN11="ü",BR11="ü",BV11="ü",BZ11="ü",CD11="ü",CH11="ü",CL11="ü",CP11="ü",BF11="üü",BJ11="üü",BN11="üü",BR11="üü",BV11="üü",BZ11="üü",CD11="üü",CH11="üü",CL11="üü",CP11="üü"),$EY$10,"")

The purpose of the formula is to check the various cells for any of 3 text values. If any of these are found, the cell in which this formula exists is to return the value denoted by another cell.

Preferably i'd like to do this without the need for VBA ;)

Thanks in advance!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi
Welcome to the board

This seems to be some kind of table, you are checking every 4th value in a row.

It would help if the table has some type of header that is common to these columns. It would make the formula much more efficient.

If not, you can address directly the cells, like:

=IF(OR(T(OFFSET(BF11,,4*{0,1,2,3,4,5,6,7,8,9}))={"H";"ü";"üü"}),$EY$10,"")
 
Upvote 0
Hi
Welcome to the board

This seems to be some kind of table, you are checking every 4th value in a row.

It would help if the table has some type of header that is common to these columns. It would make the formula much more efficient.

If not, you can address directly the cells, like:

=IF(OR(T(OFFSET(BF11,,4*{0,1,2,3,4,5,6,7,8,9}))={"H";"ü";"üü"}),$EY$10,"")

Thanks for the quick response! It is indeed a table, and there are headers, but the vary so to my mind are of no more use than the cell reference. In most cases it will be every 4th column to check (this represents 4 different product variants), but in some instances this value will be different.
 
Upvote 0

Forum statistics

Threads
1,215,746
Messages
6,126,647
Members
449,325
Latest member
Hardey6ix

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