Need to get rid of negative numbers

dudoubleb

New Member
Joined
Jun 15, 2005
Messages
27
Subtracting one column from another that sometimes results in a negative number....instead of a negative number i want the result displayed as 0.001
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

p45cal

Well-known Member
Joined
Nov 10, 2009
Messages
4,763

ADVERTISEMENT

but not quite the same result if a1-b1 = anything between .001 and 0
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
11,971
Office Version
  1. 365
Platform
  1. Windows
A pointless alternative (but it works).

=--TEXT(A1-B1,"[<0]""0.001"";0.000")
 

mgm05267

Well-known Member
Joined
Nov 11, 2011
Messages
615

ADVERTISEMENT

Hi dudoubleb,

Simple....

"=ABS(A1-B1)"

Regards,

MGM
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
ABS won't return .001 if it is a negative number.

Try 4 in A1 and 7 in B1.
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
but not quite the same result if a1-b1 = anything between .001 and 0

You are right.

I assumed that since the OP wants negatives as 0.001 and not 0 that 0.001 was ok as a minimum value. I should, however, have written this.

Thanks for pointing it out.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,141
Messages
5,599,966
Members
414,352
Latest member
macquarie_jchan58

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