Listing names with data between values

ExcelAtTeaching

New Member
Joined
Jun 20, 2019
Messages
2
Hi. This is my first post. Used Excel on and off for a while and manage to get by through googling functions I need but this one has me stumped.

I'm collating exam results and trying to create lists of names depending on their scores on another sheet. I've managed this so far:

=IFERROR(INDEX('Raw Results'!$A$4:$A$31, SMALL(IF('Raw Results'!$F$4:$F$31<$F$4, ROW('Raw Results'!$F$4:$F$31)-ROW('Raw Results'!$F$4)+1), ROW(1:1))),0)

This is fine to list pupils at the top and bottom ranges (ie greater or less than one score/value).
The problem I have is trying to generate a list that is between two values (ie <F4 but >D4.

I tried using AND within the IF function but to no avail.

=IFERROR(INDEX('Raw Results'!$A$4:$A$31, SMALL(IF(AND('Raw Results'!$F$4:$F$31<$F$4,'Raw Results'!$F$4:$F$31>$D$4), ROW('Raw Results'!$F$4:$F$31)-ROW('Raw Results'!$F$4)+1), ROW(1:1))),0)

Any ideas? Thanks.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi & welcome to MrExcel.
Try
SMALL(IF(('Raw Results'!$F$4:$F$31<$F$4)*('Raw Results'!$F$4:$F$31>$D$4),ROW
 
Upvote 0
To use an AND condition in an array formula try either:

multiply the conditions
IF((Condition1)*(Condition2),...

or nested IFs
IF(Condition1, IF(Condition2,...

M.
 
Last edited:
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,128
Members
453,021
Latest member
Justyna P

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