Sum of highest 4 consecutive numbers and define the 4 numbers

foxfire74

New Member
Joined
Nov 9, 2019
Messages
1
Hi everyone.

I have a number spreadsheet with 20 columns /100 rows of numbers. I need to get the sum of the highest 4 CONSECUTIVE numbers of each columns. I have found two formula to get the sum:

=SUMPRODUCT(MAX(D3:D95+D4:D96+D5:D97+D6:D98))

or

=MAX(INDEX(D3:D95+D4:D96+D5:D97+D6:D98,0))

1). Both of them work but can someone explain the difference between them?

2). I would also like to define or highlight the cells of the four consecutive numbers that totaled the sum from. Is there a way to tell which four numbers the formula calculated? I thought maybe using Conditional Formatting but I haven't been able to figure out how.

Any advise or guidance would be greatly appreciated.

Thanks in advance,
Frankie
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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