I have the following spreadsheet which I attempting to calculate the Prior
Years Inventory Level in actual Retail $
I have a database query that retrieves the following Information:(
DeptDate( week end date(Saturday), OH Retail$, % Chg Prior Year), DeptNum
DeptName, CatName
(Dept = Abbreviation for Department)
DeptDate = (the date(Saturday) week ending (i.e. 5/10/08_
OH Retail$ = The Retail $ of Inventory for that department
OH %Chg = % chg from Prior Year (Don't have access to Original Data for a
certain Period of Time)
Deptnum = Department #
DeptName = Department Desc
CatName = Category Name (where different sets of deptnums are grouped)
The problem I am having is it doesn't seem to cross check the math.
I have a pivot table to display the OH$ , I then have 2 cols on the same
work sheet that calculates the prior years OH$
but when I cross check it doesn't seem to be right.
Col B (Calculated) has the following formula =G3/(1-(C3)*-1)
Col C = Contains the OH %CHG for each Dept/Cat for that week
COL D (Begins Pivot Table) = Contain Category Name
COL E = DeptNum
COL F = DeptName
COL G (Being Data) = Date on Column headers, and value of Inventory Level
The Problem occurs which I cross check the math.
COL A Contains =SUM(B3:B13)
If I summarize(COL A) the value in the range for each category (All Deptnum
in Category A for example it doesn't match)
am I doing something wrong Mathematically or is the data possibly bad? See
below for data sample
The issue is $104,007 with a (21.9)% chg = $133,182 not $126,785 the sum of
the individual changes
I have confirmed thet query data matches the database data
Thanks for any Help
A B C D
E F G
LY OnHand Retail$ DeptDate
5/3/08 Diff Category Dept# DeptDesc 5/3/2008
(row 3) $50,071 -40.90% Consumables 110 Food $29,592
$909 71.90% 111 DSD $1,563
$4,509 -45.40% 114 Speciality Food $2,462
$0 890.00% 115 Frozen Food
$43,248 -18.90% 120 HBC $35,074
$0 121 Control Sub
$5,110 -8.30% 130 House Keeping $4,686
$7,561 -14.90% 140 Household Chemicals $6,434
$4,811 -14.30% 150 Paper $4,123
$10,081 31.60% 160 Pet $13,266
$6,883 -1.10% 170 Home Organization $6,807
$133,182 $126,785 -21.90% Consumables Total $104,007