Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
PierreL
 
Posts: n/a
Default from table to vector

I have a table that reads
a b c
d e

I would like to map it to
a
b
c
d
e
Can I do this with a function?
Thanks,
Pierre
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
do you have a maximum of columns and are they always filled or could
you have empty cells in your source data

--
Regards
Frank Kabel
Frankfurt, Germany

"PierreL" schrieb im Newsbeitrag
...
I have a table that reads
a b c
d e

I would like to map it to
a
b
c
d
e
Can I do this with a function?
Thanks,
Pierre


  #3   Report Post  
PierreL
 
Posts: n/a
Default

Frank, Guten Tag,
Yes I may have empty cells, but then I would sort them out in the vector
later on, so assume its is all filled in. The maximum varies, but I can
easily detect the maximum length of all the rows and fill that in the formula.
Tx,
Pierre

"Frank Kabel" wrote:

Hi
do you have a maximum of columns and are they always filled or could
you have empty cells in your source data

--
Regards
Frank Kabel
Frankfurt, Germany

"PierreL" schrieb im Newsbeitrag
...
I have a table that reads
a b c
d e

I would like to map it to
a
b
c
d
e
Can I do this with a function?
Thanks,
Pierre



  #4   Report Post  
Alan Beban
 
Posts: n/a
Default

PierreL wrote:
I have a table that reads
a b c
d e

I would like to map it to
a
b
c
d
e
Can I do this with a function?
Thanks,
Pierre

If the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook

=ArrayUniques(ArrayReshape(A1:C2,6,1)), array entered into a 6 cell
column will give you
a
b
c
d
e
0

If your data were
a b blank c d
e blank f blank g blank h

then =ArrayUniques(ArrayReshape(A1:G2,14,1) array entered into a 14-cell
column would return
a
b
0
c
d
e
f
g
h
#N/A
#N/A
#N/A
#N/A
#N/A

Alan Beban
  #5   Report Post  
Harlan Grove
 
Posts: n/a
Default

"PierreL" wrote...
I have a table that reads
a b c
d e

I would like to map it to
a
b
c
d
e
Can I do this with a function?


Another alternative if the result would appear in a range of cells. If the
source range were named Src, and the top-left cell in the destination range
named Dest, enter the following formula in Dest

=OFFSET(Src,INT((ROW()-ROW(Dest))/COLUMNS(Src)),
MOD(ROW()-ROW(Dest),COLUMNS(Src)),1,1)

and fill this cell down as far as needed.




  #6   Report Post  
PierreL
 
Posts: n/a
Default

Thanks Harlan, worked beautifully!
Alan, I will implement yours when I am back on my own machine, I did not
want to download anything on someone's else machine. 'Reshape"reminds me of
APL, p-robably as powerful.
hanks again,
Pierre

"Harlan Grove" wrote:

"PierreL" wrote...
I have a table that reads
a b c
d e

I would like to map it to
a
b
c
d
e
Can I do this with a function?


Another alternative if the result would appear in a range of cells. If the
source range were named Src, and the top-left cell in the destination range
named Dest, enter the following formula in Dest

=OFFSET(Src,INT((ROW()-ROW(Dest))/COLUMNS(Src)),
MOD(ROW()-ROW(Dest),COLUMNS(Src)),1,1)

and fill this cell down as far as needed.



  #7   Report Post  
Harlan Grove
 
Posts: n/a
Default

"PierreL" wrote...
....
. . . 'Reshape"reminds me of APL, p-robably as powerful.


Alan's ArrayReshape doesn't function the same as APL's rho operator, but it
does function more in the spirit of how Excel's built-in facilities work.


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
Pivot Table services Craig Excel Discussion (Misc queries) 5 January 19th 05 06:11 PM
table dow Excel Discussion (Misc queries) 0 January 12th 05 02:25 PM
changing proportion of chart and data table Dawn Parks Charts and Charting in Excel 3 January 6th 05 01:18 AM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM
Data Table - Does it work with DDE links and stock tickers? Post Tenebras Lux Excel Discussion (Misc queries) 0 December 1st 04 05:15 PM


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