Return Value with Multiple Criteria

Macro212

New Member
Joined
Aug 29, 2018
Messages
11
I would like to use a formula to return a value based on multiple criteria from multiple tabs. I would also like the formula to be built in a way that it automatically updates if there are any changes to the criteria.

Example:

Three tabs in excel:


Tab # 1 - Complete Data Set

Column A has people's name (rows A1-A20)
Column B has the values True or False for Hair (row B1-B20)
Column C has the values True or False for Eyes (row C1-C20)
Column D has the location US or non-US (row C1-C20)
Column E - In this column I want to essentially say: If the value in Column B=True, and the value in column C= Non-US, then return the value in the tab#2 for Non US values (column B), if the value in column C is True and the value in Column D is US, then return the values in Tab #3 for US values (column B).

Tab #2 - Non US Values
Column A - people's names (rows A1-A20)
Column B - Non-US values (rows B1-B20)

Tab #3 US Values
Column A - people's names (Rows A1-A20)
Column B - US values (rows B1-B20)

Can this be done?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Book1
ABCDEFGHIJKLM
1name1TRUETRUEus7name11name17
2name2TRUETRUEus7name21name27
3name3TRUEFALSEusFALSEname31name37
4name4TRUETRUEus7name41name47
5name5FALSETRUEus7name51name57
6name6TRUETRUEus7name61name67
7name7TRUETRUEus7name71name77
8name8TRUETRUEnon-us1name81name87
9name9TRUETRUEus7name91name97
10name10TRUETRUEus7name101name107
11name11TRUETRUEus7name111name117
12name12TRUETRUEus7name121name127
13name13TRUETRUEus7name131name137
14name14TRUETRUEus7name141name147
15name15TRUETRUEus7name151name157
16name16TRUETRUEus7name161name167
17name17TRUETRUEus7name171name177
18name18TRUETRUEus7name181name187
19name19TRUETRUEus7name191name197
20name20TRUETRUEus7name201name207
Sheet2
Cell Formulas
RangeFormula
E1=IF(AND(B1,D1="non-us"),VLOOKUP(A1,$I$1:$J$20,2,0),IF(AND(C1,D1="us"),VLOOKUP(A1,$L$1:$M$20,2,0)))


copy down. If non of the criteria are met then it returns false. This can be changed to return something else.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
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