Simple Formula with complex number of scenarios

gmooney

Active Member
Joined
Oct 21, 2004
Messages
252
Office Version
  1. 365
Platform
  1. 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.

CELL A1
Sales Change vs Last Year

<tbody>
</tbody>
% of Sales Change vs Last Year

<tbody>
</tbody>
Total

<tbody>
</tbody>
$125,000,000

<tbody>
</tbody>
100%
East

<tbody>
</tbody>
$50,000,000

<tbody>
</tbody>

<tbody>
</tbody>
40%

<tbody>
</tbody>
West

<tbody>
</tbody>
$75,000,000

<tbody>
</tbody>

<tbody>
</tbody>
60%

<tbody>
</tbody>

<tbody>
</tbody>

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.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Not sure where is the catch...
ABC
1Sales Change vs Last Year% of Sales Change vs Last Year
2Total$73,777,800 100%
3East($1,222,200)-2%
4#>West$75,000,000 102%

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
gmooney

Worksheet Formulas
CellFormula
B2=SUM(B3:B4)
C2=SUM(C3:C4)
C3=B3/$B$2
C4=B4/$B$2

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:
Upvote 0
PM
cyrilbrd,

I failed to mention that the results in cells C3 and C4 cannot be greater than 100% or -100%.


Not sure where is the catch...
ABC
1Sales Change vs Last Year% of Sales Change vs Last Year
2Total$73,777,800100%
3East($1,222,200)-2%
4#>West$75,000,000102%

<tbody>
</tbody>
gmooney

Worksheet Formulas
CellFormula
B2=SUM(B3:B4)
C2=SUM(C3:C4)
C3=B3/$B$2
C4=B4/$B$2

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
so here you wish to see 98% in C2?

no in this example it should be -100 in C2 and +100 in C3. The East had 100% of the decline for the declining regions and the West had 100% of the increase in the increasing regions.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,825
Members
449,190
Latest member
rscraig11

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