Return All Small Value in Range

andersen_yunan

New Member
Joined
Feb 7, 2018
Messages
36
Hi,

Is there any way that I could return the value in a range with given certain condition. For instance:

[TABLE="width: 192"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Class[/TD]
[TD]Score[/TD]
[/TR]
[TR]
[TD]Ali[/TD]
[TD]A[/TD]
[TD="align: right"]89[/TD]
[/TR]
[TR]
[TD]Alvin[/TD]
[TD]B[/TD]
[TD="align: right"]78[/TD]
[/TR]
[TR]
[TD]Barry[/TD]
[TD]C[/TD]
[TD="align: right"]23[/TD]
[/TR]
[TR]
[TD]Cynthia[/TD]
[TD]A[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD]Derry[/TD]
[TD]C[/TD]
[TD="align: right"]77[/TD]
[/TR]
[TR]
[TD]Kalvin[/TD]
[TD]B[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD]Ricky[/TD]
[TD]A[/TD]
[TD="align: right"]68[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]If Less Than 80,[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Class[/TD]
[TD]Score[/TD]
[/TR]
[TR]
[TD]Alvin[/TD]
[TD]B[/TD]
[TD="align: right"]78[/TD]
[/TR]
[TR]
[TD]Barry[/TD]
[TD]C[/TD]
[TD="align: right"]23[/TD]
[/TR]
[TR]
[TD]Derry[/TD]
[TD]C[/TD]
[TD="align: right"]77[/TD]
[/TR]
[TR]
[TD]Ricky[/TD]
[TD]A[/TD]
[TD="align: right"]68[/TD]
[/TR]
</tbody>[/TABLE]


Thanks in Advance!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
You could just filter on Score to only show the results less than 80. The filtered data set can be copied elsewhere if needed.
 
Upvote 0
You could just filter on Score to only show the results less than 80. The filtered data set can be copied elsewhere if needed.

Hi, Is there any excel formula to enable this?
I can't use filter on this since it will be hidden sheet and the data will keep changing upon new data entry.
 
Upvote 0
Hi, Is there any excel formula to enable this?
Formula in A12 copied down as far as you might need.
B12 copied across and down the same number of rows.

Excel Workbook
ABC
1NameClassScore
2AliA89
3AlvinB78
4BarryC23
5CynthiaA#N/A
6DerryC77
7KalvinB#N/A
8RickyA68
9
10
11NameClassScore
12AlvinB78
13BarryC23
14DerryC77
15RickyA68
16
Small Values
 
Upvote 0
Formula in A12 copied down as far as you might need.
B12 copied across and down the same number of rows.

Small Values

ABC
NameClass
AliA
AlvinB
BarryC
CynthiaA#N/A
DerryC
KalvinB#N/A
RickyA
NameClassScore
AlvinB
BarryC
DerryC
RickyA

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:63px;"><col style="width:52px;"><col style="width:53px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]

[TD="align: right"]Score[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]

[TD="align: right"]89[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]

[TD="align: right"]78[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]

[TD="align: right"]23[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]

[TD="align: right"]77[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]8[/TD]

[TD="align: right"]68[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]9[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]10[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]11[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]12[/TD]

[TD="align: right"]78[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]13[/TD]

[TD="align: right"]23[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]14[/TD]

[TD="align: right"]77[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]15[/TD]

[TD="align: right"]68[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]16[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
A12=IFERROR(INDEX(A$2:A$8,AGGREGATE(15,6,(ROW(A$2:A$8)-ROW(A$2)+1)/(C$2:C$8<80),ROWS(A$12:A12))),"")
B12=IF($A12="","",INDEX(B$2:B$8,MATCH($A12,$A$2:$A$8,0)))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4


Thanks for the prompt response! it works :)
 
Upvote 0
Thanks for the prompt response! it works :)
You're welcome.

BTW, best not to fully quote long posts as it makes the thread harder to read/navigate. If you want to quote, quote small, relevant parts only.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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