Compare Rank formula?

bweisman12

New Member
Joined
Jul 30, 2019
Messages
11
Hello,
I am to create a rank comparison formula. Can somone create a formula that tells me how many ranks a certain store has moved up or moved down?

Example: Store has a decreased rank of 2 (from 1 -> 3).

See below.


STORE NAMERANK 2018STORE NAMERANK 2019
Store A1Store D1
Store B2Store B2
Store C3Store A3
Store D4Store C4

<tbody>
</tbody>


Thanks!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Try:


Book1
ABCDEF
1STORE NAMERANK 2018STORE NAMERANK 2019Movement
2Store A1Store D1Up 3
3Store B2Store B2No change
4Store C3Store A3Down 2
5Store D4Store C4Down 1
Sheet4
Cell Formulas
RangeFormula
F2=TEXT(E2-VLOOKUP(D2,$A$2:$B$5,2,0),"""Down ""#;""Up ""#;""No change""")
 
Upvote 0
Try:

ABCDEF
1STORE NAMERANK 2018STORE NAMERANK 2019Movement
2Store A1Store D1Up 3
3Store B2Store B2No change
4Store C3Store A3Down 2
5Store D4Store C4Down 1

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

Worksheet Formulas
CellFormula
F2=TEXT(E2-VLOOKUP(D2,$A$2:$B$5,2,0),"""Down ""#;""Up ""#;""No change""")

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

<tbody>
</tbody>

What if instead of a count difference and I wanted a sum difference? Let's say column B & E are sales, not rank. Thanks!
 
Upvote 0
Easiest way is just to reverse the subtraction:

=TEXT(VLOOKUP(D2,$A$2:$B$5,2,0)-E2,"""Down ""#;""Up ""#;""No change""")

You can get a little fancier and add a $ sign:

=TEXT(VLOOKUP(D2,$A$2:$B$5,2,0)-E2,"""Down $""#;""Up $""#;""No change""")

and if you want cents as well:

=TEXT(VLOOKUP(D2,$A$2:$B$5,2,0)-E2,"""Down $""0.00;""Up $""0.00;""No change""")
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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