tidying up formulas

HappyChappy

Active Member
Joined
Jan 26, 2013
Messages
378
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Payslip.xlsx
ABCDEFGHIJKLMNOPQRSTUVW
1DayDateStart TimeFinish TimeHours WorkedBreakHours Minus BreakServicingBasic HoursBasic Plus ServicingBonus HoursOvertimeAdjust for 39 hours spreadBasic PayOverTime PayBonus PayBreakdownsBonus Pay lostTotal Bonus PayMiles TravelledDaily Total
2Days Hours
3Monday12/02/202400:00:00 00:00:00 00:00:00#VALUE!00:00:0000:00:0000:00:00 #VALUE!0.00302.400.00302.400.00#VALUE!
12.02.24
Cell Formulas
RangeFormula
E3E3=D3-C3
F3F3=IF(C3&D3="","",2/32)
G3G3=IF(OR(C3="",D3=""),0,E3-(F3))
H3H3=IF(C3&D3="","",1/48)
I3I3=IF(OR(C3="",D3=""),0,E3-F3-H3-M3-N3)
J3J3=I3+H3
K3K3=IF(OR(C3="",D3=""),9,E3-F3-H3)
L3L3=IF(OR(C3="",D3=""),0,G3-J3)
M3M3=E3-G3
N3N3=IF(C3&D3="","",1/120)
O3O3=(J3*24)*A$14
P3P3=(L3*24)*A$15
Q3Q3=(K3*24)*A$16
S3S3=R3*A$16
T3T3=Q3-S3
V3V3=U3*A$17
W3W3=O3+P3+T3+V3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C3:D10Cell Value>0textNO
Cells with Data Validation
CellAllowCriteria
R3:R10List=$A$19:$A$28



The sheet works fine when times are entered but looks messy when the times are not entered in c3 and d3 also q3 is giving a result when it should be zero can anyone help make this a more polished sheet thank you
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Why not simply allow for the zero result. In E3
Excel Formula:
=if(or(D3="", C3=""),"",D3-C3)
In G3
Excel Formula:
=IF(OR(C3="",D3=""),"",E3-F3)
 
Upvote 0
Solution
it's J O Q and T that I'm trying to get right they work fine when c and d are populated but errors when they are empty
 
Upvote 0
the same principle applies to those cells as well, as per the formulas I provided.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,956
Members
449,096
Latest member
Anshu121

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