PC Review


Reply
Thread Tools Rate Thread

Advanced Sorting With Excel

 
 
justforthis1
Guest
Posts: n/a
 
      7th Aug 2006
ok ive been trying to make excel do this, but im stumped...

basically i have a sheet that has

group tag description part #
#1 1 misc ABCD123ABC
#1 2 misc DEF12XYZ
#1 3 misc 123ABC

#2 4 misc LMNOP123ABC
#2 5 misc XYZ12ABC
#2 6 misc 345ABC

#3 7 misc ABCD123ABC
#3 8 misc DEF12XYZ
#3 9 misc 123ABC

#4 10 misc HJKL123ABC
#4 11 misc XYZ12XYZ
#4 12 misc 789ABC

#5 13 misc LMNOP123ABC
#5 14 misc XYZ12ABC
#5 15 misc 345ABC

i want each group to behave like a single row instead of 3
i want to be able to sort by part # and have all the groups that have
the same part numbers with each other...

for instance...

group tag description part #
#1 1 misc ABCD123ABC
#1 2 misc DEF12XYZ
#1 3 misc 123ABC

#3 7 misc ABCD123ABC
#3 8 misc DEF12XYZ
#3 9 misc 123ABC

#2 4 misc LMNOP123ABC
#2 5 misc XYZ12ABC
#2 6 misc 345ABC

#5 13 misc LMNOP123ABC
#5 14 misc XYZ12ABC
#5 15 misc 345ABC

#4 10 misc HJKL123ABC
#4 11 misc XYZ12XYZ
#4 12 misc 789ABC

if anyone can help me with this that would be great...

thanks

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIEh1dGNoaW5z?=
Guest
Posts: n/a
 
      8th Aug 2006
Assuming your headings are in row 1 and the data is in columns A - D, enter
the following in E2 and copy down through all rows of data (including the
blank rows):

=IF(OR(A2=A1,ISBLANK(A2)),E1,D2&A2)

If you want to eliminate the blank rows, use:

=IF(A2=A1,E1,D2&A2)

Then, sort data by column E.

Hope this helps,

Hutch

"justforthis1" wrote:

> ok ive been trying to make excel do this, but im stumped...
>
> basically i have a sheet that has
>
> group tag description part #
> #1 1 misc ABCD123ABC
> #1 2 misc DEF12XYZ
> #1 3 misc 123ABC
>
> #2 4 misc LMNOP123ABC
> #2 5 misc XYZ12ABC
> #2 6 misc 345ABC
>
> #3 7 misc ABCD123ABC
> #3 8 misc DEF12XYZ
> #3 9 misc 123ABC
>
> #4 10 misc HJKL123ABC
> #4 11 misc XYZ12XYZ
> #4 12 misc 789ABC
>
> #5 13 misc LMNOP123ABC
> #5 14 misc XYZ12ABC
> #5 15 misc 345ABC
>
> i want each group to behave like a single row instead of 3
> i want to be able to sort by part # and have all the groups that have
> the same part numbers with each other...
>
> for instance...
>
> group tag description part #
> #1 1 misc ABCD123ABC
> #1 2 misc DEF12XYZ
> #1 3 misc 123ABC
>
> #3 7 misc ABCD123ABC
> #3 8 misc DEF12XYZ
> #3 9 misc 123ABC
>
> #2 4 misc LMNOP123ABC
> #2 5 misc XYZ12ABC
> #2 6 misc 345ABC
>
> #5 13 misc LMNOP123ABC
> #5 14 misc XYZ12ABC
> #5 15 misc 345ABC
>
> #4 10 misc HJKL123ABC
> #4 11 misc XYZ12XYZ
> #4 12 misc 789ABC
>
> if anyone can help me with this that would be great...
>
> thanks
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced sorting Gerben Dirksen Microsoft Excel Worksheet Functions 4 26th Jul 2008 07:16 PM
Advanced Sorting =?Utf-8?B?RGlzcGF0Y2hlciBTY290dA==?= Microsoft Access Queries 5 5th Sep 2007 09:32 PM
Advanced Sorting #'s?? =?Utf-8?B?TWlzc3k=?= Microsoft Excel Misc 3 12th Apr 2006 11:37 PM
Advanced Sorting =?Utf-8?B?TGFjcmVlZGE=?= Microsoft Excel Worksheet Functions 3 11th Mar 2004 03:08 AM
Advanced Sorting Adam Warmerdam Microsoft Excel Misc 1 17th Sep 2003 01:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:47 AM.