Total Difference between Two Columns

jarett

Board Regular
Joined
Apr 12, 2021
Messages
179
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I think I am calculating my average differences all wrong for my spreadsheets and I am drawing a blank on how to get the correct number. Right now I am calculating the difference per row (COLUMN I) and then getting the average of the column that is calculating the row's difference. Depending on the qty in the row some of the percentages are way off if there is a small qty (I25). I think I should be getting the totals of the 2 columns I am comparing(K5,=(ABS(SUM(H:H)-SUM(E:E))/SUM(E:E))) , so I want to make sure I am thinking of this correctly, if I do it the second way I would get a 1.34% discrepancy compared to being off 7% the current way.
10_24_2023_2.xlsx
ABCDEFGHIJK
1Goal = 0% Excellent = 0.9%-5% Good = 5.1%-15% Average=15.1%-25% Needs Attention > 25.1%Inventory Discrepence %7%
2ItemCodeItemCodeDescWarehouseCodeLastPhysicalCountDateQuantityOnHandQty on ShelfWIP AdditionsUpdated QTYPercent Difference
310012932-BROWN-10.5DMNS RIGTEK WIDE SUARE OILD BRN0008/8/231616160%New Way
410012932-BROWN-10.5EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/231515150%
510012932-BROWN-10DMNS RIGTEK WIDE SUARE OILD BRN0008/8/2389913%1.34%
610012932-BROWN-10EEMNS RIGTEK WIDE SUARE OILD BRN00010/5/2380 
710012932-BROWN-11.5DMNS RIGTEK WIDE SUARE OILD BRN0008/8/231010100%
810012932-BROWN-11.5EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/231010100%
910012932-BROWN-11DMNS RIGTEK WIDE SUARE OILD BRN0008/8/231313130%
1010012932-BROWN-11EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/2310111110%
1110012932-BROWN-12DMNS RIGTEK WIDE SUARE OILD BRN0008/8/2310111110%
1210012932-BROWN-12EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/231717170%
1310012932-BROWN-13DMNS RIGTEK WIDE SUARE OILD BRN0008/8/2378814%
1410012932-BROWN-13EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/2389913%
1510012932-BROWN-14DMNS RIGTEK WIDE SUARE OILD BRN0008/8/2345525%
1610012932-BROWN-14EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/235550%
1710012932-BROWN-7.5DMNS RIGTEK WIDE SUARE OILD BRN0008/8/234440%
1810012932-BROWN-7.5EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/233330%
1910012932-BROWN-7DMNS RIGTEK WIDE SUARE OILD BRN0008/8/2334433%
2010012932-BROWN-7EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/234440%
2110012932-BROWN-8.5DMNS RIGTEK WIDE SUARE OILD BRN0008/8/236660%
2210012932-BROWN-8.5EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/239101011%
2310012932-BROWN-8DMNS RIGTEK WIDE SUARE OILD BRN0008/8/235550%
2410012932-BROWN-8EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/2389913%
2510012932-BROWN-9.5DMNS RIGTEK WIDE SUARE OILD BRN0008/8/239990%
2610012932-BROWN-9.5EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/231213138%
2710012932-BROWN-9DMNS RIGTEK WIDE SUARE OILD BRN0008/8/238101025%
2810012932-BROWN-9EEMNS RIGTEK WIDE SUARE OILD BRN0008/8/231211118%
IM_WH_COUNT
Cell Formulas
RangeFormula
C1C1=AVERAGE(I3:I2434)
H3:H28H3=[@[Qty on Shelf]]+[@[WIP Additions]]
I3:I28I3=IF(E3=0,"",(IF([@[Qty on Shelf]]= "","",ABS([@[Updated QTY]]-[@QuantityOnHand])/[@QuantityOnHand])))
K5K5=(ABS(SUM(H:H)-SUM(E:E))/SUM(E:E))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C1Cell Value=0textNO
C1Cell Valuebetween 0.009 and 0.05textNO
C1Cell Valuebetween 0.051 and 0.15textNO
C1Cell Valuebetween 0.151 and 0.25textNO
C1Cell Value>=25.1%textNO
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You are correctly calculating the average in Cell K5.
In effect, the same formula can be used on Cell I30, assuming that is the Row for your total amounts:
Excel Formula:
=ABS((SUM(H:H)-SUM(E:E))/SUM(E:E))
 
Upvote 0

Forum statistics

Threads
1,224,815
Messages
6,181,135
Members
453,021
Latest member
Justyna P

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