Need help formula to find exact value

Budi_K

New Member
Joined
May 29, 2022
Messages
6
Office Version
  1. 2010
Platform
  1. Windows
Hi,

Can someone help me to solve my problem.
To find exact value for Column B2 or C2 refer to Column A2.
Array Table at Sheet 2.

Sheet 1
Exercise.xlsx
ABCDE
1Data IDOld ID (Index Match)New ID (Index Match)Old ID (Vlookup)New ID (Vlookup)
216GSK008300#N/A#N/A
320SBY7820016SBY026816SBY0268
416GSK008300#N/A#N/A
513004100#N/A#N/A
616GSK015800#N/A#N/A
716GSK015500#N/A#N/A
86304970016SDA008216SDA0082
916GSK011300#N/A#N/A
Sheet1
Cell Formulas
RangeFormula
B2:B9B2=INDEX(Sheet2!A:B,MATCH(A2,A2:A9&B2:B9,0))
C2:C9C2=INDEX(Sheet2!A:B,MATCH(A2,A2:A9&B2:B9,0))
D2D2=IFERROR(VLOOKUP(A2,Sheet2!A:B,2),VLOOKUP(A2,Sheet2!A:B,1))
E2:E9E2=IFERROR(VLOOKUP(A2,Sheet2!A:B,2),VLOOKUP(A2,Sheet2!A:B,1))
D3:D9D3=IFERROR(VLOOKUP(A3,Sheet2!A:B,2),VLOOKUP(A3,Sheet2!A:B,2))
Press CTRL+SHIFT+ENTER to enter array formulas.


Sheet 2
Old IDNew ID
63029416GSK0113
13291416GSK0155
63049716GSK0195
13004916GSK0158
13004116GSK0204
63023716GSK0176
20SBY78216SBY0268
13004816GSK0083
13291916SDA0082


Thank You
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Book1
ABC
1Data IDOld IDNew ID
216GSK008313004816GSK0083
320SBY78220SBY78216SBY0268
416GSK008313004816GSK0083
513004113004116GSK0204
616GSK015813004916GSK0158
716GSK015513291416GSK0155
863049763049716GSK0195
916GSK011363029416GSK0113
Sheet1
Cell Formulas
RangeFormula
B2:C9B2=INDEX((Sheet2!$A$2:$A$10,Sheet2!$B$2:$B$10),IFERROR(MATCH($A2,Sheet2!$A$2:$A$10,0),MATCH($A2,Sheet2!$B$2:$B$10,0)),1,COLUMNS($A:A))

Book1
AB
1Old IDNew ID
263029416GSK0113
313291416GSK0155
463049716GSK0195
513004916GSK0158
613004116GSK0204
763023716GSK0176
820SBY78216SBY0268
913004816GSK0083
1013291916SDA0082
Sheet2
 
Upvote 0
Solution
Book1
ABC
1Data IDOld IDNew ID
216GSK008313004816GSK0083
320SBY78220SBY78216SBY0268
416GSK008313004816GSK0083
513004113004116GSK0204
616GSK015813004916GSK0158
716GSK015513291416GSK0155
863049763049716GSK0195
916GSK011363029416GSK0113
Sheet1
Cell Formulas
RangeFormula
B2:C9B2=INDEX((Sheet2!$A$2:$A$10,Sheet2!$B$2:$B$10),IFERROR(MATCH($A2,Sheet2!$A$2:$A$10,0),MATCH($A2,Sheet2!$B$2:$B$10,0)),1,COLUMNS($A:A))

Book1
AB
1Old IDNew ID
263029416GSK0113
313291416GSK0155
463049716GSK0195
513004916GSK0158
613004116GSK0204
763023716GSK0176
820SBY78216SBY0268
913004816GSK0083
1013291916SDA0082
Sheet2

Thank you very much, Sir.
Thank you
 
Upvote 0

Forum statistics

Threads
1,215,745
Messages
6,126,634
Members
449,323
Latest member
Smarti1

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