Using Index & Match

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,561
Office Version
  1. 2021
Platform
  1. Windows
I need a formula to lookup the account number in the source workbook (these are in Col A), pertaining to the decsription in Col B in the destination workbook./

The account description is also in column B in the destination workbook

See Destination workbook sample below


Excel 2010
B
1Bank Current Account
2Bank Rec's Clearing
3Vehicle Deposits Rcpt Clearing
4Cash Floats
5Call Deposits/ Investments
Sheet1


See Source workbook sample below



Excel 2010
AB
1101005Bank Current Account
2101005Bank Rec's Clearing
3124015Vehicle Deposits Rcpt Clearing
4124165Cash Floats
5125100Call Deposits/ Investments
Sheet1



Your assistance in resolving this is most appreciated
 

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)
What exactly would you like to return? what would the answers look like?
 
Upvote 0
In the destination workbook , I want the account numbers in A col theat pertains to the description for Eg if "BANK Current account" is in say B2, then A2 must return 101005

I have tried using this formula but get #N/A

=INDEX(B:B,MATCH('[Account Numbers.xlsx]Sheet1'!$A:$A,'[Account Numbers.xlsx]Sheet1'!$B:$B,0))
 
Upvote 0
Hi Howard,

I did it on the example in my workbook where sheet1 has a name Source and sheet2 has a name Destination

In Destination, cell A1 I used below formula and then copied it down to other rows.
Code:
=INDEX(Source!$A$1:$B$5,MATCH(Destination!B1,Source!$B:$B,0),)

If you have Source & Destination in different workbooks then you need to update the code with the direct paths.

Hope it works.

Sylwester
 
Upvote 0
Like this

Excel 2013
AB
1101005Bank Current Account
2101005Bank Rec's Clearing
3124015Vehicle Deposits Rcpt Clearing
4124165Cash Floats
5125100Call Deposits/ Investments
Sheet10
Cell Formulas
RangeFormula
A1=INDEX('[GTBank-areaGraph.xlsx]Sheet2'!A$1:A$5,MATCH(B1,'[GTBank-areaGraph.xlsx]Sheet2'!B$1:B$5,0),1)

where you replace the "Gtbank-area-graph" with the name of your own workbook
 
Upvote 0

Forum statistics

Threads
1,214,535
Messages
6,120,090
Members
448,944
Latest member
sharmarick

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