Creating a Flag using Multiple Data Tables

SanFelippo

Board Regular
Joined
Apr 4, 2017
Messages
124
This should be pretty simple, but I can't remember exactly how to do it. Basically I have 3 tables with different values. These tables are as follows:

Table 1 (State-County)
17-31
17-32
17-33
17-40
17-50
17-62

Table 2 (Prop Type)
1
2
3

Table 3 (Product)
S30
S20
S10
HR30


I then have a data set that contains a column of data for each table you see above. Basically all I want to do is create a "Yes" "No" flag in the data set will look at the values each particular application has for each of the tables and determine if it fits.

Fro example, this could be done with a very long If statement with Ands an Ors incorporated, but I know there is an easier way to reference tables rather than type out 6 different OR statements for State-County for example.

The if function would be =If(AND(OR(State-County = any of the ones in table 1), OR(Prop Type = any of the ones in table 2), OR(Product = any of the ones in table 3), "Yes","No")

Does anyone know how to do this in a way that I can just reference the tables rather than have to type out every single OR statement?

Thanks.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Book1
ABCDEFGHI
2Criteria
317-344S40Table 1Table 2Table 3
417-311S30
517-322S20
6FALSE17-333S10
717-344HR30
8
9
10
11
Sheet2
Cell Formulas
RangeFormula
B6B6=IF(NOT(ISERROR(MATCH(A3,F4:F7,0)*MATCH(B3,G4:G7,0)*MATCH(C3,H4:H7,0))),TRUE,FALSE)
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,876
Members
449,056
Latest member
ruhulaminappu

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