# calculating the last 56 days of sales

#### Gun123

##### New Member
Hi All, was wondering if someone can help me. I have some data that consists of sales data by site and day. I need to workout the last 56 days of sales excluding the days with zero sales. I am not sure how I can do that where each sites has different days of sales.

Please see attached a mini sample below: if I want to work out the last 4 days of sales but as you can see from below each site has different days of sales, but I want to find the last 5 says (regardles of date). My actual data is over 3 months and accross 350 site. I need to work out the last 56 days of sales starting from the earliest date i.e 12/01/2021. Can some one help

 Site 101 Site 102 Site 103 Site 104 Site 105 Site 106 Site 107 12/01/21 100 200 0 200 300 0 520 11/01/21 0 0 100 150 50 200 100 10/01/21 50 0 522 0 25 100 0 09/01/21 50 100 0 100 0 0 100

### Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

#### Gun123

##### New Member
Hi All, was wondering if someone can help me. I have some data that consists of sales data by site and day. I need to workout the last 56 days of sales excluding the days with zero sales. I am not sure how I can do that where each sites has different days of sales.

Please see attached a mini sample below: if I want to work out the last 4 days of sales but as you can see from below each site has different days of sales, but I want to find the last 5 says (regardles of date). My actual data is over 3 months and accross 350 site. I need to work out the last 56 days of sales starting from the earliest date i.e 12/01/2021. Can some one help

 Site 101 Site 102 Site 103 Site 104 Site 105 Site 106 Site 107 12/01/21 100 200 0 200 300 0 520 11/01/21 0 0 100 150 50 200 100 10/01/21 50 0 522 0 25 100 0 09/01/21 50 100 0 100 0 0 100
What I need to work out is for each stors the last 56 days, the actual dates and the sales

Replies
2
Views
40
Replies
1
Views
21
Replies
1
Views
56
Replies
3
Views
112
Replies
5
Views
84

1,129,490
Messages
5,636,632
Members
416,932
Latest member
mm07

### 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.

### Which adblocker are you using?

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

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