SumProduct conditions based on VBA form

blossomthe2nd

Active Member
Joined
Oct 11, 2010
Messages
450
Hi Experts

I am about to embark on a project and I would like a little guidence if possible.
Due to hierarchy reasons in our team structure Im trying to design a dashboard that has many sumproduct formulas that caluclate based on variable conditions.
So, this is what I envision,

I open my spreadsheet and a VBA form pops up and looks a little like the below :

Checkboxes:
Ire
UK
US
NZ
OZ

ListBox
All the months

Submit button


Using the check boxes I tick as many countries as I want and using the drop down I select the month in which I'd like to calculate-
This data would then adjust my Sumproduct formula inline with selections -

So the Dropdown month would set a value (Jan = 1, Feb =2 etc)- column I
and the checkboxes would each create an array for column G

=SUMPRODUCT(--(MONTH('[Customers.xls]service'!$I$7:$I$31)=7),--('[Customers.xls]service'!$F$7:$F$31="Domestic"),--('[Customers.xls]service'!$G$7:$G$31="Ire"),--('[Customers.xls]service'!$G$7:$G$31="UK"),--('[Customers.xls]service'!$P$7:$P$31="External"))

If anyone can offer any assistance with any part of this I would greatly appreciate it

Thanks

A
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi Experts

Any input would be really appreciated - does dsums work across different workbooks - perhaps that could be a simple solution ?
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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