Index Match Not Working

Moxioron

Active Member
Joined
Mar 17, 2008
Messages
436
Office Version
  1. 2019
Hello.

I have done this a thousand times before (well maybe hundreds) w/o issue. However, for some reason I can get anything to return on the following:

=INDEX('Flood Report'!$X$2:$X$15000,MATCH($A22,'Flood Report'!$AN$2:$AN$15000,0))

If I do a CountIf('Flood Report'!$AN$2:$AN$15000,$A22), it comes back with a 1 ... so I am not sure where I'm going astray.

Any help would be appreciated. Thank you.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I'd start by taking out the INDEX and see if MATCH gives you a row number. If it does then visually check $A22 with the AN column for that row.

If it looks OK do a =LEN($A22) check with that =LEN($ANnnn) cell to check you don't have hinky characters in either.
 
Upvote 0
Another thing to check, is make sure that there are no error values in col X
 
Upvote 0
Thanks to all that responded. I did the following to both columns and it worked. Weird, I have never had this happen prior. Thanks again.

1) Highlight the column of data
2) Data > Text To Columns > Delimited > Uncheck everything > Next
3) On page 3 of the wizard, set the Column Data Format = General
4) OK
 
Upvote 0
Glad you sorted it & thanks for the feedback.

If you are looking up numbers, it sounds as though they were originally text.
 
Upvote 0

Forum statistics

Threads
1,214,387
Messages
6,119,222
Members
448,877
Latest member
gb24

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