Index...small....row

Jan Kalop

Active Member
Joined
Aug 3, 2012
Messages
389
=INDEX(F$44:F$79,SMALL(IF($S$44:$S$79=$S$42,ROW($S$44:$S$79)-ROW($S$44)+1),ROWS($A$1:A1)))


It is possible change above formula in section =$S$42 to options biger and smaller at the same time (for sample >$S$42-3 and <$S$42+1)




Both below are obviously not working:


=INDEX(F$44:F$79,SMALL(IF($S$44:$S$79=AND(>$S$42-3,<$S$42+1),ROW($S$44:$S$79)-ROW($S$44)+1),ROWS($A$1:A1)))
or
=INDEX(F$44:F$79,SMALL(IF($S$44:$S$79=AND($S$44:$S$79>$S$42-3,$S$44:$S$79<$S$42+1),ROW($S$44:$S$79)-ROW($S$44)+1),ROWS($A$1:A1)))
 
Last edited:

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Untested but try
=INDEX(F$44:F$79,SMALL(IF(($S$44:$S$79>$S$42-3)*($S$44:$S79<$S$42+1),ROW($S$44:$S$79)-ROW($S$44)+1),ROWS($A$1:A1)))
 
Upvote 0
2 slightly different ways to do that:

=INDEX(F$44:F$79,SMALL(IF($S$44:$S$79>$S$42-3,IF($E$44:$S$79<$S$42+1,ROW($S$44:$S$79)-ROW($S$44)+1)),ROWS($A$1:A1)))

=INDEX(F$44:F$79,SMALL(IF(($S$44:$S$79>$S$42-3)*($S$44:$S$79<$S$42+1),ROW($S$44:$S$79)-ROW($S$44)+1),ROWS($A$1:A1)))

both with Control+Shift+Enter. Using AND or OR in array formulas doesn't usually work, since it works on more of the array than you want.
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,391
Messages
6,119,239
Members
448,879
Latest member
VanGirl

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