Array Index Small

SimonVOwen

New Member
Joined
Nov 15, 2017
Messages
26
Good Morning All,

I am being very silly can anyone assist.

{=IFERROR(INDEX(sheet1!$D$2:$D$2872,SMALL(IF(sheet1!$C$2:$C$2872='Central Data'!$A2,ROW(sheet1!$D$2:$D$2872)),B$1)),"")}

I am using this array formula to pull data for another sheet, as there are multiple values present so i am dragging this formula across to pull out the 2nd/3rd results etc

{=IFERROR(INDEX(sheet1!$D$2:$D$2872,SMALL(IF(sheet1!$C$2:$C$2872='Central Data'!$A2,ROW(sheet1!$D$2:$D$2872)),C$1)),"")}

In this code the B1 / C1 are just referencing 1/2/3 etc as i believed this was pulling the 1st/2nd/3rd results.
This code is pulling out data however it is pulling the data from 1 row below the value i want..
What stupid thing have i done!

Thanks for any assistance.

Regards,
Disgruntled Muppet
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
deleted
 
Last edited:
Upvote 0
this should work

{=IFERROR(INDEX(sheet1!$D$1:$D$2872,SMALL(IF(sheet1!$C$1:$C$2872='Central Data'!$A2,ROW(sheet1!$D$1:$D$2872)),B$1)),"")}
 
Upvote 0
{=IFERROR(INDEX(sheet1!$D$2:$D$2872,SMALL(IF(sheet1!$C$2:$C$2872='Central Data'!$A2,ROW(sheet1!$D$2:$D$2872)),B$1)),"")}

Hi, to be robust against row insertions breaking your formula, you should use.

{=IFERROR(INDEX(Sheet1!$D$2:$D$2872,SMALL(IF(Sheet1!$C$2:$C$2872='Central Data'!$A2,ROW(Sheet1!$D$2:$D$2872)-MIN(ROW(Sheet1!$D$2:$D$2872))+1),B$1)),"")}
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,984
Members
449,201
Latest member
Lunzwe73

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