Combining Sum and Max formulas

EGG21

New Member
Joined
May 11, 2020
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. MacOS
In columns B and C we have the time and number of cars passing.

The objective: find the max total of the sum of 7 consecutives numbers

At present we have to split out the sum of 7 consecutive numbers (column G7-10) from data and then max those in G16. Is there a way to combine this to deliver the same result in a single cell formula?:)

1589185097136.png











 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
The correct answer is 49, but I want to get there in one cell formula rather than having to sum the 7 consecutive numbers in G7-10 first and then max those 4 numbers to deliver =49.
 
Upvote 0
Welcome to the Mrexcel board!

I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

Try these. The F3 formula requires Excel 365 with the SEQUENCE function.

20 05 11.xlsm
CDEF
1
2
314949
42
53
64
75
86
97
108
119
1210
Max 7
Cell Formulas
RangeFormula
E3E3=MAX(SUBTOTAL(9,OFFSET(C3,ROW(INDIRECT("1:"&ROWS(C3:C12)-6))-1,,7)))
F3F3=MAX(SUBTOTAL(9,OFFSET(C3,SEQUENCE(ROWS(C3:C12)-6,,0),,7)))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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