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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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