Partially completed Graphic for two Conditions

Posted on 2013-06-09
Medium Priority
Last Modified: 2013-06-10
EE Pros,

I have a nice graphic that has two conditions.  The first condition is based on a "view" of benefits received - Conservative, Realistic, Aggressive.  The second condition has to do with the % of benefit applied during a particular year (for 3 years) and a "Total".   I've got the first condition down, but adding the second condition has complicated my graphic.  I'm trying to use Indexing instead of "if" statements for the calculations.

The business application is rather simple.  By pressing the two buttons, I should be able to view any year at any condition and at the end a total based on the condition choosen.  See example for clear explanation.

Thank you in advance.

Question by:Bright01
  • 3
  • 2
LVL 14

Expert Comment

ID: 39234247
Please explain the logic of your table. In particular, the meaning of "Benefits" (1 thru 4) isn't clear.
Perhaps, in addition to explaining your idea, please tell me where my approach is wrong:-
I think that for any given year a conservative approach should give a result different from an aggressive one. Therefore you need a table with years, say, on the X axis and Con/Real/Agg on the Y axis. If you would have such a table you could place the 20% benefit in the first year in relation to the Condition (risk-taking preference).
In short, if you wish to let your graphic display the effect of both Condition and Year it would be your table's duty to establish a relationshop between the two. This isn't the case, and therefore you have difficulty. To resolve the problem establish the relationship.

Author Comment

ID: 39234301

Thank you for responding and jumping in on this one.    

The logic in the table is as follows;

There are two independent tables
1.) A Benefits Table (B8:D11)
2.) A Time Table (F8:G11)

Column H is the result of combining the Condition (Table 1) with the Timing (Table 2) which is the same as selecting Year 3 since the years are added or summed as they progress.

I've got the Condition working so as you tap the Condition button, the Total in Column H changes.  However, what I don't know how to do is to add in the Timing into the calculation.  as you select the Years (1 - 3 and then total), you must add previous years.  

So to give you an example; If I selected "Realistic" as the Condition and "Year 1" as the Timing, the result for Benefit 1 would be 6 X .2 or 1.2 (that would appear in Column H8).  If I leave it on "Realistic" and select Year 2, the formula must calculate both year 1 (1.2) and add year 2 (which would be 6 X .6 = 3.6 + 1.2 (for year 1) or a result of 4.8.

In your example, normally that would work. However, the two tables are independent. While you are correct that the results do change when moving from "Condition" (Conservative, Realistic, Aggressive), the relationship with the Year or Timing is additive (Year 1 is the Condition's value * the % of results or impact in that year); and is additive depending on which Year:  Year 1, Year 2 is Year 1 & 2, Year 3 is Year 1,2 and 3, and total is actually the sum which is Year 3).

It may seem complex, but what you are solving for here is how to insert the correct logic into bringing in the yearly influence as time marches on.

Make sense?

LVL 14

Accepted Solution

Faustulus earned 2000 total points
ID: 39234518
I think I got the idea. Please take a look at the attached workbook. I made a few changes intended as suggestions. They don't influence the formula I put in column H. Perhaps I still didn't quite understand your reasoning, but to my present understanding there is a logical flaw in your logic:-
If the total for Year 2 (Conservative) = (3 * 0.2)  + (3 * 0.6)
then Year 3 must = (3 * 0.2)  + (3 * 0.6) + (3 * 1)
which would be Year 1 + Year 2 + Year 3 = Total
Therefore Total can't be greater than Year 3, and for this reason the cycle you click through by pressing the Year button should not include the Total column. Therefore the code for Sub Year_Click should be Range("A5") = Range("A5") Mod 3 + 1 instead of Mod 4 + 1.
I hope my formula can do what you want and my suggestions are useful. If you need either to be explained please do let me know.

Author Closing Comment

ID: 39235107
Perfect!  Great work.  You should be on a game show with your ability to walk through that kind of mathematical logic..........

Really appreciate it.

LVL 14

Expert Comment

ID: 39236538
Thank you, B.
EE will be delighted to become a game show. Well, I would be. :-)

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
I tried to use the SharePoint app to Import a Spreadsheet and import an Excel sheet into a Team site made in SharePoint 2016. But that just resulted in getting an error message 'Unknown Error'...
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question