Problems with subtracting time

sanimushin

New Member
Joined
Feb 1, 2017
Messages
7
I keep getting #VALUE! in 2 specific cells in my Column J while I subtract time.

Column J goes all the way from row 6, F6-E6, to row 155, F155-E155. All cells are working except for J19 and J53 that is giving me #VALUE!.

All cells are formatted h:mm:ss AM/PM. Is there any reason why only 2 cells are not working while everything else is fine and formatted the same way?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
F19 = 5:10:18PM
E19= 5:27-28 PM
J19= F19-E19. same with F53 and E53.

All of column F and E are time. and Column J is the subtraction of F and E. All other cells in Column J is fine except for J19 and J53. Only those 2 cells are giving me the #value! error
 
Upvote 0
I think your problem is that the time you are trying to subtract is greater - you can't do negative time.
 
Upvote 0
Hi,

A couple of remarks ...
F19 = 5:30:18 PM you do need a space between 8 and P ...

E19= 5:27:28 PM you do need a colon between 27 and 28 ...

The difference is between F19 and E19 ...
J19= Mod(F19-E19,1)

Hope this will help
 
Last edited:
Upvote 0
a hyphen instead of a colon in E19 is probably causing a problem. Otherwise the formula will work fine
 
Last edited:
Upvote 0
Thanks everyone. The problem has been resolved. The problem was the space between 8 and p. Double checked all the numbers and corrected the errors.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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