Q: columns to rows

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

Sheet1 has column based data such as there are values in A1,B1,C1,..
Now I need to create Steet2 that holds row based data such as
A1->A1,B1->A2,C1->A3 and change the background color of A1,A2,A3, if the
data in A1,B1,C1 in Sheet1 is zero.
How can I do this?
Thanks,
 
Jim,
Select A1:Z1 and copy it, then select cell A1 on the second sheet. Us
paste special (check the transpose box). That flips your data fro
horizontal to vertical so it's in rows.
To format the cells, go to Format: Conditional formatting. If the cel
value is "equal to" then specify "0" and click the format button t
select the color of the pattern you want.
Hope it helps,
Phillychees
 
Hi Phillycheese5
Thanks for your response. However, I need to keep link between sheet1 and
new sheet2. If the data has changed in sheet1, it should be changed in sheet2
too.
 
=Sheet1!A1
=Sheet1!B1
=Sheet1!C1
etc.
to change the background color use conditional formating select "equal to"
and insert 0. Then click format and choos the color you want.
 
Hi Sloth,
Thanks, this is great help. This takes row=1, if I need row=2, I want to
type 2 somewhere in this Sheet 2 and get second row from Sheet1 in the same
column in sheet2, is there any way I can change '=Sheet1!A1' to make it
dynamic for row?
 
=INDIRECT("Sheet1!R"&COLUMN()&"C"&ROW(),FALSE)

The formula essentialy switches the row and column (ie. C7 will link to F3
of Sheet1).

You can shorten it, in your case by using

=INDIRECT("Sheet1!R1"&"C"&ROW(),FALSE)

This will only look at row 1. (ie. B7 will link to E1 of sheet1).

The INDIRECT function should point you in the right direction. Let me know
if you need more help. You can't do a whole row at a time without copying
and pasteing the formula, unless you use a macro (can't help you there).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top