Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default How to sort horizontally selected columns in Excel by values in 8

One way to go along your thought process, rather than attempting to put all
1200 rows into columns via the transpose, do only on the ones that you are
actually planning on sorting as well as a column for keeping track of what
column numbers the data is corrently on.

Once the key columns has been sorted with the column that contain the column
number of the column each of those records are in, you can then have it go
down the list and pull in the column number to copy that particular column
data into a new worksheet column by column.

About the only other way I can think of to get around it is to build a
couple of class objects, one for each individual with the various
properties, and the other as a collection of all of those individual class
objects. Similar to how the Worksheets collection object contains all of
the individual worksheet objects. However, that's more involved, so not
sure if you want to get into that sort of effort or not.

Thanks,

Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
"naumlitvin" wrote in message
...
I need to create a macro to sort horizontally a worksheet with about 60
columns and 1200 rows. The sort should work on selection of columns, which
is
from column I to BH (9 - 60). Sort should work on values in 8 non-adjacent
rows. My first thought was to transpose selection in another worksheet,
sort
using concatenated values (and perform some averaging) and then transpose
back. But max # of cells in a row seems to be limited by 256 in Excel 2003
(and 2007 is not an option for several reasons) so transpose does not seem
as
a feasible plan...

I have a sample excel file with "before" and "after" worksheets
illustrating
what I need but I do not see how to upload a file here...

Any ideas would be appreciated.



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
Sort each line horizontally and separately nils Excel Worksheet Functions 2 September 22nd 09 07:19 PM
Can I sort horizontally? Mac[_3_] Excel Discussion (Misc queries) 4 July 20th 08 10:10 PM
Sort cell values of different columns murthy Excel Programming 1 March 4th 08 03:27 PM
Sort horizontally? Niniel Excel Discussion (Misc queries) 8 October 6th 07 03:02 AM
How do I match identical values in 2 columns and then sort? Godswatch Excel Discussion (Misc queries) 1 November 9th 05 06:55 PM


All times are GMT +1. The time now is 09:32 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"