Weekday & Week end sales summing help.

sadath

Active Member
Joined
Oct 10, 2004
Messages
267
Office Version
  1. 365
Platform
  1. Windows
Hi

what formula to use for Weekday & Week end sales summing in the below table

|--Date---| |ThisYr| |LastYr|
1/1/2016 100 125
2/1/2016 200 225
3/1/2016 300 325
4/1/2016 400 425
5/1/2016 500 525
6/1/2016 600 625
7/1/2016 700 725
8/1/2016 800 825
9/1/2016 900 925


Pivot Table Report should be
------------|--ThisYr-------| |--- Last Yr-------|
WeekDay 3rd to 6th total 4th To 7th Tot
WeekEnd 7th To 9th total 8th+9th+3rd
Tot Week 3rd to 9th 3rd to 9th

i used the formula to get last year sales

SameDayLY:=if(weekday(SALES[DATE],1)<=6,
calculate(sum(SALES[SALESLY]),dateadd(SALES[DATE],+1,day)),
calculate(sum(SALES[SALESLY]),dateadd(SALES[DATE],-7,day))
,)
it returns error.

This table is connected to another table of

Date . WeekType
1/1/2016 WeekEnd
2/1/2016 WeekEnd
3/1/2016 WeekDay
4/1/2016 WeekDay
5/1/2016 WeekDay
6/1/2016 WeekDay
7/1/2016 WeekEnd
8/1/2016 WeekEnd
9/1/2016 WeekEnd


what formula to use to get the last year sales
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,224,146
Messages
6,176,667
Members
452,740
Latest member
CoelhoVermelho

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