How to get this time value correct?

vane0326

Well-known Member
Joined
Aug 29, 2004
Messages
819
Why in cell I3 the result is 7.80 It should read 7.66 What I'm doing wrong. How can I modified my formula so my result could be 7.66?

Thanks!
PERSONAL.XLS
BCDEFGHI
1
2Start TimeLunch StartLunch EndBreak StartBreak EndEnd TimeTotal
3John5.308.329.0210.0010.2014.007.80
Sheet1
 

Some videos you may like

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

vane0326

Well-known Member
Joined
Aug 29, 2004
Messages
819
Thanks Mark W!

He gave me this formula.
But how did he do it?

{=SUM(SUBSTITUTE(TEXT(C3:H3,"0.00"),".",":")*{-1,1,-1,1,-1,1})*24}
 

vane0326

Well-known Member
Joined
Aug 29, 2004
Messages
819
If you dont like arrays you could use this formula.

=SUMPRODUCT(--SUBSTITUTE(TEXT(C3:H3,"0.00"),".",":"),{-1,1,-1,1,-1,1})*24
 

rs2k

Well-known Member
Joined
Aug 15, 2004
Messages
1,413
Am I reading this wrong, shouldn't the answer be 7:40?
If that is time worked (breaks deducted)
Cells formatted [h]:mm
Cell I3 =(H3-C3)-(E3-D3)-(G3-F3)

Is that not what you are asking?
Colin
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,219
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Instead of entering the times as 5.30 etc try 5:30.

Then Excel will actually treat them as times.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,088
Messages
5,599,664
Members
414,325
Latest member
kfg1287

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
Top