negative time as text

zrx1200

Well-known Member
Joined
Apr 14, 2010
Messages
622
Office Version
  1. 2019
Platform
  1. Windows
I have a column of negative times which I wish to sum and average.
formula that brings these figures is

IF(S738="Remove/Post",O738-T738,IFERROR(IF((Q738+"00:00:01")-O738<0,"-"&TEXT(ABS((Q738+"00:00:01")-O738),"h:mm"),(Q738+"00:00:01")-O738),""))

Now, as you see I'm putting the "-" in and text so its show as -0:00.

However if I use this

IF(S348="Remove/Post",O348-T348,IFERROR(IF((Q348+"00:00:01")-O348<0,ABS((Q348+"00:00:01")-O348),(Q348+"00:00:01")-O348),""))

it shows as a 0:00 and still as text as the figure is not right justified as number should be.

I assume I need to get the data out of text and negative in order to do any calculations??
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Now here is something I don't understand. If I take this formula (same as first post) and put in new column it works? Why I wonder?

IF(S348="Remove/Post",O348-T348,IFERROR(IF((Q348+"00:00:01")-O348<0,ABS((Q348+"00:00:01")-O348),(Q348+"00:00:01")-O348),""))

Data becomes number and I can do calcs on them. Then I need to "convert" to negative showing again.
 
Upvote 0
Now here is something I don't understand. If I take this formula (same as first post) and put in new column it works? Why I wonder?

IF(S348="Remove/Post",O348-T348,IFERROR(IF((Q348+"00:00:01")-O348<0,ABS((Q348+"00:00:01")-O348),(Q348+"00:00:01")-O348),""))

Data becomes number and I can do calcs on them. Then I need to "convert" to negative showing again.

Ended up using above in new column as a helper column to get results.
 
Upvote 0

Forum statistics

Threads
1,216,434
Messages
6,130,596
Members
449,584
Latest member
c_clark

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