LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 45
Default Sorting high numbers from low numbers between two rows

Leo.

When I put that array formula in a cell, this is shown in that cell #value!
and it doesn't go away. So I am at a stop with that. thanks however.


ClR.

Your code worked fine when all the important cells are filled with values,
however, if only 3 of the cells in each row are filled, it does sort them
right, but it duplicates them and inserts them into the cells where there
should be no numbers.

If I had this in my cells
1 3 5
2 4 6

i would get this
1 2 3 1 2 3
4 5 6 4 5 6

However, I thank you because you did get the cogs in my head turning with
your macro and i think I can get it done with a little time???

Thanks all!!

"Leo Heuser" wrote:

"scotty" skrev i en meddelelse
...
Here is a portion of my worksheet.


A B C D E F
1
2 1 4 20 15 56 65
3
4 2 67 45 8 3 99
5

Sometimes all 30 cells have values in them, and sometime only Colmuns ABC
and rows 1-5 have values. Rows 1,3,5 are insignificant

What I want to do is to sort the values between row 2 & 4 by putting the
"6"
lowest values in row 2 and the the "6" highest values in row 4.

Can someone help me with the code on this?

Thanks



Scotty

Maybe this approach.

Assuming your list in A1:F5 enter this
array formula in e.g. H2:

=LARGE($A$2:$F$4*{1;0;1},COLUMN()-COLUMN($H$2)+7)

Finish with <Shift<Ctrl<Enter, also if edited later.

Copy H2 to i2:M2 with the fill handle (the little square in
the lower right corner of the cell)

In H4:

=LARGE($A$2:$F$4*{1;0;1},COLUMN()-COLUMN($H$2)+1)

Finish with <Shift<Ctrl<Enter, also if edited later.

Copy H4 to i4:M4 with the fill handle (the little square in
the lower right corner of the cell)

Empty cells in second and fourth row of your original
list will display as zero in the new list, so it is assumed,
that zero and an empty cell are not the same in your
original set. Get back, if this is a problem.

--
Best regards
Leo Heuser

Followup to newsgroup only please.






 
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
How do I set rows to Alpha and columns to numbers? len Setting up and Configuration of Excel 1 October 6th 06 05:26 PM
Sorting Rows Steve F Excel Discussion (Misc queries) 5 October 6th 06 02:54 AM
blank rows and sorting problem..plz help me... naughtyboy Excel Discussion (Misc queries) 2 August 8th 06 08:03 PM
Sorting numbers with differing numbers of digits Trudy Excel Discussion (Misc queries) 5 March 4th 06 12:31 PM
Can it be done Luke Dallman Excel Worksheet Functions 10 January 20th 05 02:27 AM


All times are GMT +1. The time now is 06:01 AM.

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

About Us

"It's about Microsoft Excel"