Returnign largst or smallest value from a subset of values

nightracer

Board Regular
Joined
May 17, 2004
Messages
147
Office Version
  1. 365
Hi there

Am hoping someone could point me in the right direction with a quick one.

I have a list as below, and am looking to return the smallest or largest value by day:

A B
Mon 154
Tue 192
Wed 216
Thu 147
Fri 126
Sat 98
Sun 48
Mon 52
Tue 69
Wed 210
Thu 99
Fri 137
Sat 104
Sun 146
Mon 97
Tue 184
Wed 39
Thu 172
Fri 184
Sat 90
Sun 75
Mon 163
Tue 92
Wed 87
Thu 141
Fri 78
Sat 139
Sun 52

Is there a formula that will look at this list for just Monday's for example?
So for example in D1 I put 'Mon' and have E1 = 52 (small) and F1 = 163 (large)

Many thanks for any help.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try these...

For Minimum: =MIN(IF(A$1:A$28=D1,B$1:B$28))

For Maximum: =MAX(IF(A$1:A$28=D1,B$1:B$28))

Commit these formulas using CTRL+SHIFT+ENTER and not just Enter by itself
 
Last edited:
Upvote 0
Try:

ABCDE
1ABDayMin
2Mon154Mon52
3Tue192Tue69
4Wed216Wed39
5Thu147Thu99
6Fri126Fri78
7Sat98
8Sun48
9Mon52
10Tue69
11Wed210
12Thu99
13Fri137
14Sat104
15Sun146
16Mon97
17Tue184
18Wed39
19Thu172
20Fri184
21Sat90
22Sun75
23Mon163
24Tue92
25Wed87
26Thu141
27Fri78
28Sat139
29Sun52

<tbody>
</tbody>
Sheet3

Array Formulas
CellFormula
E2{=MIN(IF($A$2:$A$29=D2,$B$2:$B$29))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>


Or if you have Excel 365:

=MINIFS(B:B,A:A,D2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,062
Messages
6,122,923
Members
449,094
Latest member
teemeren

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