This Is A Hard One

hp75150

New Member
Joined
Sep 10, 2014
Messages
31
Office Version
  1. 365
Platform
  1. Windows
I have a list containing 4 weeks worth of daily sales for several items. I would like to find the 5 consecutive days with the greatest amount of sales during those 4 weeks. Is there a formula that can help. I can find the 5 largest days no problem I just can't figure out how to get the largest 5 consecutive days total. So one item may have sold the most on days 21,22,23,24,25 while another may have been on 5,6,7,8,9. Any help would be appreciated
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I hope this can help. Let's say that column A is your date. Column B is your item count or sum. Create column C = TOTAL and copy your date column to D (for vlookup purposes).

In column C, on the first date, create the formula =b7+b8+b9+b10+b11 and copy it down through your last date. Then, do =MAX(c3:C33). In column D, next to your Max number, do a vlookup for that TOTAL to bring in the DATE and do formula =d34+1 and copy that for four rows down.

Hopefully this pastes well enough to understand what I mean:

(you create this)(Copy your date from Column A)
dateitemsTOTALDATE
01/01/1510=B3+B4+B5+B6+B701/01/15
01/02/152028501/02/15
01/03/152031501/03/15
01/04/15538501/04/15
01/05/1520048001/05/15
01/06/154034001/06/15
01/07/155038001/07/15
01/08/159034001/08/15
01/09/1510026001/09/15
01/10/156018001/10/15
01/11/158013501/11/15
01/12/15107201/12/15
01/13/151014201/13/15
01/14/152019201/14/15
01/15/151524201/15/15
01/16/151733901/16/15
01/17/158038801/17/15
01/18/156040701/18/15
01/19/157035901/19/15
01/20/1511230201/20/15
01/21/156620401/21/15
01/22/159919801/22/15
01/23/151214901/23/15
01/24/151317701/24/15
01/25/151425401/25/15
01/26/156031001/26/15
01/27/155032501/27/15
01/28/154027501/28/15
01/29/159023501/29/15
01/30/157014501/30/15
01/31/15757501/31/15
48001/05/15=VLOOKUP(C34,C:D,2,FALSE)
=MAX(C3:C33)01/06/15=D34+1
01/07/15=D35+1
01/08/15=D36+1
01/09/15=D37+1

<colgroup><col><col span="2"><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col span="2"><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,213,513
Messages
6,114,072
Members
448,546
Latest member
KH Consulting

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