You are here:

# Excel/Turning columns and raws round

Question
QUESTION: Dear Tom
Hope my message find you well
Is there any equation which can turn the raw to the column place and verses?
I have a very large data, and by mistake I have entered the column variable in the raw and the raw in the column

the builtin TRANSPOSE worksheet function will switch row and column.  However, it you have very large data, I don't think that would work foryou.

Say your data is on a sheet named Data and you data starts in row 2 with headers in row 1

on the second sheet put in this formula

then drag fill it down and across.  It will transpose your data.

when you are done, you can select all the cells, do a copy , then paste values to replace the formulas with the values they display.

--
Regards,
Tom Ogilvy

---------- FOLLOW-UP ----------

QUESTION: Thank Tom for your instant response
But I am struggling a bit in the formula

My sheet called sheet1
data starts in column A2 down to A13
The whole file starts in A1 and end in BC13

What shall I put in between the COLUMN(       ),ROW(         ) brackets?
I tried number of column and row, but this ends by wrong formula

An example of the wrong formulas was;

Regards

Nahid,

You don't need anything in the parentheses.  When you don't supply any argument (nothing in the parenthese), the column() and row() return the column and row of the cell in which they are located as a number.  So if you put  =column() in cell C5 it would return 3 since that is column 3.  Likewise  if you put =row() in cell BC11 it would return 11 since that is the row.

I have supplied the column() function in the row position of Address and the row() function in the column position of the Address function.  This is what allows it to transpose the data.

to summarize, you don't need to alter this function

except to use the proper sheet name (and perhaps rename the functions to match whatever the function name is in your regional version of Excel if they are different).

--
Regards,
Tom Ogilvy

Questioner's Rating
 Rating(1-10) Knowledgeability = 10 Clarity of Response = 10 Politeness = 10 Comment No Comment

This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

#### Tom Ogilvy

##### Expertise

Selected as an Excel MVP by Microsoft since 1999. Answering Excel questions in Allexperts since its inception in 2001. Able to answer questions on almost all aspects of Excel's internal capabilities. If seeking a VBA solution, please specify that in your question itself so I give you the answer you want. [Excel has weak protection - if you are distributing an application, I don't answer questions on how to protect your project from your users.]

##### Experience

Extensive experience.

Education/Credentials
Master of Science (MS) degree Operations Research (ORSA)

Awards and Honors
Microsoft MVP in Excel.