Break down date ranges

L

Legacy 351788

Guest
Hello,

From the below I have in cell A1:A31 dates. B1:B31 DOW and C1:C31 number of rooms sold. I am wanting a formula that firstly breaks the month down into weeks that run Fri-Thurs and then calculates the number of rooms sold during that week.

This will be done every month and so the DOW will change reflective to how they fall in the month and so the formula will need to account for this.

Is this possible?

01/10/201502/10/201503/10/201504/10/201505/10/201506/10/201507/10/201508/10/201509/10/201510/10/201511/10/201512/10/201513/10/201514/10/201515/10/201516/10/201517/10/201518/10/201519/10/201520/10/201521/10/201522/10/201523/10/201524/10/201525/10/201526/10/201527/10/201528/10/201529/10/201530/10/201531/10/2015
ThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSat
22924824415420624112823224823824122024811423524724424824723989246245230223245244109248 6404
01/10/201502/10/201503/10/201504/10/201505/10/201506/10/201507/10/201508/10/201509/10/201510/10/201511/10/201512/10/201513/10/201514/10/201515/10/201516/10/201517/10/201518/10/201519/10/201520/10/201521/10/201522/10/201523/10/201524/10/201525/10/201526/10/201527/10/201528/10/201529/10/201530/10/201531/10/2015
ThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSat
Total Fcst 22924824415420624112823224823824122024811423524724424824723989246245230223245244109248 6404

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

<colgroup><col><col><col><col><col><col span="31"></colgroup><tbody>
</tbody>
Many thanks,

Richard
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Have you tried a SUMIFS? Put the start date in one cell, let's say D1, the end date in Cell D2:
=SUMIFS(C1:C32,A1:A32,">="&F2,A1:A32,"<="&F3)

Alternatively, you can use a pivot table and group the dates by Days, select 7 days and select starting date as the first Friday of the month, 02/10/15 in your case. Have a look at the workbook I created here:
https://www.dropbox.com/s/p4ayf422ur4scpx/Date example.xlsx?dl=0
 
Upvote 0

Forum statistics

Threads
1,215,779
Messages
6,126,850
Members
449,345
Latest member
CharlieDP

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