Converting % to Positive Number

jarett

Board Regular
Joined
Apr 12, 2021
Messages
165
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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
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,215,197
Messages
6,123,581
Members
449,108
Latest member
rache47

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