Not sure what im doing wrong with the index function

DeanRobinson

New Member
Joined
Sep 1, 2011
Messages
35
This is probably a really simple one but i cant seem to understand why its doing it.

i have two rows lets say A and B

in A i have the formula
{=SMALL(IF([TECHTM.xls]Sheet1!$B$2:$B$88=$A$1,ROW([TECHTM.xls]Sheet1!$B$2:$B$88)),ROW(1:1))}

which works and returns row say

7
8
11
12

then in B i have a formula
{=INDEX([TECHTM.xls]Sheet1!$A$2:$B$88,SMALL(IF([TECHTM.xls]Sheet1!$B$2:$B$88=$A$1,ROW([TECHTM.xls]Sheet1!$B$2:$B$88)),ROW(1:1)),1)}

which should just be giving the value of row 7,8,11,12, but for some reason its jumping down a cell and returning the values of 9,10,12,13. any help would be great, ive never used small or index before. so not to sure what im doing.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
then in B i have a formula
{=INDEX([TECHTM.xls]Sheet1!$A$2:$B$88,SMALL(IF([TECHTM.xls]Sheet1!$B$2:$B$88=$A$1,ROW([TECHTM.xls]Sheet1!$B$2:$B$88)),ROW(1:1)),1)}

Not completely sure, but what happens if you just use:

{=INDEX([TECHTM.xls]Sheet1!$A$2:$B$88,SMALL(IF([TECHTM.xls]Sheet1!$B$2:$B$88=$A$1,ROW([TECHTM.xls]Sheet1!$B$2:$B$88)),ROW(1:1)))}
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,571
Members
452,927
Latest member
whitfieldcraig

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