Sort by groups of rows rather than single rows in Excel

Steve_Brady
Steve_Brady used Ask the Experts™
on
Hello,

Is there any way in Excel (2007) to permanently tie groups of rows together?

For example, suppose you have a database with several hundred records and for several reasons (e.g. amount and type of data for each record, display purposes, etc.) it is most desirable to use five rows for each record rather than a single row.  

Now, suppose you want to sort the records for some reason.  In a typical sort, each row is treated separately and sorted against every other row.  However, in the scenario mentioned above, you would want each group of five rows to always stay together and be sorted against all other groups of five rows.

Is that doable?  If not, is there a good workaround or alternative approach that can accomplish the same thing?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Upload a sample and we can show workarounds
Application Developer
Commented:
I'm not sure if you can, but I sometimes have to do this so the way I've come up with is to concatenate the various columns you want sorted together and make a new column with all of this data.  Then you can sort on the newly created column
Neil RussellTechnical Development Lead

Commented:
IF you have that much data and that sort of requirment AND you refer to it as a database......
Why not use a database?

Author

Commented:
Thanks for the responses.

Neilsr:
IF you have that much data and that sort of requirment AND you refer to it as a database......
Why not use a database?


That is a very good point and one that has got me thinking.  To be honest with you, I have never used any database software and would not know where to begin.  I use Excel for just about everything, including what would normally be done in MS Word, so I am apprehensive about branching out but maybe this is something I should pursue.

Do you have a recommendation regarding which application to try?  Also, is it always possible to toggle the data back into a spreadsheet format whenever you want?

Thanks
Why don't you upload a sample for the excel nerds to have a go?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial