Scheduling formula with Min/Max limits

blakhalo

New Member
Joined
Dec 14, 2020
Messages
4
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I need to create a formula that sums a total in column U and Column Q based on the first starting value in column U but limits the total when it reaches the min/max limits in column S and T. Column V is the expected outcome but can't seem to get a formula to keep it within the limits.
 

Attachments

  • scheduling.png
    scheduling.png
    22 KB · Views: 10

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,)
Welcome to MrExcel Message board.
If your first cell at V column is V3 and others ay U2 & Q2, Input this at V3 and drag it down.
You can change 12 & 34 to you Min & Max cell address.
Excel Formula:
=IF(V2="",$U$2+Q2,IF(V2+Q2>34,34,IF(V2+Q2<12,12,V2+Q2)))
 
Upvote 0
Hi & welcome to MrExcel.
Another option
+Fluff v2.xlsm
QRSTUV
1
23UP123412
33UP123415
43UP123418
53UP123421
63UP123424
73UP123427
83UP123430
93UP123433
103UP123434
113UP123434
123UP123434
133UP123434
143UP123434
153Up123434
16-3Down123431
17-3Down123428
18-3Down123425
19-3Down123422
20-3Down123419
21-3Down123416
22-3Down123413
23-3Down123412
24-3Down123412
253up123415
Main
Cell Formulas
RangeFormula
V3:V25V3=IF(R3="up",MIN(SUM(Q3,IF(V2="",U$2,V2)),T2),MAX(SUM(Q3,IF(V2="",U$2,V2)),S2))
 
Upvote 0
If col U will always be blank apart from the 1st row, a simpler formula would be
Excel Formula:
=IF(R3="up",MIN(SUM(Q3,U2,V2),T2),MAX(SUM(Q3,U2,V2),S2))
 
Upvote 0
How about:

Book1
QRSTUV
1UP/DOWNMINMAXACTUAL
23UP123412
33UP123415
43UP123418
53UP123421
63UP123424
73UP123427
83UP123430
93UP123433
103UP123434
113UP123434
123UP123434
133UP123434
143UP123434
153UP123434
16-3DOWN123431
17-3DOWN123428
18-3DOWN123425
19-3DOWN123422
20-3DOWN123419
21-3DOWN123416
22-3DOWN123413
23-3DOWN123412
24-3DOWN123412
253UP123415
263UP123418
273UP123421
283UP123424
293UP123427
303UP123430
313UP123433
323UP123434
333UP123434
343UP123434
Sheet9
Cell Formulas
RangeFormula
V3:V34V3=MEDIAN(S3,T3,U2+V2+Q3)
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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