Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 10

Column A - Product Type

Column B - Product Category


Column C - Cost
I need to calculate the the total cost for each Product Category. This is simple using SUMIF or SUMIFS.
However, Column B (Product Category) is a "helper" column; it's populated using VLOOKUP
Is there a way to calculate the total cost for each category without the helper Column B?
(I can't simply hide Column B and this must be dynamic)

Product Type Product Category (helper column) Cost


Sunset Aussie Round $13.04
Quad Freestyle $20.48
Carlota Freestyle $12.44
Quad Freestyle $20.87
Majestic Beaut Aussie Round $16.75
Majestic Beaut Aussie Round $16.16
Sunset Aussie Round $13.04
Quad Freestyle $22.99
Quad Freestyle $20.98
Majestic Beaut Aussie Round $17.49
Majestic Beaut Aussie Round $17.78
Sunset Aussie Round $12.06
Sunset Aussie Round $12.00
SUMIF or SUMIFS.

VLOOKUP & SUMIFS


SUMPRODUCT & LOOKUP array formula
Goal: Total Cost for each Category PowerPivot!
Total Cost w Total Cost w NO
Product Category Helper Helper
Freestyle 97.76 97.76
Aussie Round 118.32 118.32

Product Type P. Category


Carlota Freestyle
Majestic Beaut Aussie Round
Quad Freestyle
Sunset Aussie Round
Rand Wholesale Price
Cost Formula
$26.00 14.21
$32.00 15.84
$43.00 22.99
$24.00 13.26
Column A - Product Type
Column B - Product Category
Column C - Cost
I need to calculate the the total cost for each Product Category. This is simple using SUMIF or SUMIFS.
However, Column B (Product Category) is a "helper" column; it's populated using VLOOKUP
Is there a way to calculate the total cost for each category without the helper Column B?
(I can't simply hide Column B and this must be dynamic)
Goal: Total Cost for each Category
Product Category
Product Type (helper column) Cost Product Category
Sunset Aussie Round $13.04 Freestyle
Quad Freestyle $20.48 Aussie Round
Carlota Freestyle $12.44
Quad Freestyle $20.87 Product Type
Majestic Beaut Aussie Round $16.75 Carlota
Majestic Beaut Aussie Round $16.16 Majestic Beaut
Sunset Aussie Round $13.04 Quad
Quad Freestyle $22.99 Sunset
Quad Freestyle $20.98
Majestic Beaut Aussie Round $17.49
Majestic Beaut Aussie Round $17.78
Sunset Aussie Round $12.06
MIF or SUMIFS.

l Cost for each Category


Total Cost w Total Cost w NO
Helper Helper
97.76 97.76
106.32 106.32

P. Category
Freestyle
Aussie Round
Freestyle
Aussie Round
Rand Wholesale Price
Cost Formula
$26.00 13.9
$32.00 17.58
$43.00 21.18
$24.00 12.5
Product Type Cost Product Type P. Category Row Labels
Sunset $13.04 Carlota Freestyle Aussie Round
Quad $20.48 Majestic Beaut Aussie Round Freestyle
Carlota $12.44 Quad Freestyle Grand Total
Quad $20.87 Sunset Aussie Round
Majestic Beaut $16.75
Majestic Beaut $16.16
Sunset $13.04
Quad $22.99
Quad $20.98
Majestic Beaut $17.49
Majestic Beaut $17.78
Sunset $12.06
Sunset $12.00
Sum of Cost
118.32
97.76
216.08
Product
Product Type Cost Product Type Category Product Category
Sunset $13.04 Carlota Freestyle Aussie Round
Quad $20.48 Majestic Beaut Aussie Round Freestyle
Carlota $12.44 Quad Freestyle
Quad $20.87 Sunset Aussie Round
Majestic Beaut $16.75
Majestic Beaut $16.16 1) From Table
Sunset $13.04 2) Close and Load. Close and Load to
Quad $22.99 3) Only Create Connection
Quad $20.98 4) From Table
Majestic Beaut $17.49 5) Close and Load. Close and Load to
Majestic Beaut $17.78 6) Only Create Connection
Sunset $12.06 7) Merge
Sunset $12.00 8) fCostsTable, then dProductTable
9) Select both Product Columns, one in each table.
10) Click OK
11) Select drop-down at top of column with table repeated times. Select Product Categ
12) Right-click Product and point to Remove
13) Rename Product Category
14) Move Product Category
15) Transform Ribbon Tab, Group button
16) GroupProduct Category
17) Name calculation, Select SUM, Select Costs column
18) Home Tab, Close and Load, To Table
Total Cost
118.32
97.76

times. Select Product Category

You might also like