Solved

# Add a product cost under a specific month column (sumproduct?)

Posted on 2011-02-18
248 Views
Looking to be able to change the desired month and product value, indicated in yellow and obtain the total cost (value) for the specified product and month.
Thanks,
0
Question by:easycapital
• 2

LVL 50

Accepted Solution

barry houdini earned 500 total points
Hello JP,

Here are two possible ways

=SUMPRODUCT((B3:D3=B9)*(A4:A7=B10),B4:D7)

or

=SUMIF(A4:A7,B10,INDEX(B4:D7,0,MATCH(B9,B3:D3,0)))

Although the latter is longer it's arguably more efficient. Formula 1 needs to be used if there could be more than 1 column with a date header matching B9

regards, barry
0

LVL 50

Assisted Solution

barry houdini earned 500 total points
See examples in your sheet, I put one formula in F12 and one in G12 - of course they return the same result......

regards, barry
26832739.xls
0

Author Closing Comment

Excellent application!  I favor the sumproduct approach, as it is easier for me to follow.
Thanks!
JP
0

## Featured Post

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…