Difference for ranking

carlleese24

Board Regular
hi

could someone help me please I would like to create a formula that will show differences between first, second, third etc

like this

Rank Ratings Difference
5 200 -700
1 900 100
3 700 -200
2 800 -100
4 500 -400

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

acw

MrExcel MVP
Hi

C2: =IF(A2=1,B2-INDEX(\$B\$2:\$B\$6,MATCH(2,\$A\$2:\$A\$6,0)),B2-INDEX(\$B\$2:\$B\$6,MATCH(1,\$A\$2:\$A\$6,0)))

Copy down as required.

Tony

SydneyGeek

MrExcel MVP
Assuming your data is in A1:B6, try this in C2 --
Code:
``=B2-VLOOKUP(1,\$A\$2:\$B\$6,2,FALSE)``
Then fill down

Denis

Replies
15
Views
276
Replies
9
Views
271
Replies
8
Views
248
Replies
2
Views
195
Replies
11
Views
141

1,133,466
Messages
5,658,945
Members
418,477
Latest member
coutinhoicaro

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.

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

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