simple question

alhurayas

Board Regular
Joined
Feb 22, 2008
Messages
62
hi all I have simple question

in sheet1 I have all my data
and sheet 2 to have the same date but the ROWS should be converted to COLUMNS

thanks you very much for any the help
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Mr mrkmzz thank you
I tried it but did not work and I used Ctrl+Shift+Ente

Hi Alhurayas,

Here it works. Look at this:

Layout:

[TABLE="width: 223"]
<tbody>[TR]
[TD="class: xl66, width: 70, bgcolor: #D9D9D9"]Row01/Col01
[/TD]
[TD="class: xl66, width: 47, bgcolor: #D9D9D9"]Col02
[/TD]
[TD="class: xl66, width: 47, bgcolor: #D9D9D9"]Col03
[/TD]
[TD="class: xl66, width: 47, bgcolor: #D9D9D9"]Col04
[/TD]
[TD="class: xl66, width: 47, bgcolor: #D9D9D9"]Col05
[/TD]
[TD="class: xl67, width: 40, bgcolor: transparent"]Sheet1
[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #D9D9D9"]Row02
[/TD]
[TD="class: xl65, bgcolor: transparent"]Name01
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]110
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]120
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]130
[/TD]
[TD="class: xl68, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #D9D9D9"]Row03
[/TD]
[TD="class: xl65, bgcolor: transparent"]Name02
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]210
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]220
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]230
[/TD]
[TD="class: xl68, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #D9D9D9"]Row04
[/TD]
[TD="class: xl65, bgcolor: transparent"]Name03
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]310
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]320
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]330
[/TD]
[TD="class: xl68, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]*************
[/TD]
[TD="class: xl65, bgcolor: transparent"]********
[/TD]
[TD="class: xl65, bgcolor: transparent"]********
[/TD]
[TD="class: xl65, bgcolor: transparent"]********
[/TD]
[TD="class: xl65, bgcolor: transparent"]********
[/TD]
[TD="class: xl68, bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 188"]
<tbody>[TR]
[TD="class: xl65, width: 70, bgcolor: transparent"]Row01/Col01
[/TD]
[TD="class: xl65, width: 47, bgcolor: transparent"]Row02
[/TD]
[TD="class: xl65, width: 47, bgcolor: transparent"]Row03
[/TD]
[TD="class: xl65, width: 47, bgcolor: transparent"]Row04
[/TD]
[TD="class: xl66, width: 40, bgcolor: transparent"]Sheet2
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Col02
[/TD]
[TD="class: xl65, bgcolor: transparent"]Name01
[/TD]
[TD="class: xl65, bgcolor: transparent"]Name02
[/TD]
[TD="class: xl65, bgcolor: transparent"]Name03
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Col03
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]110
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]210
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]310
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Col04
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]120
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]220
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]320
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Col05
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]130
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]230
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]330
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]*************
[/TD]
[TD="class: xl65, bgcolor: transparent"]********
[/TD]
[TD="class: xl65, bgcolor: transparent"]********
[/TD]
[TD="class: xl65, bgcolor: transparent"]********
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]


Array formula (use Ctrl+Shift+Enter and not only Enter):

Code:
In Sheet2 and cell A1

A1-> =INDEX(IF(Sheet1!$A$1:$E$4="","",Sheet1!$A$1:$E$4),COLUMNS($A1:A1),ROWS(A$1:A1))

Do some tests with my layout and tell me if the array formula work.


Markmzz
 
Upvote 0
mr markzz thank you very very much it worked , but how to change it to be 100 ROWS and 100 COLUMNS


thank you
 
Upvote 0
mr markzz thank you very very much it worked , but how to change it to be 100 ROWS and 100 COLUMNS


thank you

Try this:

Array formula (use Ctrl+Shift+Enter and not only Enter):

Code:
In Sheet2 and cell A1 

A1-> =INDEX(IF(Sheet1!$A$1:$CV$100="","",Sheet1!$A$1:$CV$100),COLUMNS($A1:A1),ROWS(A$1:A1))

Do some tests.

Markmzz
 
Upvote 0
thank you mr Markmzz
it worked but it needed a lot of time to calculate because I have more than 500 rows and column and I set it to 1000 for future use is an easy way
 
Upvote 0
thank you mr Markmzz
it worked but it needed a lot of time to calculate because I have more than 500 rows and column and I set it to 1000 for future use is an easy way

my system hang up

Hi Alhurayas,

Sorry about that.

For that amount of rows and columns (500 - 1,000) my formula isn't suitable.

I don't know another way to speed up the processing of your data.

Lets wait for another user.

Markmzz
 
Upvote 0
=INDEX((Sheet1!$A$1:$C$3),COLUMN(),ROW())

Repalce $A$1:$C$3 with the section of Sheet 1 that you need to transpose.
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top