=INDEX(Sheet20!$C$3:$C$19,SMALL(IF(Sheet20!$A$3:$A$19=$K$26,ROWS(Sheet20!$A$3:$A$19-ROWS(Sheet20!$A$3)+1),""),1))

Nazerith

New Member
Joined
Sep 13, 2011
Messages
6
=INDEX(Sheet20!$C$3:$C$19,SMALL(IF(Sheet20!$A$3:$A$19=$K$26,ROWS(Sheet20!$A$3:$A$19-ROWS(Sheet20!$A$3)+1),""),1))

This is not working I have times of

8:00 am
4:00 pm
5:00 pm
5:00 pm

all associated to K26
all i get back if i change the k factor is 5:00 pm
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Typically you would use ROW function rather than ROWS.....and you have a parenthesis in the wrong place, try this version

=INDEX(Sheet20!$C$3:$C$19,SMALL(IF(Sheet20!$A$3:$A$19=$K$26,ROW(Sheet20!$A$3:$A$19)-ROW(Sheet20!$A$3)+1),1))

confirmed with CTRL+SHIFT+ENTER

you need to change the red 1 to 2, 3 etc for all instances.....or use ROWS function in place of the 1, e.g. if first formula is in Z2 use this version copied down

=INDEX(Sheet20!$C$3:$C$19,SMALL(IF(Sheet20!$A$3:$A$19=$K$26,ROW(Sheet20!$A$3:$A$19)-ROW(Sheet20!$A$3)+1),ROWS(Z$2:Z2)))

ROWS function at the end automatically increments by 1 each row so that you don't have to change the numbers manually.....
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,833
Members
452,947
Latest member
Gerry_F

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