Predict Sales between two dates based on history sales per Quarter

hatahetahmad

New Member
Joined
Jan 8, 2016
Messages
31
Hi,
If I had two dates from 1/15/2018 to 7/10/2018
and I Had sales per day from historical data :
Qtr1 - 20 - per day
Qtr2 - 25 - per day
Qtr3 - 18 - per day
Qtr4 - 32 - per day

I wanna know how much I'll sold based on this data per quarter like this :
from 1/15 to 3/31 how many working days multiply Qtr 1 (65 days * 20 = 1300)
and from 4/1 to 6/30 (78 days * 25 =1950)
and from 7/1 to 7/10 (9 days * 18 =162)
I excluded Fridays only
total expected sales is (1300 + 1950 + 162 = 3412)

My solution is checking start date quarter and end date quarter then make a huge if to achieve that
Can we have more fast, dynamic and stable solution

Thank you
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi, here are a couple of options that you could try to adapt to your set up - personally I think it would be better to break it up a bit (formulas in C9:G9 copied down), but I've included a one pass option I9 copied down.

Note the changes to your historical sales table to include the Quarter from and to dates.


Excel 2013/2016
ABCDEFGHI
1QQ FromQ ToPer Day
2Q101/01/201803/31/201820
3Q204/01/201806/30/201825
4Q307/01/201809/30/201818
5Q410/01/201812/31/201832
6
7
8StartEndQ1Q2Q3Q4TotalOne Pass
901/15/201807/10/201813001950162034123412
1001/01/201801/31/2018540000540540
1101/01/201812/31/2018154019501422252874407440
1204/01/201807/01/20180195018019681968
1301/01/201801/10/2018180000180180
1412/31/201801/01/2019000323232
Data
Cell Formulas
RangeFormula
C9=MAX(0,NETWORKDAYS.INTL(MAX($B$2,$A9),MIN($C$2,$B9),16))*$D$2
D9=MAX(0,NETWORKDAYS.INTL(MAX($B$3,$A9),MIN($C$3,$B9),16))*$D$3
E9=MAX(0,NETWORKDAYS.INTL(MAX($B$4,$A9),MIN($C$4,$B9),16))*$D$4
F9=MAX(0,NETWORKDAYS.INTL(MAX($B$5,$A9),MIN($C$5,$B9),16))*$D$5
G9=SUM(C9:F9)
I9{=SUMPRODUCT(IF(A9<=$C$2:$C$5,IF(B9>=$B$2:$B$5,NETWORKDAYS.INTL(IF($B$2:$B$5>$A9,$B$2:$B$5,A9),IF($C$2:$C$5<$B9,$C$2:$C$5,B9),16))),$D$2:$D$5)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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