gmooney
Active Member
- Joined
- Oct 21, 2004
- Messages
- 254
- Office Version
- 365
- Platform
- Windows
I have a very simple formula that needs to be expanded upon given the number of possible outcomes among the 3 cells that the formulas are looking at. The formulas that need adjusted are in cells C3 and C4. Those formulas must review the data in cells B2, B3 and B4.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]CELL A1[/TD]
[TD][TABLE="width: 164"]
<tbody>[TR]
[TD="width: 164"]Sales Change vs Last Year[/TD]
[/TR]
[TR]
[TD="width: 164"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 159"]
<tbody>[TR]
[TD="width: 159"]% of Sales Change vs Last Year[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]Total[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 164"]
<tbody>[TR]
[TD="class: xl65, width: 164"]$125,000,000[/TD]
[/TR]
[TR]
[TD="class: xl65, width: 164"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]East[/TD]
[/TR]
[TR]
[TD="width: 64"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"][TABLE="width: 164"]
<tbody>[TR]
[TD="class: xl65, width: 164"]$50,000,000[/TD]
[/TR]
[TR]
[TD="class: xl65, width: 164"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 159"]
<tbody>[TR]
[TD="class: xl65, width: 159"]40%[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]West[/TD]
[/TR]
[TR]
[TD="width: 64"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"][TABLE="width: 164"]
<tbody>[TR]
[TD="class: xl65, width: 164"]$75,000,000[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 159"]
<tbody>[TR]
[TD="class: xl65, width: 159"]60%[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Pretty straight formula!
Now ONLY change the values for East or West (cells B3 and B4) which will change the value of Total of $125M.
Depending on what values you gave East and West, the Total number is now either positive or negative.
With your new numbers in cells B3 and B4 the 40% and 60% should change and the Total must always equal either 100% or 0%
Continue to play with cells B3 and B4 and you will see that certain scenarios return the wrong results.
Here is the kicker...any Sales Change vs Last Year number for East or West that is negative in cell B3 or B4 must return a negative percentage in cells C3 or C4.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]CELL A1[/TD]
[TD][TABLE="width: 164"]
<tbody>[TR]
[TD="width: 164"]Sales Change vs Last Year[/TD]
[/TR]
[TR]
[TD="width: 164"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 159"]
<tbody>[TR]
[TD="width: 159"]% of Sales Change vs Last Year[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]Total[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 164"]
<tbody>[TR]
[TD="class: xl65, width: 164"]$125,000,000[/TD]
[/TR]
[TR]
[TD="class: xl65, width: 164"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]East[/TD]
[/TR]
[TR]
[TD="width: 64"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"][TABLE="width: 164"]
<tbody>[TR]
[TD="class: xl65, width: 164"]$50,000,000[/TD]
[/TR]
[TR]
[TD="class: xl65, width: 164"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 159"]
<tbody>[TR]
[TD="class: xl65, width: 159"]40%[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]West[/TD]
[/TR]
[TR]
[TD="width: 64"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"][TABLE="width: 164"]
<tbody>[TR]
[TD="class: xl65, width: 164"]$75,000,000[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 159"]
<tbody>[TR]
[TD="class: xl65, width: 159"]60%[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Pretty straight formula!
Now ONLY change the values for East or West (cells B3 and B4) which will change the value of Total of $125M.
Depending on what values you gave East and West, the Total number is now either positive or negative.
With your new numbers in cells B3 and B4 the 40% and 60% should change and the Total must always equal either 100% or 0%
Continue to play with cells B3 and B4 and you will see that certain scenarios return the wrong results.
Here is the kicker...any Sales Change vs Last Year number for East or West that is negative in cell B3 or B4 must return a negative percentage in cells C3 or C4.