Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Steved
 
Posts: n/a
Default Sort from lowest to highest

Hello from Steved

in Cells A1 to F1 I have

25, 2, 3, 12, 23, 1

ok in cells H1 to M1 Iwould like to have

1, 2, 3, 12, 23, 25 ie lowest to the highest

What formula would I use in H1 to M1 to acheive this please.

Thankyou.

  #2   Report Post  
Max
 
Posts: n/a
Default

One way ..

Put in H1, and array-enter the formula
(i.e. press CTRL+SHIFT+ENTER):

=INDEX($A$1:$F$1,MATCH(SMALL(RANK($A$1:$F$1,$A$1:$ F$1,1),COLUMN(A1)),RANK($A
$1:$F$1,$A$1:$F$1,1),0))

Copy H1 across to M1
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Steved" wrote in message
...
Hello from Steved

in Cells A1 to F1 I have

25, 2, 3, 12, 23, 1

ok in cells H1 to M1 Iwould like to have

1, 2, 3, 12, 23, 25 ie lowest to the highest

What formula would I use in H1 to M1 to acheive this please.

Thankyou.



  #3   Report Post  
Lewis Clark
 
Posts: n/a
Default

One way: Copy the data to the range H1:M1. Highlight the range, then click
on DATA ... SORT. Click on the OPTIONS button and select "left to right".
Then click OK and sort ascending.

"Steved" wrote in message
...
Hello from Steved

in Cells A1 to F1 I have

25, 2, 3, 12, 23, 1

ok in cells H1 to M1 Iwould like to have

1, 2, 3, 12, 23, 25 ie lowest to the highest

What formula would I use in H1 to M1 to acheive this please.

Thankyou.



  #4   Report Post  
Max
 
Posts: n/a
Default

And if you're copying down to do likewise for A2:F2, A3:F3, etc

Put this instead in H1, array-entered as before,
then copy across to M1, and fill down as required:

=INDEX($A1:$F1,MATCH(SMALL(RANK($A1:$F1,$A1:$F1,1) ,COLUMN(A1)),RANK($A1:$F1,
$A1:$F1,1),0))

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


  #5   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

In H1 enter and copy across:

=IF(COLUMNS($H$1:H1)<=COUNT($A$1:$F$1),SMALL($A$1: $F$1,COLUMNS($H$1:H1)),"")

Steved wrote:
Hello from Steved

in Cells A1 to F1 I have

25, 2, 3, 12, 23, 1

ok in cells H1 to M1 Iwould like to have

1, 2, 3, 12, 23, 25 ie lowest to the highest

What formula would I use in H1 to M1 to acheive this please.

Thankyou.



  #6   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sat, 10 Sep 2005 03:33:02 -0700, Steved
wrote:

Hello from Steved

in Cells A1 to F1 I have

25, 2, 3, 12, 23, 1

ok in cells H1 to M1 Iwould like to have

1, 2, 3, 12, 23, 25 ie lowest to the highest

What formula would I use in H1 to M1 to acheive this please.

Thankyou.


For a formula solution:

In H1 enter the formula:

=SMALL($A$1:$F$1,COLUMN()-7)

Copy/drag to M1.

============================


--ron
  #7   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sat, 10 Sep 2005 03:33:02 -0700, Steved
wrote:

Hello from Steved

in Cells A1 to F1 I have

25, 2, 3, 12, 23, 1

ok in cells H1 to M1 Iwould like to have

1, 2, 3, 12, 23, 25 ie lowest to the highest

What formula would I use in H1 to M1 to acheive this please.

Thankyou.



Actually, you'd be better off with:

=SMALL($A1:$F1,COLUMN()-7)

So you can drag it down as well as to the right.


--ron
  #8   Report Post  
Steved
 
Posts: n/a
Default

Hello from Steved

I thankyou all

Thankyou.

"Ron Rosenfeld" wrote:

On Sat, 10 Sep 2005 03:33:02 -0700, Steved
wrote:

Hello from Steved

in Cells A1 to F1 I have

25, 2, 3, 12, 23, 1

ok in cells H1 to M1 Iwould like to have

1, 2, 3, 12, 23, 25 ie lowest to the highest

What formula would I use in H1 to M1 to acheive this please.

Thankyou.



Actually, you'd be better off with:

=SMALL($A1:$F1,COLUMN()-7)

So you can drag it down as well as to the right.


--ron

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
Find lowest and highest value from a set of rows Paul A via OfficeKB.com Excel Discussion (Misc queries) 5 July 16th 05 03:54 PM
How do i sort a group of cells from highest to lowest JulieR Excel Discussion (Misc queries) 2 March 8th 05 09:31 PM
Formula to sum and list highest to lowest Brian Excel Worksheet Functions 1 December 11th 04 11:26 PM
How to find highest, lowest and last cell in row? Sam Excel Discussion (Misc queries) 3 December 3rd 04 12:59 PM
How to find highest, lowest and last cell in a row? Sam Excel Worksheet Functions 1 December 3rd 04 12:51 PM


All times are GMT +1. The time now is 11:12 AM.

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"