Rank Question

Kevin Neufeld

Board Regular
Joined
Oct 6, 2014
Messages
50
In column D I am needing a formula to give the rank of Column C as it relates to Column B. The Rank formula will reset when the Lane ID # switches.

Lane ID #Base Rate ($)Quote ($)Rank
110
15
11010
11020
22025
22030
22035

<tbody>
</tbody>
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I'm not sure what you mean of "as it relates to column B"

If you mean the rank of just the same Lane ID# in d2 type the formula:

= rank(c2, offset($c$1, match(a2,a:a,0)-1,0,countif(a:a,a2),1)
 
Upvote 0
"as it relates to column b" means that column b is the base rate for each lane ID #. the quotes in column see I want to rank against each lane id's base rate. will this formula work for that?
 
Upvote 0
Do you mean you want to rank how close the quotes are to the Base Rate?

If so, how close they are absolute difference? (doesn't matter on which side, postive or negative)

This is my understanding, then to do this I would create a helper column (you can hide it after if needed), say column E, so in e2 type "=abs(c2-b2)" and fill down.

Then in d2 type "= rank(e2, offset($e$1, match(a2,a:a,0)-1,0,countif(a:a,a2),1)"
 
Upvote 0
Glad it worked! Sorry for the confusion on me understanding what you wanted to do at first!
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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