Assignment of zero value in formula depending on the combination of considered wind parks

Aleksei

New Member
Joined
Jun 27, 2018
Messages
4
Hi everyone,

I currently write my Master thesis in the field of renewable energy. I want to implement the famous mean-variance analysis by Markowitz to show how all possible combinations of 10 wind parks are different in terms of return/risk ratio.
There must be 2 specific formulas, respectively for calculating the return and risk of each combination. But some variables in these formulas must be alternately omitted (must be simply equal to 0) depending on which parks are not included in a combination. There are 1023 different combinations (when all parks are present, when only 1 park is excluded, then 2 and etc.).
So I need that Excel understands what variables must be present/absent in the formulas that make calculations for each combination and then takes necessary values from Excel's table and calculate with them 1023 results for each formula.
Do you guys know how I could do it? Maybe someone has a code for that?
Unfortunately, I'm very new to VBA and know only the most basics as if/do cycles, for example. So any direction as appropriate website or YouTube video would be helpful.

Thank you very much in advance!

Best regards,
Aleksei
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,215,432
Messages
6,124,856
Members
449,194
Latest member
HellScout

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