Index Match function with column & row lookups isn't working

diversification

New Member
Joined
Jun 24, 2020
Messages
37
Office Version
  1. 365
Platform
  1. Windows
Hello, I'm trying to create an INDEX MATCH function that will cross reference account numbers and return a date. Below I've created two mock Sheets of data similar to what I'll be using (Sheet_1 and Sheet_2.) The columns of data that do not matter are named "Whatever."

What we know:
  1. The names of the columns we want to work with. On Sheet_1 it's "Dates" and "Account Numbers" and on Sheet_2 it's "Acct"
  2. We know that the column headers will exist in Row 1 of their respective sheets

What we don't know:
  1. The position of the columns we want. "Dates" could be in column A, R, Z, AN, ZZZ, etc, etc, etc. The same goes for "Account Numbers" and "Acct"

Obviously not knowing the column position is what makes writing this difficult, but I do need a formula that's generic so I can copy/paste it without needing much modification. I've tried to write in addition nested MATCH formulas which find the column locations and then use SUBSTITUTE to turn the column number into a letter, but it doesn't work out. Can anyone help me with this, please?


Sheet_1
WhateverDatesWhatever1Account NumbersWhatever2Whatever3
blah09/01/2020blah1234blahblah
blah09/07/2020blah4444blahblah
blah08/25/2020blah6622blahblah
blah09/16/2020blah3030blahblah

Sheet_2
WhateverWhatever4AcctWhatever5Formula column
blahblah4343blah
blahblah0011blah
blahblah4444blah09/07/2020


Thanks!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Easiest way is to convert both sets of data to structured tables
(the top table is called Table3)

+Fluff New.xlsm
ABCDEFG
1WhateverDatesWhatever1Account NumbersWhatever2Whatever3
2blah01/09/2020blah1234blahblah
3blah07/09/2020blah4343blahblah
4blah25/08/2020blah6622blahblah
5blah16/09/2020blah3030blahblah
6
7
8
9
10WhateverWhatever4AcctWhatever5Formula column
11blahblah4343blah07/09/2020
12blahblah11blah#N/A
13blahblah3030blah16/09/2020
14
Sheet1
Cell Formulas
RangeFormula
E11:E13E11=INDEX(Table3[Dates],MATCH([@Acct],Table3[Account Numbers],0))
 
Upvote 0
This worked, thank you. I've never worked with Tables before, so I guess I'll need to start using them more frequently.
 
Upvote 0
You're welcome & thanks for the feedback.

Whilst tables do have their drawbacks, they can make life a lot easier.
 
Upvote 0

Forum statistics

Threads
1,214,598
Messages
6,120,441
Members
448,966
Latest member
DannyC96

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