Index/Match

Noz2k

Well-known Member
Joined
Mar 15, 2011
Messages
693
What I'm trying to do is use a value in column J of my sheet to find the matching value in column A of sheet2, and return the value in the corresponding row of column N.

Here is what I am trying

Code:
=INDEX(Sheet2!$N$3:$N$20000,MATCH($J2,Sheet2!$A$3:$A$20000,0))
*entered as an array.

Where am I going wrong?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
That formula looks like it should work although it should not need to be entered as an array formula.

Wrong result or error or what?
 
Upvote 0
It gives me N/A on every row.

I've used the Find function on sheet2 and those values are definitely there in column A
 
Upvote 0
Do you have your autocalculation turned on or off? Try pressing F9 to see if the values update
 
Upvote 0
If you have text in J2 and numbers in column A of sheet2 (or the other way round) you would get #N/A.
 
Upvote 0
Still the same result.

I'm not sure if there is a difference in formatting perhaps? They both say 'general' though.

However I tried a little test on the first value based on where the find function showed it to be in sheet2
Code:
=IF(J2=Sheet2!A220, Sheet2!N220,"")

and it returns ""

So there is definitely a mismatch somewhere
 
Upvote 0
Formatting both as number as still no change.

I'm wondering if maybe there is a invisible value at the end or beginning? I think I remember hearing this could be the case?
 
Upvote 0
Isnumber220 returns false

isnumberj2 returns true

So there's the mismatch. How do I match them?
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,550
Members
452,927
Latest member
rows and columns

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