Calculating shift allowance

mwvirk

Active Member
Joined
Mar 2, 2011
Messages
286
Office Version
  1. 2016
Platform
  1. Windows
Hi
I would really appreciate if someone could help me to calculate my shift allowance based on the attached screenshot.
Kindly note that:
working days are Sunday to Thursday
Friday & Saturday are weekend

I think to calculate the holiday rate, we can add one extra cell having P (meaning if value in the cell is P and it's still working day i.e. Sun to Thu then calculate weekend rate)
Thank you.
 

Attachments

  • 1002263024.jpg
    1002263024.jpg
    128.9 KB · Views: 21
I don't have those issues:

View attachment 116433

It is a little difficult to debug it without having the correct excel version. But I will try.

Can you show me what you see when you select cell AJ2 and then hit F2 and then F9 (having the row filled as you showed in your last post).
What I see:

View attachment 116434

After that hit ESC to go back to the formula (or if you did hit enter, just go back one step).

Do the same for AU2. What I see:

View attachment 116435



1725535788869.png


1725535820168.png



from AJ2
1725535837210.png




from AJ3

1725535880204.png
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I don't get it, you should have just one Adam in your list in AJ2:AT2.

I don't know how to debug it without having the version of excel.
Maybe we could have a simple dropdown with all the names, and we mark it with a red background if it is duplicated. Would that work?
 
Upvote 0
I don't get it, you should have just one Adam in your list in AJ2:AT2.

I don't know how to debug it without having the version of excel.
Maybe we could have a simple dropdown with all the names, and we mark it with a red background if it is duplicated. Would that work?
Maybe we could have a simple dropdown with all the names, and we mark it with a red background if it is duplicated. Would that work?


yes. that will be OK as long as there is indication of duplicate entry.
 
Upvote 0
Ok.
here is the file for you to test:

ShiftAllowance4.zip

ShiftAllowance.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAH
1TypeDateDay of The WeekMorning Shift 08:00 Hrs To 16:00 HrsAfternoon Shift 16:00 Hrs To 24:00 HrsNight Shift 00:00 Hrs To 08:00 HrsOff ShiftVacationMikeGeorgePeterAlex CSamRogerAlex NAdam
2W01/08/2024ThuMikeGeorgeRogerAdamPeterAlex CAlex NSam
3WSatMikeMike
4WGeorgeGeorgeSamSam
5
Sheet1
Cell Formulas
RangeFormula
C2C2=TEXT(B2,"ddd")
C3C3=IF(B3="",TEXT(B3,"ddd"))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:V4Expression=SUM(($D2:$V2=D2)*(D2<>""))>1textNO
Cells with Data Validation
CellAllowCriteria
D2:V4List=Employees


Just one named range, and one rule for CF.
 
Upvote 0

Forum statistics

Threads
1,221,495
Messages
6,160,142
Members
451,624
Latest member
TheWes

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