Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 376
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
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.
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
how do i square matrices? sparkskey Excel Worksheet Functions 4 April 26th 23 07:47 PM
Comparing two matrices [email protected] Excel Discussion (Misc queries) 1 May 1st 07 02:20 PM
inverse matrices Chey Excel Discussion (Misc queries) 6 January 31st 07 12:14 AM
matrices Eiman Excel Discussion (Misc queries) 0 December 9th 05 11:01 PM
How to solve y =f(x,y) using matrices? Ane Excel Worksheet Functions 1 July 27th 05 02:37 AM


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

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"