INDEX MATCH Returns #N/A

jski21

Board Regular
Joined
Jan 2, 2019
Messages
133
Office Version
  1. 2016
Platform
  1. Windows
Good day Mr. Excel Team,

Can't quite get this INEX MATCH to return the highlighted value. Everything seem ok to me but Excel doesn't think so:

INDXMTCH.xlsx
BCDEFG
3
4Sum of Drawn AmountFY Year2018
5Activity20172018201920200
6Administration41,58667,97328,95222,3530
7Data Collection (HMIS)9,72820,4459,1685,702#N/A
8Homeless Prevention104,56934,25543,43511,109
9Rapid Re-Housing726,680733,707314,130669,010
10Shelter741,224957,4491,044,8751,041,667
11Grand Total1,623,7871,813,8301,440,5601,749,842
Pivot
Cell Formulas
RangeFormula
G7G7=INDEX($C$6:$F$10,MATCH("Homeless Prevention",$B$6:$B$10,0),MATCH($G$4,$C$5:$F$5,0))



Thanks in advance for the look/see and advice.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Formula looks fine to me and works correctly when I copy your mini sheet to excel.

Best guess is that G4 is / was formatted as text so is not a valid number to compare to C5:F5. Try formatting G4 as General / Number, then re-enter the year into it.
 
Upvote 0
@jski21 Same here.
Having pasted the above XL2B into a worksheet here, it works perfectly!
Do you have any discrepancy in your Activity text such as hidden space?
 
Upvote 0
Ok...tried both General and Number on all cells and still #N/A. Activity text is clean.

This is a pivot table but I didn't click on the table to obtain the range/cell references. Just entered them to keep things clean. Shouldn't make a difference, correct?

Curiouser and curiouser as Lewis Carroll would say...
 
Upvote 0
I think that headers are text by default with a pivot table.
Excel Formula:
=INDEX($C$6:$F$10,MATCH("Homeless Prevention",$B$6:$B$10,0),MATCH($G$4&"",$C$5:$F$5,0))
 
Upvote 0
Solution
Bingo! That nuance did the trick jasonb75.

Thanks jasonb75 & Snakechips for your time and consideration today. Well done!
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,913
Members
449,093
Latest member
dbomb1414

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