Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Oh Great Excel Gurus


Permanent Vacation



Status: Offline
Posts: 23086
Date:
Oh Great Excel Gurus


I have a chart I need to make with 115 names down one side and the same 115 names across the top.  So A2 and B1 should be the same text, A3 and C1 should be the same text, etc.

I know I can put "=A2" in B1 to make it the same.  But if I copy that to C1, instead of giving me "=A2" it gives me "=B2".

Is there a way to make the information in the first column and the first row the same without typing the formula in by hand?



__________________

tumblr_maefr2j2Bt1rrd8d6o1_500.gif

 



Doesn't Do Windows



Status: Offline
Posts: 25589
Date:

I'm use OpenOffice, I don't even have Excel, BUT . . .

Is this a one time thing, or do you need a formula?

If it is a one time thing I just did this in OpenOffice by . . .

1. Entered five names down the A column, highlight and copy

2. Select the B2 column

3. Edit -> Paste Special -> and selected the "Transpose" option.

That doesn't make a formula that will automatically change one if you change another, but it is a way to copy a vertical column to a horizontal row. (at least in OpenOffice, I assume Excel is similar)




-- Edited by WebGuy on Monday 28th of June 2010 12:45:43 PM

__________________




Permanent Vacation



Status: Offline
Posts: 23086
Date:

It's not a perfect solution, but I can live with it. I'll just have to copy/paste any time I add another category. It's still faster than typing everything twice.

Wait, I wonder... Nope, darn that didn't work. I thought maybe if I put "=A2" in B2, copied that down the column, then transpose-pasted it into the row that would work, but all I get is formula errors.

__________________

tumblr_maefr2j2Bt1rrd8d6o1_500.gif

 



Permanent State of Confusion

Status: Offline
Posts: 27006
Date:

Because of going vertical to horizontal, I don't know if there is a simple solution. Normally the $ helps "lock" a cell. I can't seem to make it work for what you are trying to do here.

Let me try something else.

__________________

Stop trying to be what you see. Be what you ought to be.



Permanent State of Confusion

Status: Offline
Posts: 27006
Date:

WebGuy wrote:
1. Entered five names down the A column, highlight and copy

2. Select the B2 column

3. Edit -> Paste Special -> and selected the "Transpose" option.


This works Mz.

 



__________________

Stop trying to be what you see. Be what you ought to be.



Permanent State of Confusion

Status: Offline
Posts: 27006
Date:

I am so glad I could learn something new about Excel today. clap.gif

Thanks Web!

__________________

Stop trying to be what you see. Be what you ought to be.



Doesn't Do Windows



Status: Offline
Posts: 25589
Date:


I'm still trying to figure out of there is a way to do it with a formula so changing a name in the column makes it then also change in the row.

I'd bet you there is a way if you knew the right formula commands and how to put them together.




__________________




Permanent State of Confusion

Status: Offline
Posts: 27006
Date:

I tried the formula ways I knew and I wasn't having any luck.

__________________

Stop trying to be what you see. Be what you ought to be.



Doesn't Do Windows



Status: Offline
Posts: 25589
Date:


I got it! :D

Starting at A2 going down, you have your list of names.

Enter this B1 Formula: =OFFSET($A1; (COLUMN())-1; 0)

Then copy that formula across the row to the right as far as you need.

I'm not sure I can easily explain it, but I do now understand it.




__________________




Permanent State of Confusion

Status: Offline
Posts: 27006
Date:

Good job Web! I didn't go see if there was a function to assist with the project.



__________________

Stop trying to be what you see. Be what you ought to be.



Doesn't Do Windows



Status: Offline
Posts: 25589
Date:


The "OFFSET" command selects a cell based on reference to other cells

For example

OFFSET(A1; 3; 4)

gives us the info that is 3 cells down and 4 cells over from A1

So, in my formula,

The "$" means absolute, that tells it to not change the "A" column in the formula when copying the formula to another location, so we will always get data from the "A" column.

the "COMUMN()" command gives us the number of this column our formula is in.

so the formula means, give us the results that come from:

Starting at cell A1 . . . then go down one less number of rows than this column . . . and over zero columns.

So, if the formula is in the 12th column, the formula asks us for the data that is in the cell ...

starting from A1, go down (12 - 1) rows and over 0 columns

easy, huh?




__________________




Permanent Vacation



Status: Offline
Posts: 23086
Date:

Cool! I knew there had to be a way to do it.

As usual, WEB ROCKS!

__________________

tumblr_maefr2j2Bt1rrd8d6o1_500.gif

 



Permanent State of Confusion

Status: Offline
Posts: 27006
Date:

Yes he does. nod.gif

__________________

Stop trying to be what you see. Be what you ought to be.



Permanent Vacation



Status: Offline
Posts: 23086
Date:

Hm, Excel isn't liking this. It's not quite a success yet.


__________________

tumblr_maefr2j2Bt1rrd8d6o1_500.gif

 



Permanent Vacation



Status: Offline
Posts: 23086
Date:

Almost there! Putting it in as is, Excel gives me an error. It doesn't like the negatives I think, but I can't find how to go backwards.

__________________

tumblr_maefr2j2Bt1rrd8d6o1_500.gif

 



Permanent State of Confusion

Status: Offline
Posts: 27006
Date:

=OFFSET($A1,(COLUMN())-1, 0)

Works for me. For some reason I can't get the function to work. But if you copy and paste the formula it will work.

If you used what Web wrote, he used semicolons where commas go in the formula.

-- Edited by confuzzed on Monday 28th of June 2010 03:29:43 PM

__________________

Stop trying to be what you see. Be what you ought to be.



Doesn't Do Windows



Status: Offline
Posts: 25589
Date:

Hmm, The negatives are supposed to work. A positive is down and right where a negative is for up and left. There may be a better way, I just used the -1 as a way to make it pull the right value.

I'd be surprised if Excel is that much different from OpenOffice on a formula like that.



__________________




Doesn't Do Windows



Status: Offline
Posts: 25589
Date:

confuzzed wrote:

If you used what Web wrote, he used semicolons where commas go in the formula.




I tried it again and I get errors (in OpenOffice) if I use commas. Must be a difference between OpenOffice and Excel.

 

 



-- Edited by WebGuy on Monday 28th of June 2010 03:43:06 PM

__________________




Permanent State of Confusion

Status: Offline
Posts: 27006
Date:

I was okay with the commas. I knew Excel doesn't do semicolons in formulas, but I tried it first the way you wrote it. I also got errors. I made the switch and we were good to go.

__________________

Stop trying to be what you see. Be what you ought to be.



Permanent Vacation



Status: Offline
Posts: 23086
Date:

Aha! I see what was going wrong. When I replaced the semicolons with commas, I added a comma between the column value and zero. Got it now.

Yep, Web rocks.

__________________

tumblr_maefr2j2Bt1rrd8d6o1_500.gif

 



Permanent State of Confusion

Status: Offline
Posts: 27006
Date:

I'm glad it works for you now Mz. Yay! That'll make it better. nod.gif

__________________

Stop trying to be what you see. Be what you ought to be.

Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard