A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

convert matrices to table



 
 
Thread Tools Display Modes
  #1  
Old May 13th, 2010, 01:43 PM posted to microsoft.public.excel.worksheet.functions
Dave
external usenet poster
 
Posts: 1
Default convert matrices to table

Hi to everyone, is it possible to view a matrix in table mode?

I have a matrix like this
b c d e f ...
b 1 0 3 4 5
c 2 5 8 6 5
d 2 3 6 8
e
f
....

I want to convert it in a 3 row table:
ROW COL VALUE
b b 1
b c 0
b d 3
b e 4
....



In one word, that's the opposite of what the pivot table does! :S

thanks!

Dave
  #2  
Old May 13th, 2010, 03:41 PM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_8_]
external usenet poster
 
Posts: 338
Default convert matrices to table

Hi

Then use a Pivot Table to achieve it.
You will have to insert an entry in cell A1, as the PT will complain
there is no header value for the column.

Alt+D+P to invoke the PT wizardMultiple consolidation
rangesNextCreate a single Page fieldNextSelect the range of your
dataAddNextSelect where you want the OutputFinish
Double click on the bottom right value, Grand Total by Row and Column,
and a new sheet will open with the data the way you want it.
--
Regards
Roger Govier

Dave wrote:
Hi to everyone, is it possible to view a matrix in table mode?

I have a matrix like this
b c d e f ...
b 1 0 3 4 5
c 2 5 8 6 5
d 2 3 6 8
e
f
...

I want to convert it in a 3 row table:
ROW COL VALUE
b b 1
b c 0
b d 3
b e 4
...



In one word, that's the opposite of what the pivot table does! :S

thanks!

Dave

  #3  
Old May 13th, 2010, 04:15 PM posted to microsoft.public.excel.worksheet.functions
Bernd P
external usenet poster
 
Posts: 613
Default convert matrices to table

On 13 Mai, 13:43, Dave wrote:
Hi to everyone, is it possible to view a matrix in table mode?

I have a matrix like this
* * *b * c * d * e * f * ...
b * 1 * 0 * 3 * 4 * 5
c * 2 * 5 * 8 * 6 * 5
d * 2 * 3 * 6 * 8
e
f
...

I want to convert it in a 3 row table:
ROW * *COL * *VALUE
b * * * * *b * * * * 1
b * * * * *c * * * * 0
b * * * * *d * * * * 3
b * * * * *e * * * * 4
...

In one word, that's the opposite of what the pivot table does! :S

thanks!

Dave


Hello Dave,

If you are willing to use a UDF:
http://sulprobil.com/html/reshape.html

The example on my page is just the other way round but can easily
apply the way you want to.

Regards,
Bernd
  #4  
Old May 13th, 2010, 05:46 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
Default convert matrices to table

Dave wrote:
Hi to everyone, is it possible to view a matrix in table mode?

I have a matrix like this
b c d e f ...
b 1 0 3 4 5
c 2 5 8 6 5
d 2 3 6 8
e
f
...

I want to convert it in a 3 row table:
ROW COL VALUE
b b 1
b c 0
b d 3
b e 4
...



In one word, that's the opposite of what the pivot table does! :S

thanks!

Dave




Name your current table "Source". Enter the following three formulas where you
want the new table:

=INDEX(Source,INT((ROW(A1)-1)/(COLUMNS(Source)-1))+2,1)

=INDEX(Source,1,MOD(ROW(A1)-1,COLUMNS(Source)-1)+2)

=INDEX(Source,INT((ROW(A1)-1)/(COLUMNS(Source)-1))+2,
MOD(ROW(A1)-1,COLUMNS(Source)-1)+2)



Copy down as far as necessary.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.