Summing values based on Weekend or weekday and of certain months

jmb123

New Member
Joined
May 20, 2021
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hello, I'd like to sum revenue of weekends of each month and revenue by weekdays of each month. I'd also like to average occupancy percentages by the same criteria. I was able to shade the rows based on weekday function, but I am having trouble creating a formula to sum the value based off being a weekend and in a certain month. To fully explain, there is another qualifier (A,R or T in picture). Thank you in advance

Weekend Revenue of category "A" in Jan, Feb, March etc.
Weekday Revenue of category "A" in Jan, Feb, March, etc.

Weekend average Occupancy of category "A" in Jan, Feb, March, etc.
Weekday average occupancy of category "A" in Jan, Feb, March , etc.
 

Attachments

  • Occupancy and Revenue by weekend and weekday Mr. Excel.png
    Occupancy and Revenue by weekend and weekday Mr. Excel.png
    22.5 KB · Views: 5

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
We cannot work with a picture. Please post an extract of your data with the forum's tool named XL2BB.

You can review the following and expand it to address your requirements.

SumProduct 2022a.xlsm
ABCDEFG
1DateAmount
2Sat 01-Oct-22220Total5200
3Sun 02-Oct-22250Weekends1360
4Mon 03-Oct-22280Weekdays3840
5Tue 04-Oct-22310
6Wed 05-Oct-22340
7Thu 06-Oct-22370
8Fri 07-Oct-22400
9Sat 08-Oct-22430
10Sun 09-Oct-22460
11Mon 10-Oct-22490
12Tue 11-Oct-22520
13Wed 12-Oct-22550
14Thu 13-Oct-22580
4a
Cell Formulas
RangeFormula
G2G2=SUM(D:D)
G3G3=SUMPRODUCT(--(WEEKDAY(A2:A14,2)>5),D2:D14)
G4G4=G2-G3
 
Upvote 0
I cannot get the add-in tool to record and every time i restart excel I have to "reopen" the add-in. I wish I could just simply email or upload and excel file.. is that possible? I appreciate your effort, but I guess I need to find another platform.
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,816
Members
449,095
Latest member
m_smith_solihull

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