Index and Match formula not functioning

bill351

Board Regular
Joined
Jan 19, 2009
Messages
83
Hey Guys and Girls

I am puzzled, I have a spreadsheet with formulas for different section on the sheet 2 work perfectly the 3rd not so good all formulas are similar its just the Index data and match data accessing different columns.

My problem one is =INDEX(Data!F2:F13,MATCH(F3,Data!G2:G13,0),1) where the formula is in E3
Data!F2:F13 is the names
F3 is a drop down list with the names
Data!G2:G13 are the cost centers
and the result is in E3 #N/A ?? I have checked the names are the same the cell formatting is Ok, I have swapped columns around but nothing. I know its something simple Because the other 2 formulas sitting in columns A and C work just fine so I am hoping you can point out my error

Cheers from Oz
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
1. Just enter:

=INDEX(Data!$F$2:$F$13,MATCH(TRIM(F3),Data!$G$2:$G$13,0))

2. Control+shift+enter, not just enter:

=INDEX(Data!$F$2:$F$13,MATCH(TRIM(F3),TRIM(Data!$G$2:$G$13),0))

Does #2 succeed?
 
Upvote 0
Sorry Aladin Akyurek the straight formula and the array formula didn't work still have the #N/A
 
Upvote 0
Sorry Aladin Didn't think Data!G2:G13 is the cost centers I put in countif for Data!F2:F13 which is the name in F3
Data!F2:F13 has come back as a count of 1
 
Upvote 0
Sorry Aladin Didn't think Data!G2:G13 is the cost centers I put in countif for Data!F2:F13 which is the name in F3
Data!F2:F13 has come back as a count of 1

It seems you switched the ranges...

=INDEX(Data!$G$2:$G$13,MATCH(F3,Data!$F$2:$F$13,0))
 
Upvote 0
**** it I cant believe I was that stupid to swap those 2 around GRRRRR swapped them and it all works just as it should

Really Sorry Aladin for wasting your time Thank you for all your help
 
Upvote 0

Forum statistics

Threads
1,214,797
Messages
6,121,629
Members
449,041
Latest member
Postman24

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