Help with INDEX/MATCH/IF functions

reaper_2

New Member
Joined
Sep 30, 2010
Messages
18
afternoon,

until yesterday morning I had no clue about index array functions. Now I have slightly more of a clue, but I still can't say I understand it fully.

I'm trying to rank sheets of raw data into tables 1 to 10. On one sheet the asrray function works, but on the other it doesn't, despite being more or less identical. I was hoping somebody can tell me what to look for/check as to why it's not working in sheet 2?

anyway, in sheet 1, the array function is as follows:

Code:
{=INDEX($B$22:$B$141,MATCH(LARGE(IF($D$22:$D$141=_
"Group A",$Q$22:$Q$141),A3),$Q$22:$Q$141,0))}

where:

B is the field I want to index,
D is the Group I am addressing,
Q is the value of I want to base the rank on
A is the rank (1, 2, 3 etc...)

as I say, this works no problem. I've checked this by pivoting the raw data and comparing it with the function result.

on sheet 2, , the function is as follows:

Code:
{=INDEX($N$21:$N$563,MATCH(LARGE(IF($O$21:$O$563=_
"Group B",$P$21:$P$563),A6),$P$21:$P$563,0))}

where:

N is the field I want to index,
O is the Group I am addressing,
P is the value of I want to base the rank on
A is the rank (1, 2, 3 etc...)

as far as I can see the two formulas are identical other than they address different groups and use different fields, but in sheet 2, all I get returned is a list of 10, identical names, which don't relate to the Group I am requesting either (i.e. I've got a list of 10, all the same, from Group C)

I'm a bit stuck, anybody got any ideas what could be causing this?

ta
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
A6 contains the number 1
A7 contains the number 2
etc...

formula was entered in cell B6, confirmed with ctrl+shift+enter, and copied down.

As I say I can't work out why it works on one sheet but not the other
 
Upvote 0
If you select 'Enhanced Interface - Full WYSIWYG Editing' in 'Message Editor Interface' under User CP|Edit Options (menu towards top of screen on Board) you can copy it in Excel and paste it into a reply. It's best to surround it with borders first.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

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