Sorting data?

JAYLO

Board Regular
Joined
Apr 3, 2002
Messages
238
I have a spreadsheet with companys and dollars. There 3 or 4 entries for each company. I need to sort the highest dollar and company first and the same companies lower dollars right below, then the second highest dollar b y company and all that companys lower dollars...
Here is what I have
One corp $1,000.00
One corp $25.00
One corp $6.00
AB comp $1,140.00
QA company $44.00
QA company $905.00
QA company $155.00
AB comp $900.00
AB comp $56.00

Here is what I need

AB comp $1,140.00
AB comp $900.00
AB comp $56.00
One corp $1,000.00
One corp $25.00
One corp $6.00
QA company $905.00
QA company $155.00
QA company $44.00
 

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
Depending on what columns, it looks something like this:
Code:
.Sort Key1:=Range("A1"), Order1:=xlDescending, Header:=xlGuess, _
        OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
        DataOption1:=xlSortNormal Key2:=Range("B1"), Order1:=xlDescending, Header:=xlGuess, OrderCustom:=1, _
 MatchCase:=False, Orientation:=xlTopToBottom, _
        DataOption1:=xlSortNormal

Being a total nOOb myself, others can correct me as they need to, but this will get you on the correct path.
 
Upvote 0

Forum statistics

Threads
1,215,517
Messages
6,125,288
Members
449,218
Latest member
Excel Master

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