Index Match Returns #NA if Reference

perrymans

New Member
Joined
Aug 21, 2011
Messages
22
Does work (regardless of C4 contents):
=INDEX(Details!$J$2:$J$50000,MATCH('Vulnerator Translator'!C4,Details!$P$2:$P$5000,0))

Does not work (if C4 is a formula):
=INDEX(Retina!$C$3:$C$10,MATCH('Vulnerator Translator'!C4,Retina!$A$3:$A$10,0))

However this second one will work if the content of C4 is changed from a lookup to an actual typed number...
i.e. typing 12370 vs =TRIM(RIGHT('POA&M'!K2,LEN('POA&M'!K2)-FIND("Audit ID:",'POA&M'!K2)-9))

I am using that C4 as a reference for many things, all of which work when pointing to Details or POA&M. But if I point to Retina worksheet, it fails.

Thanks. Sean.
 

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.
Hello Sean,

When you use RIGHT function (and others) the result is a text value (although it might look like a number), try adding zero to get a number

=TRIM(RIGHT('POA&M'!K2,LEN('POA&M'!K2)-FIND("Audit ID:",'POA&M'!K2)-9))+0

or this shorter version should work

=REPLACE('POA&M'!K2,1,FIND("Audit ID:",'POA&M'!K2)+8,"")+0
 
Upvote 0

Forum statistics

Threads
1,215,945
Messages
6,127,861
Members
449,411
Latest member
adunn_23

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