Lookup value into multiple lookup array

mart_mrexcel

Active Member
Joined
Aug 23, 2008
Messages
295
Office Version
  1. 365
Platform
  1. Windows
is there a way to simplify the match() over match() function using IFerror() - see my formula

Book1
ABCDEFG
1Lookup VALUELookup ARRAY
2Employee IdLocal IndentifierResultEmpMatch
3201838100694205941205941
420183910071#N/A205947205947
5201840100766205950205950
6202099202099#N/A20183810069
7202125100997205957205957
8202285202285#N/A20184010076
9202346101560#N/A20212510099
10206021206021
11
Sheet1
Cell Formulas
RangeFormula
C3:C9C3=IFERROR(MATCH(A3,$E$3:$E$10,0),IFERROR(MATCH(A3,$F$3:$F$10,0),IFERROR(MATCH(B3,$E$3:$E$10,0),MATCH(B3,$F$3:$F$10,0))))
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
One short hand could be:
Excel Formula:
=IFERROR(MATCH(1,((A3=$E$3,$E$10)+(A3=$F$3:$F$10))*((B3=$F$3:$F$10)+(B3=$E$3:$E$10)),0),"")
 
Last edited by a moderator:
Upvote 0
Another possibility...

Book1
ABCDEF
1Lookup VALUELookup ARRAY
2Employee IdLocal IndentifierResultEmpMatch
3201838100694205941205941
420183910071Not found205947205947
5201840100766205950205950
6202099202099Not found20183810069
7202125100997205957205957
8202285202285Not found20184010076
9202346101560Not found20212510099
10206021206021
11
Sheet1
Cell Formulas
RangeFormula
C3:C9C3=IF(SUMPRODUCT(($E$3:$F$10=A3)+($E$3:$F$10=B3))>0,SUMPRODUCT(($E$3:$F$10=A3)*ROW($E$3:$F$10))-2,"Not found")
 
Upvote 0
Solution

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