Ranking rows with a total count

Tlewman

Board Regular
Joined
Dec 29, 2002
Messages
67
I have a make table query that creates a table that ranks stores in descending order based on sales. In my query properties, I have changed the top values to 50 (I only want to see the top 50 best selling stores). The total number of stores will change weekly. How do I add a column to this query to show the total number of stores available so I can show the following:

Store Sales Rank Total
x $500 1 365
q $435 2 365
a $400 3 365

etc until I have only the top 50 stores. I need to show the Total column so we know that store x is 1 of 365, store q is 2 of 365, etc.

I also run this same query in reverse, sorting in ascending order to get the bottom 50 selling stores and will need the same info.
Thanks in advance for your help!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,221,574
Messages
6,160,602
Members
451,657
Latest member
Ang24

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