Removing negative ( - ) symbol from Time Calculation

BrianExcel

Well-known Member
Joined
Apr 21, 2010
Messages
975
I have a time display that is being calculated off other cells. The workbook is formatted in the 1904 date setting.

Also, I have conditional formatting applied so that if the value is less than zero is shows as red, but if greater than 0 it shows red.

What I need to do is simply remove the negative symbol from the time. If it shows as -6:40, then it should show as red but not have a - before it.

Thoughts? I tried using absolute value but that changes it to a positive number which then changes the red text to green. I need to somehow keep the value negative but not show the negative symbol. The red text should designate negative...
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Instead of conditional formatting, use a custom cell format.

  • Remove your conditional format
  • Right-click on the cell with the result time
  • Select Format Cells from the pop-up menu
  • Custom format: h:mm;[Red]h:mm
 
Upvote 0
Thats works perfectly Alpha except one thing...how would I add Green to that mix?

So if it's negative show red, if positive show Green? Right now the red works but what about a second color?
 
Upvote 0
Sorry Alpha, one more question. How do you choose which color if it's not the standard Excel color?

Example: If I change your RED to GREEN in your provided example, it shows up as a 'Highlight' green, but what if I wanted it to be a shade or two darker and not so bright?
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,718
Members
452,939
Latest member
WCrawford

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