is it possible

HappyChappy

Active Member
Joined
Jan 26, 2013
Messages
384
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Exel.xlsx
ABCDEFGHIJK
1JanuaryHours WorkedTotal HoursTotal Pay
2Sunday30/01/202200:0000:0000:000:00 
3Monday31/01/202210:0020:0010:009:15£92.50
4Tuesday01/02/202210:0020:0010:009:15£92.50
5Wednesday02/02/202210:0020:1510:159:30£95.00
6Thursday03/02/202210:0014:0004:004:00£80.00
7Friday04/02/202210:0020:0010:009:15£92.50
8Saturday05/02/202210:0016:0006:006:00£120.00
9
10
11RATES
12£10.00Standard RateMin 8 hrs paid as in G6 once 48 is reached Overtime kicks in to all paymnts
13£15.00O/Time Rate
14£12.00Saturday Rate
15£18.00Saturday O/Time Rate
16£15.00Sunday Rate
17£22.00Sunday O/Time Rate
18
Jan-22
Cell Formulas
RangeFormula
E2:E8E2=D2-C2
F2:F8F2=IF(E2>TIME(8,0,),E2-TIME(0,45,0),E2)
G2G2=IF(F2=0,"",MAX(Data!$B$44,F2*24)*$A$14)
G3:G7G3=IF(F3=0,"",MAX(Data!$B$44,F3*24)*$A$12)
G8G8=IF(F8=0,"",MAX(Data!$B$44,F8*24)*$A$16)
B3:B8B3=B2+1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
C2:D10Cell Value>0textNO



Trying to work out how to build in hours work over 48 at overtime rate. The sheet can work out minimum hours works of 8hr also breaks of 45 mins need to be factored in once 8:45 is reached
i hope i have pasted the mini sheet correctly as it's my first attempt at this thank you
 
the macro runs and changes the date perfectly by column R week total shows #Value which is what was happening to me.
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
???
I just used the link in #60 to download my last uploaded version.
There are no error in the R-column.
What did you do to get those errors ? (on which excel-version if not 2019?)
 
Upvote 0
i have no explanation, my "dutch" formula in R2
Rich (BB code):
=ALS(A2="";R1;"wk_"& TEKST(A2-WEEKDAG(A2)+1;"jj.mm.dd"))
where "jj" is the dutch equivalent for the english "yy"

If i modify in R2 the "jj" into "yy" then the rest of that column starting in R3 is okay, but R2 is still an error.
When i then modify R2 to the original "jj" R2 is also okay.

So it has to do with the difference in our regional settings and i can't test it here.
I'll try another approach, but i'm not sure about the result.

What is your actual excel-version or do you use all 3 of them ?
 
Upvote 0
i have no explanation, my "dutch" formula in R2
Rich (BB code):
=ALS(A2="";R1;"wk_"& TEKST(A2-WEEKDAG(A2)+1;"jj.mm.dd"))
where "jj" is the dutch equivalent for the english "yy"

If i modify in R2 the "jj" into "yy" then the rest of that column starting in R3 is okay, but R2 is still an error.
When i then modify R2 to the original "jj" R2 is also okay.

So it has to do with the difference in our regional settings and i can't test it here.
I'll try another approach, but i'm not sure about the result.

What is your actual excel-version or do you use all 3 of them ?
just tried changing jj to yy and it clears the error Fantastic
 
Upvote 0
new year
in AG1 i check the dateformat to be "yy" or "jj" and depending on the result, use that dateformat in R.

Also another improvement, when you toggle the weektotals, there are "52 entirerows" of formulas deleted.
After a while ...
Now there 'll remain enough rows.
 
Upvote 0
This spread sheet is fantastic so happy with what you have done in building it..
was thinking would it be possible to add another rate of pay for bank holidays and add this if possible as they tend to be a different rate from the normal amount paid
also if someone has a holiday to be able to add this because in the uk holidays are paid at a different rate again so in the time maybe enter an H for instance to show holiday and it adds the holiday rate in
 
Upvote 0

Forum statistics

Threads
1,224,845
Messages
6,181,300
Members
453,031
Latest member
Chris_1

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