Need INDEX MATCH Help

ijhoeq

Board Regular
Joined
Jun 20, 2018
Messages
61
Hello,

I'm using INDEX MATCH combination to search through some data in cells A1:B1373. The user inputs what they want to search in cell C1 and the output is in cell D1. The formula in cell D1 searches through the data to find a match in the range A1:A1373. The formula in cell D1 is shown below,

=INDEX(A1:B1373,MATCH(C1,A1:A1373,0),2)

The data in range A1:A1373 is a set of three digit codes in each cell (e.g. 8A3, 0F6, 100, 000, 020, etc.). The formula in cell D1 works great when it is searching for codes that are numbers only (e.g. cell C1 = 000, or 100, or 020, etc.) but when searching for a code such as 8A3 or 2AF I get "#N/A" in cell D1.

I've tried inserting a new column and using the CLEAN function but this did not work. Can someone please help me figure out why this isn't working?

Thanks!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Match will work happily with text values. Id check to see if the cell you think contains the lookup value (C1) in the lookup array (A1:A1373) doesnt have trailing spaces or something so they arent equal.
 
Upvote 0
Thanks! I had to use the TRIM function instead of CLEAN. There were spaces I wasn't seeing.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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