Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
hierarchii
 
Posts: n/a
Default mirrored array/matrix


I cannot for the life of me remember how to do this:

I have an array/matrix that looks like this

Red Blue Green Coffee Tea Coke
Red x
Blue y
Green z
Coffee
Tea
Coke

So Red corresponds with coffee, blue with tea and green with coke.

What I'd like is a way for a cell to return the value of it's mirrored
half. In other words, since red-coffee's value is "x", in the column
under red, i'd like there to be an "x" in the cell (row wise that is)
that is coffee-red.

This is a horrible explanation I know. I'm having a hard time trying to
describe what I mean.

It's much like a distance chart on a map. One that you can look to see
how far LA is from Las Vegas, then LA to San Fran, just the same as you
can start at San Fran and trace your finger to see how far it is to LA.

I only want to type in the values once and have the mirrored cell
return that value.


--
hierarchii
------------------------------------------------------------------------
hierarchii's Profile: http://www.excelforum.com/member.php...o&userid=25943
View this thread: http://www.excelforum.com/showthread...hreadid=393211

  #2   Report Post  
mangesh_yadav
 
Posts: n/a
Default


You will have to manually link the cells. A short-cut is as follows:
Lets say your table is in range A1:G7 inclusing the headers. Select
cells B3:B7, and enter the formula =TRANSPOSE(IF(C2:G2="","",C2:G2)).
Press control shift enter. The upper right corner of your matrix is the
input part, and the lower left corner contains the formulae to the upper
right corner. Repeat the procedure for cells C4:C7 and so on.

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=393211

  #3   Report Post  
hierarchii
 
Posts: n/a
Default


Thank you.

Is there a way to absolute some of the values in the formula so that I
can click and drag?


--
hierarchii
------------------------------------------------------------------------
hierarchii's Profile: http://www.excelforum.com/member.php...o&userid=25943
View this thread: http://www.excelforum.com/showthread...hreadid=393211

  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

I think you need your matrix offset by 1 column i.e. A1 should be blank, Red
should be in A2 and B1 respectively.
Fill in the appropriate "x's" down the diagonal for the matching pairs
Then, in C2 enter
=OFFSET($A$1,COLUMN()-1,ROW()-1)
and copy across through D2:G2
Any value entered in B3:B7 will be mirrored in D2:G2

Copy the cells down, but not into (or past) the cells with "x's" and any
values entered in the lower triangle will be reflected in the top half.

--
Regards

Roger Govier


"hierarchii" wrote
in message ...

I cannot for the life of me remember how to do this:

I have an array/matrix that looks like this

Red Blue Green Coffee Tea Coke
Red x
Blue y
Green z
Coffee
Tea
Coke

So Red corresponds with coffee, blue with tea and green with coke.

What I'd like is a way for a cell to return the value of it's mirrored
half. In other words, since red-coffee's value is "x", in the column
under red, i'd like there to be an "x" in the cell (row wise that is)
that is coffee-red.

This is a horrible explanation I know. I'm having a hard time trying to
describe what I mean.

It's much like a distance chart on a map. One that you can look to see
how far LA is from Las Vegas, then LA to San Fran, just the same as you
can start at San Fran and trace your finger to see how far it is to LA.

I only want to type in the values once and have the mirrored cell
return that value.


--
hierarchii
------------------------------------------------------------------------
hierarchii's Profile:
http://www.excelforum.com/member.php...o&userid=25943
View this thread: http://www.excelforum.com/showthread...hreadid=393211



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



All times are GMT +1. The time now is 10:40 AM.

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"