Grouped sorting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
I have data grouped in 3 columns across my sheet. I would like to sort
these groups by the first cell in each group. Due to line wrap the example
is column wise but my sheet the data is row wise

Trans# Amount RepID
123 500 JD
Trans# Amount RepID
425 300 SP
Trans# Amount RepID
256 250 AR

Sorted....

Trans# Amount RepID
123 500 JD
Trans# Amount RepID
256 250 AR
Trans# Amount RepID
425 300 SP

Thanks for all replies

Scott
 
Scot said:
I have data grouped in 3 columns across my sheet. I would like to sort
these groups by the first cell in each group. Due to line wrap the example
is column wise but my sheet the data is row wise

Trans# Amount RepID
123 500 JD
Trans# Amount RepID
425 300 SP
Trans# Amount RepID
256 250 AR

I'll suggest using Autofilter, which works with rows, not columns.
Select your table.
Data; Filter; Autofilter.
Hit the Trans# arrow and select 'Custom'.
Show rows where Trans#
<does not equal> <Trans#>.
This will show only the data rows.
Data; Sort; Trans# (has header row).
Data; Filter; Autofilter to remove the filter.
Then you'll have to copy and paste special (transpose).
(This is on the sheet, not in code; should be able to do with code)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top