Getting position of an item in a list

JumboCactuar

Well-known Member
Joined
Nov 16, 2016
Messages
788
Office Version
  1. 365
Platform
  1. Windows
Hi,
sorry title doesn't really explain it well:

I have data like below (100k + rows)

Item CodeSellerPrice
FR11ABCTech16.49
FR11KLG15.19
FR11JustPro15.11
FR11MapLtd14.99
GR44KLG38.99
GR44ABCTech36.49
GR44JustPro35.99
ZD16KLG12.99
ZD16JustPro12.89
ZD16ABCTech12.49
PG20JustPro22.79
PG20ABCTech21.99
PG20MapLtd19.99
PG20KLG18.49

It is always sorted like above (grouped by item, then by price high to low)

I need to find out the following:
Which Position JustPro is in the list and price difference from 1st position

From the above - expected output is:

Item CodePositionPrice Difference
FR1131.38
GR4433
ZD1620.1
PG2010

also if possible to calculate the price difference between 1st + 2nd for every item

doable with just formulas ?

appreciate any help
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I wouldn't expect it to take that long, but as I have no data I can't test it.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,195
Members
453,021
Latest member
pingpong7117

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