Ranking in Access

jwoo251

New Member
Joined
Oct 19, 2007
Messages
27
Hoping for some help on Ranking within Access. I want to be able to rank pricing by "LaneID".

I have been able to rank the pricing with the below query, but I don't have any idea on how to differentiate the ranking by a single value, in this case "LaneID".

My first pass is below, it just ranks all records.

rank: (select count (*) from tbl:Respone_Pricing as T1 where [Charge] > [tbl:Response_Pricing].[Charge])+1

=================================
Desired Output:

LaneID--- Charge --- Rank
1 1.00 1
1 2.00 2
1 3.00 3
2 1.00 1
2 2.00 2


I created a seperate query to count the LaneID's. I'm stuck on what the next step would be or if I'm on the right path.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,215,340
Messages
6,124,382
Members
449,155
Latest member
ravioli44

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