Bracket Error

HappyChappy

Active Member
Joined
Jan 26, 2013
Messages
383
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Payslip.xlsx
ABCDEF
1DayDateStart TimeFinish TimeHours WorkedHours Worked
2Days Hours
3Monday12/02/202407:0017:0010:00:0010.00
19.02.24
Cell Formulas
RangeFormula
E3E3=IF(OR(C3="",D3=""),"",D3-C3)
F3F3=IF(OR(C3="",D3=""),"",E3*24)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C3:D10Cell Value>0textNO


if(or(c3="",d3=""),"",(c3-d3)*24))

i know its an issue with brackets but can't get it to work, want to do away with col E to tidy things up
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Payslip.xlsx
ABCDEFGHI
1DayDateStart TimeFinish TimeHours WorkedHours WorkedBreakBreakHours Minus Break
2Days Hours
3Monday12/02/202407:0017:0010.0000:45:000.7523:15:00
19.02.24
Cell Formulas
RangeFormula
F3F3=IF(OR(C3="",D3=""),"",D3-C3)*24
G3G3=IF(OR(C3="",D3=""),"",1/32)
H3H3=IF(OR(D3="",C3=""),"",G3*24)
I3I3=IF(OR(C3="",D3=""),"",F3-(G3))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C3:D10Cell Value>0textNO


worked out initial problem but generated another from i col i should show 9:15 but instead shows 23:15
 
Upvote 0
worked out initial problem
I'm not sure you have. If C3 or D3 is blank then your F3 formula will return an error. It should be
Excel Formula:
=IF(OR(C3="",D3=""),"",(D3-C3)*24)

but generated another from i col i should show 9:15 but instead shows 23:15
Try this in I3
Excel Formula:
=IF(OR(C3="",D3=""),"",F3/24-G3)
or
Excel Formula:
=IF(OR(C3="",D3=""),"",D3-C3-G3)

BTW, if you are still looking for help in a thread, probably best to remove the "Mark as solution". Many helpers will not even look at your thread if they see it already has a solution.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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