Need MIN/MAX from Range That Varies Daily

madkinson

Board Regular
Joined
Dec 17, 2004
Messages
113
Office Version
  1. 365
Platform
  1. Windows
I generate a sheet every day that has 4 activities and associated data. I need to capture the MIN and MAX as part of the requirement. that is easy manually but how can you automate this every day to account for a different Activity range? In my example sheet, Activity 12 is rows 22 thru 25. Tomorrow, it may be rows 25 thru 40. I tried to do an INDEX/MATCH but it too wasn't flexible enough to deal with different ranges. Am I making this too hard?
Book3
ABCDEF
1Doc #DateAct # Qty MINMAX
210920438905/23/2022114.37
310920436335/23/2022125.67(3,000)
410920436415/23/2022126.56820
510920436435/23/2022124.60(1,500)
610920436465/23/2022123.70(5,400)
710920436625/23/2022221.16(2,400)
810920436765/23/2022222.54
910920437535/23/2022225.14(520)
1010920437625/23/2022222.30(1,160)
1110920437655/23/2022218.75
1210920437675/23/2022216.922,520
1310920438285/23/20221124.29(500)
1410920438435/23/20221125.86
1510920438475/23/20221124.20
1610920438545/23/20221123.85
1710920438645/23/20221122.88(500)
1810920438815/23/20221124.44
1910920438865/23/20221123.60
2010920438875/23/20221124.65
2110920438985/23/20221123.50(500)
2210920436095/23/20221222.491,250
2310920436125/23/20221227.71
2410920436175/23/20221225.25460
2510920436215/23/20221224.33
Sheet1
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You would use MAXIF and MINIF. Also it would help if you updated your profile to show what version of Excel you are using. These functions are not in older versions.

I can't make any sense out of your sample data. What are the numbers in the MIN and MAX columns?
Where/how do you want to show the MIN/MAX for an activity range? Do you want to show MIN/MAX for every activity?
 
Upvote 0
The MIN/MAX values are shown if over or under a specific threshold, else they are blank. I would like to focus on activities 11 and 12. I am using Excel 365
 
Upvote 0
Let me ask the question a different way. In activity 11, your Qty numbers are all between 22 and 26. You don't show any maximum; I would expect you to show a maximum of 25.86. You show multiple minimums and they are all -500; I would expect to see a minimum of 22.88. I cannot make any sense out of your sample MAX MIN number.
 
Upvote 0
As well as the clarification that @6StringJazzer has asked for ..

The MIN/MAX values are shown if over or under a specific threshold,
.. what specific threshold and how will we know what it is.

I am using Excel 365
Please add that to your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
The actual sheet has 20+ columns and averages about 200-300 rows depending on the day. I had to cut columns to make it fit. The only columns I care about for MIN/MAX are the Min and Max columns. I was trying to get results that look like this:
ActivityMINMAX
1(5,400)820
2(2,400)2,520
11(500)
121,250
 
Upvote 0
So you want to calculate the MIN of the Min, and the MAX for the Max? Where do you want the result to go for a given Activity? In a separate table?
 
Upvote 0
I would do this with a pivot table.

Capture.JPG
 
Upvote 0
The only columns I care about for MIN/MAX are the Min and Max columns. I was trying to get results that look like this:

Try
Using your data sample above

Pasta1
HIJ
1ActivityMINMAX
21(5.400)820
32(2.400)2520
411(500) 
512 1250
Plan6
Cell Formulas
RangeFormula
I2:I5I2=IFERROR(AGGREGATE(15,6,E$2:E$300/((C$2:C$300=H2)*ISNUMBER(E$2:E$300)),1),"")
J2:J5J2=IFERROR(AGGREGATE(14,6,F$2:F$300/((C$2:C$300=H2)*ISNUMBER(F$2:F$300)),1),"")


M.
 
Upvote 0

Forum statistics

Threads
1,214,545
Messages
6,120,132
Members
448,947
Latest member
test111

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