#1   Report Post  
Ian
 
Posts: n/a
Default excel sorting task

I have the following data in a worksheet
Important note: it is in pairs, that is columns A,B is pair 1, C,D is pair
2, E,F is pair 3.

i want to sort it WITHIN ROW on columns b,d,f, with the smallest value in
b,d or f first then the next largest then the largest.

For example
A B C D E F
5 12 2 3 1 6

would become
A B C D E F
2 3 1 6 5 12

b=3
d=6
f=12
this is what i want, the pairs sorted in ascending order for b,d,f for a
given row.
is this possible?

i'm thinking nested IF statements.......??? but im not sure

any help very much appreciated

thanks
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Ian,

Try this

A2: =B1
B2: =B1

then copy across as many columns as you need

then sort rows 1 and 2 with row 2 as the sort by row

--
HTH

Bob Phillips

"Ian" wrote in message
...
I have the following data in a worksheet
Important note: it is in pairs, that is columns A,B is pair 1, C,D is pair
2, E,F is pair 3.

i want to sort it WITHIN ROW on columns b,d,f, with the smallest value in
b,d or f first then the next largest then the largest.

For example
A B C D E F
5 12 2 3 1 6

would become
A B C D E F
2 3 1 6 5 12

b=3
d=6
f=12
this is what i want, the pairs sorted in ascending order for b,d,f for a
given row.
is this possible?

i'm thinking nested IF statements.......??? but im not sure

any help very much appreciated

thanks



  #3   Report Post  
Ian
 
Posts: n/a
Default

thankyou for your excellent and helpful reply.
that definitely works for 1 row.
However i actually have 800 rows of differing values, sorry i should have
mentioned that before.

So somehow i need to do it for 800 rows...



"Bob Phillips" wrote:

Ian,

Try this

A2: =B1
B2: =B1

then copy across as many columns as you need

then sort rows 1 and 2 with row 2 as the sort by row

--
HTH

Bob Phillips

"Ian" wrote in message
...
I have the following data in a worksheet
Important note: it is in pairs, that is columns A,B is pair 1, C,D is pair
2, E,F is pair 3.

i want to sort it WITHIN ROW on columns b,d,f, with the smallest value in
b,d or f first then the next largest then the largest.

For example
A B C D E F
5 12 2 3 1 6

would become
A B C D E F
2 3 1 6 5 12

b=3
d=6
f=12
this is what i want, the pairs sorted in ascending order for b,d,f for a
given row.
is this possible?

i'm thinking nested IF statements.......??? but im not sure

any help very much appreciated

thanks




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Does that mean that the other 799 rows just sort in concert with the first
row, or do they get involve in the determination logic somehow?

--
HTH

Bob Phillips

"Ian" wrote in message
...
thankyou for your excellent and helpful reply.
that definitely works for 1 row.
However i actually have 800 rows of differing values, sorry i should have
mentioned that before.

So somehow i need to do it for 800 rows...



"Bob Phillips" wrote:

Ian,

Try this

A2: =B1
B2: =B1

then copy across as many columns as you need

then sort rows 1 and 2 with row 2 as the sort by row

--
HTH

Bob Phillips

"Ian" wrote in message
...
I have the following data in a worksheet
Important note: it is in pairs, that is columns A,B is pair 1, C,D is

pair
2, E,F is pair 3.

i want to sort it WITHIN ROW on columns b,d,f, with the smallest value

in
b,d or f first then the next largest then the largest.

For example
A B C D E F
5 12 2 3 1 6

would become
A B C D E F
2 3 1 6 5 12

b=3
d=6
f=12
this is what i want, the pairs sorted in ascending order for b,d,f for

a
given row.
is this possible?

i'm thinking nested IF statements.......??? but im not sure

any help very much appreciated

thanks






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
sorting problem in excel 2000 inenewbl Excel Discussion (Misc queries) 1 June 13th 05 04:48 AM
Excel as a database and sorting information [email protected]##### Excel Discussion (Misc queries) 1 February 27th 05 09:50 PM
Difference in number of Excel NewsGroups Hari Prasadh Excel Discussion (Misc queries) 1 January 25th 05 11:32 AM
linking an excel document to my task folder in outlook hallbb1 Excel Discussion (Misc queries) 0 January 10th 05 04:07 AM


All times are GMT +1. The time now is 11:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"