Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Sort Data in Multiple Columns As Single Data Set

I'd appreciate any help that you guys could give. I have some rather large
data sets consisting of a column of sample names followed by a numerical
value in the next column. For example:

Col A Col B
Sample1 1
Sample 2 3
Sample 3 2

I would like to sort these by the numerical part of the sample name. I was
planning on adding a new column (column C) containing the numerical part of
the sample name by which to sort using:

Dim i As Long, str As String
str = Selection
str = Mid(str, 7, Len(str) - 6)
i = CLng(str)
cells(*row*,3)=i

However, I have much more than 65536 samples so the data is continued in
multiple columns.

Col A Col B Col C Col D
Col E
Sample1 1 (blank) Sample65537 4
Sample 2 3 Sample 65538 1
Sample 3 2 Sample 65539 3

Any thoughts on how I can handle this?
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
Print multiple columns from single column data? Bobinalong Excel Discussion (Misc queries) 1 August 27th 08 02:40 AM
sort multiple columns of data but not change the data location... Possible? [email protected] Excel Programming 3 June 15th 06 09:15 PM
.csv file Multiple columns of data in single Cell Bin Excel Discussion (Misc queries) 1 March 29th 06 08:48 PM
merge data from multiple columns to single column triggerthehorse Excel Worksheet Functions 2 January 17th 05 07:19 PM
how to convert multiple columns of data into one single column? Ah 3 Excel Worksheet Functions 1 November 12th 04 02:33 PM


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