Hello everyone,
I am trying to calculate YTD (year to date) sum of Sales Revenues based on multiple criteria.
Basically the idea is to have two drop down list in Dashboard sheet. The first drop down is used to select Customer Name and the second drop down list is used to choose Reporting Month as you can see below:
-- removed inline image ---
In my database, I have a structure like below which continues until DEC 2012 (and unfortunately I cannot change the database structure):
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]JAN 2012
[/TD]
[TD]JAN 2012
[/TD]
[TD]JAN 2012
[/TD]
[TD]JAN 2012
[/TD]
[TD]JAN 2012
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Sales Revenues
[/TD]
[TD]SEB Material Costs
[/TD]
[TD]SEB Labour Costs
[/TD]
[TD]Sales CMII
[/TD]
[TD]Sales CMII%
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]EUR
[/TD]
[TD]EUR
[/TD]
[TD]EUR
[/TD]
[TD]EUR
[/TD]
[TD]%
[/TD]
[/TR]
[TR]
[TD]Customer
[/TD]
[TD]Contract Type
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer A
[/TD]
[TD]Maintenace
[/TD]
[TD]300
[/TD]
[TD][/TD]
[TD]10
[/TD]
[TD]290
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer A
[/TD]
[TD]Spares
[/TD]
[TD][/TD]
[TD]50
[/TD]
[TD]40
[/TD]
[TD]-90
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer B
[/TD]
[TD]Maintenace
[/TD]
[TD]500
[/TD]
[TD][/TD]
[TD][/TD]
[TD]500
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer B
[/TD]
[TD]Spares
[/TD]
[TD][/TD]
[TD]60
[/TD]
[TD][/TD]
[TD]-60
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer C
[/TD]
[TD]Maintenace
[/TD]
[TD]1200
[/TD]
[TD]70
[/TD]
[TD]130
[/TD]
[TD]1000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer C
[/TD]
[TD]Spares
[/TD]
[TD]100
[/TD]
[TD]50
[/TD]
[TD][/TD]
[TD]50
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer D
[/TD]
[TD]Maintenace
[/TD]
[TD]900
[/TD]
[TD][/TD]
[TD][/TD]
[TD]900
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
FYI: there are empty cells in the data as shown above.
Lets say for example in Dashboard sheet I select Customer B from the first drop down and MAR 2012 from the second drop down. Then I would like to have a formula to calculate sum of Sales Revenues from JAN 2012 to MAR 2012 for Customer B only for Maintenance contract type and give me the output in the cell below YTD Value.
I tried several formulas but could not make it work. I have an example excel file if needed, but I dont know how to attach it here.
Thank you in advance!
I am trying to calculate YTD (year to date) sum of Sales Revenues based on multiple criteria.
Basically the idea is to have two drop down list in Dashboard sheet. The first drop down is used to select Customer Name and the second drop down list is used to choose Reporting Month as you can see below:
-- removed inline image ---
In my database, I have a structure like below which continues until DEC 2012 (and unfortunately I cannot change the database structure):
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]JAN 2012
[/TD]
[TD]JAN 2012
[/TD]
[TD]JAN 2012
[/TD]
[TD]JAN 2012
[/TD]
[TD]JAN 2012
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Sales Revenues
[/TD]
[TD]SEB Material Costs
[/TD]
[TD]SEB Labour Costs
[/TD]
[TD]Sales CMII
[/TD]
[TD]Sales CMII%
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]EUR
[/TD]
[TD]EUR
[/TD]
[TD]EUR
[/TD]
[TD]EUR
[/TD]
[TD]%
[/TD]
[/TR]
[TR]
[TD]Customer
[/TD]
[TD]Contract Type
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer A
[/TD]
[TD]Maintenace
[/TD]
[TD]300
[/TD]
[TD][/TD]
[TD]10
[/TD]
[TD]290
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer A
[/TD]
[TD]Spares
[/TD]
[TD][/TD]
[TD]50
[/TD]
[TD]40
[/TD]
[TD]-90
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer B
[/TD]
[TD]Maintenace
[/TD]
[TD]500
[/TD]
[TD][/TD]
[TD][/TD]
[TD]500
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer B
[/TD]
[TD]Spares
[/TD]
[TD][/TD]
[TD]60
[/TD]
[TD][/TD]
[TD]-60
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer C
[/TD]
[TD]Maintenace
[/TD]
[TD]1200
[/TD]
[TD]70
[/TD]
[TD]130
[/TD]
[TD]1000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer C
[/TD]
[TD]Spares
[/TD]
[TD]100
[/TD]
[TD]50
[/TD]
[TD][/TD]
[TD]50
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer D
[/TD]
[TD]Maintenace
[/TD]
[TD]900
[/TD]
[TD][/TD]
[TD][/TD]
[TD]900
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
FYI: there are empty cells in the data as shown above.
Lets say for example in Dashboard sheet I select Customer B from the first drop down and MAR 2012 from the second drop down. Then I would like to have a formula to calculate sum of Sales Revenues from JAN 2012 to MAR 2012 for Customer B only for Maintenance contract type and give me the output in the cell below YTD Value.
I tried several formulas but could not make it work. I have an example excel file if needed, but I dont know how to attach it here.
Thank you in advance!