Converting % to Positive Number

jarett

Board Regular
Joined
Apr 12, 2021
Messages
179
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I sometimes get negative values with this formula and it is affecting my average, so how could I convert any negative numbers to a positive percentage within this formula? Or do I need to create another column to accomplish this. Ex. if I the formula produced -25%, I would want to display 25%.
Excel Formula:
=IF([@[Qty on Shelf]]="","",([@[Updated QTY]]-[@QuantityOnHand])/[@QuantityOnHand])

IM_WH_COUNT.xlsx
ABCDEFGH
2ItemCodeItemCodeDescWarehouseCodeQuantityOnHandQty on ShelfWIP AdditionsUpdated QTYPercent Difference
308-0003188NO HOLES-31-1/2 X 500 .005 WHT00000 
408-0007208120 in.SPACING-31-1/2 x 500' .00032130%
508-0007208120 in.SPACING-31-1/2 x 500' .00300 
608-000720934 in.SPACING-31-1/2 x 500' .00008246-25%
708-000721160 in.SPACING-31-1/2 x 500' .000000 
808-000721260 in. SPACING-19 X 500' .005000451650%
IM_WH_COUNT
Cell Formulas
RangeFormula
G3:G8G3=[@[Qty on Shelf]]+[@[WIP Additions]]
H3:H8H3=IF([@[Qty on Shelf]]="","",([@[Updated QTY]]-[@QuantityOnHand])/[@QuantityOnHand])
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
You can convert any negative value to a positive one by using the ABS function, i.e.
Excel Formula:
=IF([@[Qty on Shelf]]="","",ABS(([@[Updated QTY]]-[@QuantityOnHand])/[@QuantityOnHand]))
 
Upvote 0
Solution
You can convert any negative value to a positive one by using the ABS function, i.e.
Excel Formula:
=IF([@[Qty on Shelf]]="","",ABS(([@[Updated QTY]]-[@QuantityOnHand])/[@QuantityOnHand]))
so cool!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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