LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 182
Default 2-dimensional array to 2 column list

Hello, Allllen!
You wrote on Tue, 31 Oct 2006 09:16:02 -0800:

A things to do first:

A 1) get your data on a sheet so that there is nothing else,
A and the sheet looks exactly like you had it in the mail. So
A cell A1 is empty, the first row has your .01 etc and the
A first column has the mail numbers, the rest is data in the
A middle, and there is nothing else on the sheet.

A 2) create a new blank sheet in the same workbook and call it
A "ouput"

A 3) use this code in a module. See here for instructions
A (regular module) http://www.contextures.com/xlvba01.html

A 4) go into your first sheet with the data, and do tools,
A macros and run the one called hello.

A *****************
A Sub hello()

A Dim x, y, z As Integer
A x = 2: y = 2: z = 1

A Do Until IsEmpty(Cells(x, 1))
A Do Until IsEmpty(Cells(1, y))
A Sheets("output").Cells(z, 1).Value = Cells(x,
A 1).Value + Cells(1, y).Value
A Sheets("output").Cells(z, 2).Value = Cells(x,
A y).Value
A z = z + 1
A y = y + 1
A Loop
A y = 2
A x = x + 1
A Loop

A End Sub

A ************
A --
A Allllen

A "TDS" wrote:

?? I have data like this:
?? .01 .02 .03 .04 .05 .06 .07 .08 .09
?? 1.0 2.0 2.15 2.3 2.7 3.0 3.26 3.40 3.61 3.89
?? 1.1 3.94
?? 1.2
?? 1.3
?? 1.4
?? 1.5
?? Etc... this is a basic table to figure the greater number
?? (1st column) + the lesser number (the 1st row) ...the find
?? the array value @ A3:C3. I need to convert this a
2-column
?? file such as:
??
?? 1.01 2.0
?? 1.02 2.15
?? 1.03 2.3
?? 1.04 2.7
?? 1.05 3.0
?? etc.
??
?? Hope this is enough info...
??
?? Basically it is an array for figuring flow of water...if I
?? know how high the creek is flowing, I can figure how many
?? cfs it is passing. So, if I know it's 2.45 ft...then the
?? table would figure xx.xxx cfs. But in order to bring it
?? into another program I have to have it in a 2-column list.
??
?? Thanks!

The very useful utility PureText will deal with this in a
fashion.

Select and copy the columns
Run PureText
Paste into say Word

You then have tab separated columns.


James Silverton
Potomac, Maryland

E-mail, with obvious alterations:
not.jim.silverton.at.comcast.not

 
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 can I count if column A="active" and column E="Job" in a list? Brandoni Excel Worksheet Functions 1 October 14th 06 09:09 AM
Formula to search for given term, and if not found in column to add it to list financier Excel Worksheet Functions 3 July 12th 06 03:12 PM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM


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