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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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