Excel Index/Match?

kmolls

New Member
Joined
Apr 10, 2011
Messages
5
Here is the problem.
I have a shipping spreadsheet with an address and 8 tracking numbers for each address all in one line. Each tracking number is in it's own column.

I want to be able to enter in a tracking number (the last 8 digits actually), and return the address. I cannot seem to get Index & Match to search through all 8 columns of tracking numbers.

Here is the code I'm working around.
=INDEX(PHASE3!A:A,MATCH("1zx8754v03"&C13,PHASE3!G:N,0))

I am one indexing one page "Phase3" outside of the page I want to enter and receive data.

Returning data in Column A from Phase3.
In reference to "1zx8754v03"&C13.
Searching in PHASE3!G:N
Exact Match.

It will work if I just search one column PHASE3!G:G, but I want to search G:N

Any help??
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hello, Welcome to MrExcel

Try, Control+Shift+Enter, not just Enter,

=INDEX(PHASE3!A:A,MIN(IF(PHASE3!G2:N1000="1zx8754v03"&C13,ROW(PHASE3!G2:N1000))))

Do not use the hole column reference If your data is updating, use a dynamic range.
 
Upvote 0
Thanks, I did try S+C+enter previously, didn't do anything else.
I also had tried fixing the data range.

I plugged in your code, it is entering data, but not from the correct line.

It actually plugs in data without entering any data into C13.

I will check it out further though.

Any other suggestions?
 
Upvote 0
It actually plugs in data without entering any data into C13.
That because, If you don't have any matching values in PHASE3!G:N MIN will give zero, so INDEX will pull the first cell from the array, here is PHASE3!A:A, that is A1.

You can use an IF statement like, =IF(C13="","",INDEX(...) or use SMALL instead of MIN.
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,520
Members
452,921
Latest member
BBQKING

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