PivotTable Formula for Hours based on Days

Kristylee0228

New Member
Joined
Sep 8, 2011
Messages
30
Hello!
I have a DataSet with a Column for Days of Week: Mon, Tue, etc... What I am trying to do is create a formula for Scheduled Hours if Monday through Friday equal 8 hours, totaling 40. Saturday and Sunday would be 4 hours each. Having a total of 48 hours. I have searched and searched to no avail. Can someone please help. I am trying to put this in a Pivot Table.
Thank you so very much.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
not sure what you are after, mayneed more detsail or a sample using XL2BB see signature

in the DATA Set
in a new column

=IF(WEEKDAY(A1,2)<6,8,4)

Book3
ABC
11/1/21Friday8
21/2/21Saturday4
31/3/21Sunday4
41/4/21Monday8
51/5/21Tuesday8
61/6/21Wednesday8
71/7/21Thursday8
81/8/21Friday8
91/9/21Saturday4
101/10/21Sunday4
111/11/21Monday8
121/12/21Tuesday8
131/13/21Wednesday8
141/14/21Thursday8
151/15/21Friday8
161/16/21Saturday4
171/17/21Sunday4
181/18/21Monday8
191/19/21Tuesday8
201/20/21Wednesday8
Sheet1
Cell Formulas
RangeFormula
B1:B20B1=A1
C1:C20C1=IF(WEEKDAY(A1,2)<6,8,4)
 
Upvote 0
not sure what you are after, mayneed more detsail or a sample using XL2BB see signature

in the DATA Set
in a new column

=IF(WEEKDAY(A1,2)<6,8,4)

Book3
ABC
11/1/21Friday8
21/2/21Saturday4
31/3/21Sunday4
41/4/21Monday8
51/5/21Tuesday8
61/6/21Wednesday8
71/7/21Thursday8
81/8/21Friday8
91/9/21Saturday4
101/10/21Sunday4
111/11/21Monday8
121/12/21Tuesday8
131/13/21Wednesday8
141/14/21Thursday8
151/15/21Friday8
161/16/21Saturday4
171/17/21Sunday4
181/18/21Monday8
191/19/21Tuesday8
201/20/21Wednesday8
Sheet1
Cell Formulas
RangeFormula
B1:B20B1=A1
C1:C20C1=IF(WEEKDAY(A1,2)<6,8,4)
This works, however I was hoping to do it without adding anymore columns to the data. Like an IF statement within the Pivot Table. I have my Pivot Table data source connected to a View in SQL Server. Which I am new to as well. I honestly didn't think it was going to be this complicated. I appreciate your help! :)
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

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