Rank (What is driving $ change)

linesy

Board Regular
Joined
Sep 27, 2004
Messages
72
Good morning all,

I have financial results, some negative, some positive, thank I need to be able to identify the drivers of the period over period change. Is there something is can do with a formula, or does anyone have any suggestions?? Thank you much. Happy Friday !

Example when total negative:

Product A 7.4 Driver 5
Product B 37.6 Driver 4
Product C (50.4) Driver 2
Product D (105.4) Driver 1
Product E (2.6) Driver 3
Total Products (113.3)

Example when total is positive:

Product A 1.0 Driver 5
Product B 5.4 Driver 2
Product C 12.3 Driver 1
Product D 4.4 Driver 3
Product E 1.7 Driver 4
Total Products 24.8
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I'm really not sure what you want. What would be the answer to both of your examples and why?
 
Upvote 0
It's not clear, at least for me, what is the logic behind the results you have showed. Could you explain why, in the first example (negative total), 37.6 is 4 and 7.4 is 5?

Do you want the rankings in ascending order when the total is negative? And in descending order when the total is positive (second example)?

Please, clarify

M.
 
Upvote 0
Sorry for not being clear, the answer is the driver X to the right hand side.

We have to write commentary for our financials, which include over 200 products every quarter. Here is what we would've written for the first example above.

Total product sales decreased for the period by $113.3 million, primarily driven by a decrease in Product D of $105.4 million, Product C of $50.4 million, partially offset by increased sales of Product B, of $37.6 million.

In order to put this together, it is a shuffles of multiple report pages and extrapolation of data. I've got all the data into a spreadsheet, just trying to figure out a what of easily identifying what products etc are driving the change. Thanks
 
Upvote 0
We list the drivers in ascending order if they are all positive or all negative. If there is a mix in the product results, we look at the total and if it is negative we list the negatives in ascending order and then we list the offset in descending order. If the total is positive, we would list the positives in descending order and then the negatives in ascending order. M, if you wouldn't mind, I also gave an example of why we use the data below. Thanks so much. S
 
Upvote 0
Wouldn't Drivers 4 and 5 be switched in the negative example?


Excel 2010
ABC
1Product A7.4Driver 4
2Product B37.6Driver 5
3Product C-50.4Driver 2
4Product D-105.4Driver 1
5Product E-2.6Driver 3
6Total Products-113.4
Sheet4
Cell Formulas
RangeFormula
C1="Driver "&IF($B$6<0,RANK(B1,$B$1:$B$5,1),RANK(B1,$B$1:$B$5,0))
B6=SUM(B1:B5)
 
Last edited:
Upvote 0
See if this does what you need

All positives

A
B
C
1
Product​
Value​
Rank​
2
A​
1,0​
5​
3
B​
5,4​
2​
4
C​
12,3​
1​
5
D​
4,4​
3​
6
E​
1,7​
4​
7
Total​
24,8​

<tbody>
</tbody>


All negatives

A
B
C
1
Product​
Value​
Rank​
2
A​
(1,0)​
1​
3
B​
(20,1)​
5​
4
C​
(3,4)​
3​
5
D​
(10,9)​
4​
6
E​
(2,0)​
2​
7
Total​
(37,4)​

<tbody>
</tbody>


Mix

A
B
C
1
Product​
Value​
Rank​
2
A​
7,4​
5​
3
B​
37,6​
4​
4
C​
(50,4)​
2​
5
D​
(105,4)​
1​
6
E​
(2,6)​
3​
7
Total​
(113,4)​

<tbody>
</tbody>


Formula in C2 copied down
=IF(OR(COUNTIF(B$2:B$6,">=0")=ROWS(B$2:B$6),COUNTIF(B$2:B$6,"<0")=ROWS(B$2:B$6)),RANK(B2,B$2:B$6,0),IF(SUM(B$2:B$6)<0,IF(B2>0,RANK(B2,B$2:B$6,0)+COUNTIF(B$2:B$6,"<0"),RANK(B2,B$2:B$6,1)),RANK(B2,B$2:B$6,0)))

Hope this helps

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,543
Messages
6,125,429
Members
449,223
Latest member
Narrian

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