Hi,
I have below table that I need to fill the Min-Max ranges from a different 2 tables/references based on ID. I have added the Expected results column but I need a formula that can give me these results.
From below data: if ID is found in Range 1 table then give me the min & max for this ID in this format (Min-Max), if ID is not found in Range 1 then check Range 2 table and give me the results. since min and max in Range 2 table are all n/a then the result for any ID is n/a and if ID is not found in both ranges the expected result is n/a as well.
I have below table that I need to fill the Min-Max ranges from a different 2 tables/references based on ID. I have added the Expected results column but I need a formula that can give me these results.
From below data: if ID is found in Range 1 table then give me the min & max for this ID in this format (Min-Max), if ID is not found in Range 1 then check Range 2 table and give me the results. since min and max in Range 2 table are all n/a then the result for any ID is n/a and if ID is not found in both ranges the expected result is n/a as well.
Test File_LookupValue.xlsx | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | |||
1 | ID | Range Type | Expected Results (Min-Max) | ||||||||||||||||
2 | 034 | Range 1 | 16% - 20% | Range 1 | Range 2 | ||||||||||||||
3 | 035 | Range 1 | 17% - 21 | ID | Min | Mid | Max | ID | Min | Mid | Max | ||||||||
4 | 036 | Range 1 | 18% - 22% | ||||||||||||||||
5 | 037 | Range 1 | 19% - 23% | 003 | 5% | 7% | 9% | 040 | n/a | n/a | n/a | ||||||||
6 | 030 | Range 1 | 14% - 18% | 005 | 6% | 8% | 10% | 041 | n/a | n/a | n/a | ||||||||
7 | 031 | Range 1 | 15% - 19% | 006 | 7% | 9% | 11% | 042 | n/a | n/a | n/a | ||||||||
8 | 040 | Range 2 | n/a | 007 | 8% | 10% | 12% | 043 | n/a | n/a | n/a | ||||||||
9 | 071 | Range 2 | n/a | 008 | 9% | 11% | 13% | 044 | n/a | n/a | n/a | ||||||||
10 | 072 | Range 2 | n/a | 009 | 10% | 12% | 14% | 045 | n/a | n/a | n/a | ||||||||
11 | 073 | Range 2 | n/a | 010 | 11% | 13% | 15% | 046 | n/a | n/a | n/a | ||||||||
12 | 074 | Range 2 | n/a | 011 | 12% | 14% | 16% | 047 | n/a | n/a | n/a | ||||||||
13 | 035 | Range 1 | 17% - 21 | 012 | 13% | 15% | 17% | 048 | n/a | n/a | n/a | ||||||||
14 | 036 | Range 1 | 18% - 22% | 030 | 14% | 16% | 18% | 049 | n/a | n/a | n/a | ||||||||
15 | 068 | Range 2 | n/a | 031 | 15% | 17% | 19% | 068 | n/a | n/a | n/a | ||||||||
16 | 076 | Range 1 | 20% - 24% | 034 | 16% | 18% | 20% | 069 | n/a | n/a | n/a | ||||||||
17 | 077 | Range 1 | 21% - 25% | 035 | 17% | 19% | 21% | 070 | n/a | n/a | n/a | ||||||||
18 | 071 | Range 2 | n/a | 036 | 18% | 20% | 22% | 071 | n/a | n/a | n/a | ||||||||
19 | 097 | NA | n/a | 037 | 19% | 21% | 23% | 072 | n/a | n/a | n/a | ||||||||
20 | 098 | NA | n/a | 076 | 20% | 22% | 24% | 073 | n/a | n/a | n/a | ||||||||
21 | 077 | 21% | 23% | 25% | 074 | n/a | n/a | n/a | |||||||||||
22 | |||||||||||||||||||
23 | |||||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
J5:K21 | J5 | =I5+0.02 |
I6:I21 | I6 | =I5+0.01 |
B2:B20 | B2 | =IF(ISNUMBER(XMATCH(A2,$H$5:$H$21,0)),$H$2,IF(ISNUMBER(MATCH(A2,$M$5:$M$21,0)),$M$2,"NA")) |