Ranking

dtaylor

Active Member
Joined
Mar 21, 2002
Messages
379
Hello All - is there a way to rank in a query - similar to rank in excel. i do not see a built-in function in access.

if there is no built in is there a work around? or maybe someone already has a custom function?


Thanks

Dan
 

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
The syntax is TOP

Select TOP 10 field1, field2, field3 FROM tblName ORDER BY field1 DESC;


Mike
 
Upvote 0
CT - awsemone! this is exactly what i was looking for!

Mike gave exactly what i asked for in my post...i should of been a little more explicit in my request.....

i need to rank contracts within a customer range..i have thousands of customers that can have from 1 to 20 contracts attached.
man this will save me quite a few headaches... what i have done in the past is take the data out of access and rank in excel ( i built a custom function in excel that ranks within each customer) then brought that data back into access....

Thanks for the heads up and reading between the lines.

Dan
 
Upvote 0

Forum statistics

Threads
1,221,687
Messages
6,161,287
Members
451,695
Latest member
Doug Mize 1024

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