Help with formula

bizzilizzi

New Member
Joined
May 6, 2011
Messages
9
Hallo

I am new to this forum and also very new to formulas in excel. I search the net, found many timesheets but not with what I am trying to do. I am struggling and need some help.
In Sheet A
I have in sheet A (named "Lists") in column "O" a list of public holidays -ranges 2 to 11, the range is called Pub_Hol.
In Sheet B
Sheet B (named "Week 4"), I have
column B - Date (date format - 06/05/2011)
column E - Start Time, (hh:mm)
column F - End Time, (hh:mm)
column G - Total Reg Hrs, (hh:mm) (=IF(COUNT(E2:F2)=2, F2-E2+(E2>F2), "")
column H, Total Pub Hrs (hh:mm)

What I want to achieve is the following:

When I enter a public holiday date on Sheet B, column B which correspond to one of the dates in Sheet A, column O - I want that dates to come up in a different colour/or highlighted (if possible). Secondly should I enter one of these public holidays in column B on sheet B the total hours in column G should be disabled. Thirdly the calculation of the total hours for column H (Pub Hrs) should then be activated and multiplied by 1.5 ( that is column F minus column E mulitiplied by 1.5)

I need to repeat this formula on new sheets for every week.

I hope it makes sense

Any help will be greatly appreciated.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi Ak,

That is a very nice timesheet and I might be able to use some of the features. In my timesheet I have the following:

Sheet 1 - All the staff with their details, pay rates, and a summary of their weekly pay, holiday pay and overtime.
Sheet 2 - All my lists I refer back to - just to make it easy for myself
Sheet 3 - Clients -with description of the different shifts provided, regular rates and public holiday rates
Sheet 4 - The bookings - (A)with client name, (B)day) eg WED, (C) date (dd:mm:yy) (D)description of the shift that has been booked, (E)the staff member name, (F)start time, (G)end time, (H)total regular hours, (I)total public holiday time, (J)breaks, (K)total hours, (L)client rate, (M)line total

Column C, D E, K, L and M I copy to another spreadsheet which is my invoice.

Most of my calculations work and some are updated in sheet A, however, I am by no way an expert and I am at a very frustrating point not understanding some of the functions and how to make it work. Any help to automate some of the functions would be much appreciated.
 
Upvote 0
Hi,

Well that's a bit different to your original post :rofl:

I'm not really sure what you require now :confused:

Here is a Weekly Time Sheet see if you can use/modify it...


Weekly Time Sheet.xls


It would be best if you could post a sample of your sheet(s) and the expected results you require, something like this perhaps...

Excel Workbook
ABCDEFGHIJKLM
1",CELL("filename",A1))+1,256)]Week18DateStart TimeEnd TimeTotal Reg HrsTotal Pub HrsOT Rate2011
21802/05/201108:0016:00 12:001.5
303/05/201108:0016:008:00
404/05/201108:0014:006:00
505/05/201106:0017:0011:00
606/05/2011
707/05/2011
808/05/2011
Week18


The formulas in B3, G2, H2 need to be copied down.
If you can post a link to your file I will take a look at it.

Ak
 
Upvote 0
Hi Ak,

Many thanks, I am going to see if I can work with it. :rofl: I really appreciate your help and will get back to you - I am sure with more questions. :rolleyes:
 
Upvote 0
Upvote 0
Hi Ak,

I am struggling :confused: and will attach the file for you to see. I just need to make a copy and remove some info.

Again thanks for your help!:biggrin:
 
Upvote 0
Hi,

I have looked at your Workbook and added some formulas, probably not the best, but they do seem to work. Here is a snap shot of what I have done, the cells highlighted blue are where I have added formulas.
I've changed some of the names to protect the innocent or guilty :)


Excel Workbook
ABCDEFG
1Vlookup Helper ColumnShiftClientRate HCAPub Hol Rate HCARate RGNPub Hol Rate RGN
2*******
3Company A-Week Early ShiftWeek Early ShiftCompany A20.0040.0036.0072.00
4Company A-Week Late ShiftWeek Late ShiftCompany A24.0048.0036.0072.00
5Company A-Week Night ShiftWeek Night ShiftCompany A26.0052.0036.0072.00
6Company A-Weekend Long Day ShiftWeekend Long Day ShiftCompany A24.0048.0040.0080.00
7Company A-Weekend Early ShiftWeekend Early ShiftCompany A22.0044.0038.0076.00
8Company A-Weekend Late ShiftWeekend Late ShiftCompany A28.0056.0042.0084.00
9Company A-Weekend Night ShiftWeekend Night ShiftCompany A30.0060.0045.0090.00
Descriptions & Rates




Excel Workbook
ABCDEFGHIJKL
1CLIENTDATEDESCRIPTIONSTAFFSTARTING TIMEENDING TIMEREG HRSPUB HRSBREAKSHOURSUNIT PRICELINE TOTAL
2Company A27/04/2011Week Early ShiftHCA John Smith08:0020:0012:00**12:0020.00240.00
3Company A29/04/2011Week Late ShiftHCA John Doe08:0020:00*12:00*12:0048.00576.00
4Company A29/04/2011Week Night ShiftRGN Jo Doe20:0008:00*12:00*12:0072.00864.00
5Company A30/04/2011Weekend Long Day ShiftHCA John Smith08:0020:0012:00**12:0024.00288.00
6Company A30/04/2011Weekend Late ShiftHCA Jan Doe08:0020:0012:00**12:0028.00336.00
7************
8************
Week 4



I'm sure there must be a better way to return the correct hourly rate in column K than the one I have used, but that is all I have, sorry.

I hope this helps resolve your problem, good luck.

AK
 
Upvote 0
Hi Ak,

Thanks you are a star!

I can work with the formulas you have sent me.

Thumbs up for the work you have done!:beerchug:
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,879
Members
452,948
Latest member
Dupuhini

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