#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 79
Default "Make a table"

I have a list (something like this):

aaa=2
ddd=3
ttt=4
ooo=6
aaa=4
ddd=5
ttt=6
ooo=7
aaa=3
ddd=5
ttt=7
ooo=3
....

And I wanto to make something like this

aaa ddd ttt ooo
2 3 4 6
4 5 6 7
3 5 7 3
....

how can I do this?


Rodrigo Ferreira


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default "Make a table"

Hi Rodrigo

Copy A1:A4, move cursor to C1, Paste SpecialTranspose
In cell C2 enter
=OFFSET($B$1,((ROW()-2)*4)+(COLUMN()-3),0)
copy across through D2:F2
Copy C2:F2 down as far as required
--
Regards

Roger Govier


"Rodrigo Ferreira" wrote in message
...
I have a list (something like this):

aaa=2
ddd=3
ttt=4
ooo=6
aaa=4
ddd=5
ttt=6
ooo=7
aaa=3
ddd=5
ttt=7
ooo=3
...

And I wanto to make something like this

aaa ddd ttt ooo
2 3 4 6
4 5 6 7
3 5 7 3
...

how can I do this?


Rodrigo Ferreira



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 79
Default "Make a table"

Great.
But I still have a problem. Sometimes, some lines doesn't have one
parameter:
ddd=3
ttt=4 -- Line not exist
ooo=6
aaa=4
ddd=5
ttt=6
ooo=7
aaa=3
ddd=5
ttt=7
ooo=3
....


Other problem:
Now I have the table:

aaa ddd ttt ooo
2 3 4 6
4 5 6 7
3 5 7 3

And I have to return like the first:
ddd=3
ttt=4
ooo=6
aaa=4
ddd=5
ttt=6
ooo=7
aaa=3
ddd=5
ttt=7
ooo=3

How can I do this?

Rodrigo Ferreira



"Roger Govier" escreveu na mensagem
...
Hi Rodrigo

Copy A1:A4, move cursor to C1, Paste SpecialTranspose
In cell C2 enter
=OFFSET($B$1,((ROW()-2)*4)+(COLUMN()-3),0)
copy across through D2:F2
Copy C2:F2 down as far as required
--
Regards

Roger Govier


"Rodrigo Ferreira" wrote in message
...
I have a list (something like this):

aaa=2
ddd=3
ttt=4
ooo=6
aaa=4
ddd=5
ttt=6
ooo=7
aaa=3
ddd=5
ttt=7
ooo=3
...

And I wanto to make something like this

aaa ddd ttt ooo
2 3 4 6
4 5 6 7
3 5 7 3
...

how can I do this?


Rodrigo Ferreira





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default "Make a table"

One way for your "other" problem ..

Assume table below is in Sheet1 in A1:D4
aaa ddd ttt ooo
2 3 4 6
4 5 6 7
3 5 7 3


In another sheet,
Put in A1:
=OFFSET(Sheet1!$A$1,,MOD(ROW(A1)-1,4))

Put in B1:
=OFFSET(Sheet1!$A$2,INT((ROW(A1)-1)/4),MOD(ROW(A1)-1,4))
Select A1:B1, fill down until zeros appear in col B, signalling exhaustion
of data extract.

This will yield in A1:B12 the required results:

aaa 2
ddd 3
ttt 4
ooo 6
aaa 4
ddd 5
ttt 6
ooo 7
aaa 3
ddd 5
ttt 7
ooo 3

Adapt to suit ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Rodrigo Ferreira" wrote in message
...
....
Other problem:
Now I have the table:

aaa ddd ttt ooo
2 3 4 6
4 5 6 7
3 5 7 3

And I have to return like the first:
ddd=3
ttt=4
ooo=6
aaa=4
ddd=5
ttt=6
ooo=7
aaa=3
ddd=5
ttt=7
ooo=3

How can I do this?

Rodrigo Ferreira



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
Is there a function like "Data Table" for multiple Inputs [email protected] Excel Worksheet Functions 1 February 16th 06 02:59 AM


All times are GMT +1. The time now is 06:22 PM.

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"