here's how to transpose rows to columns

http://www.iworkcommunity.com/content/transpose-rows-columns

Posted on Mar 17, 2012 6:41 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 17, 2012 10:41 PM

Hi Hershel,


While that is, as described, a 'simple' method to transpose, it's not the only one, nor is it the easiest to set up.


Numbers will auto-adjust the row reference(s) of a formula when filling down, or the column reference(s) when filling right. Unfortunately, the method described in the linked post requires adjusting the column reference of a formula as it is entered down a column. That must be done manually.


Here's a method that uses a longer formula, and a second table, but has the advantage that the formula needs to be entered only once; after that it's simply Filled Down and Filled right to place the adjusted formula in all of the other cells.


Table 1 is the original table. Table 2 needs to have as many rows as table one has columns, and as many columns as Table 1 has rows. The limit on both of these is 255, the maximum number of columns in a Numbers table. (The example uses 10x10 tables to ft easily into a page in this discussion.)

User uploaded file

Formula (in A1 of Transposed. Copied of Filed from there to all other cells on the Transposed table.)


=OFFSET(Original :: $A$1,COLUMN()-1,ROW()-1)


Regards,

Barry

32 replies

Oct 14, 2013 2:31 PM in response to crabpaws

Agreed. Can I figure this out? Sure. Do I want to explain it to an entire department that we're trying to wean off of Excel? Of course not.


For iWork to be taken seriously as a productivity suite, it needs to match at least Office's basic features.


And just to contribute something useful - Google Docs does this with a much simpler formula.

Oct 15, 2013 1:01 AM in response to ekbm

ekbm writes:

"Agreed. Can I figure this out? Sure. Do I want to explain it to an entire department that we're trying to wean off of Excel? Of course not."


Did you originally 'want to' explain to an entire department how to use the features supported by Excel that you wanted the department's members to use? Of course not.


"For iWork to be taken seriously as a productivity suite, it needs to match at least Office's basic features."


If its designers intended Numbers to be an exact replacement for MS Excel, or intended it for the same group of users as MS Excel, it would indeed make 'match(ing) Office's basic features' a 'need.' An in depth study is hardly necessary to make it clear that the target audience for numbers is different from the target audience for Excel.


"And just to contribute something useful - Google Docs does this with a much simpler formula."


Always good to see a useful contribution. A common recommendation here has been to use the tool that fits the job. If you need all (or specific) features of MS Excel, then that's the tool you should use. If Google Docs provides the features you need, then use Google Docs.


Wayne's suggestion was also a useful contribution; If you want to see changes made to Numbers, then communicate that directly to Apple. Apple does not regularly monitor these forums except for compliance with the TOU. The direce comunication route is via the Feedback channel, and the doorway to that channel is through the menu item Provide Numbers Feedback, found in the Nmbers menu in Numbers '09.


Regards,

Barry

Oct 15, 2013 12:05 PM in response to crabpaws


I've found the need to transpose most often occurs with importing data from other sources.



Ironically, in such situations (recurring imports) I've found to my surprise that Numbers is more convenient than Excel. You import data into your usual "Source" table. You've got your "Transposed" table already set up with Barry's one simple formula so it updates automatically. No need to be worry about finding a truly empty cell range to paste without overwriting data, then fiddle around with Edit/Paste Special, remember to click the Transpose box, and all that. It's just paste and done.


So this is a bad example for trying to demonstrate how "light-weight" Numbers is. Numbers can't do everything Excel does. But in this particular aspect it's actually a champ.


Parts of this discussion strike me as rather like criticizing a light car for not being able to do everything a heavy truck can do. In many situations the light car is more convenient, and gets you where you want to go faster in more style with less fuel. In other situations you do need (to mix a metaphor) the heavy artillery. Excel is an excellent app. Numbers is too (and does well on an iPad). Perhaps improvements are on the way.


SG

Oct 16, 2013 6:07 AM in response to Barry

Barry, this is a basic question, but it's where I'm at in this process. When your formula contains the word "Original", which is the title of your table, what are you actually putting in the formula in that spot? I've never used a title in a formula, but you have cell locations specified via $A$1. I'm lost on what actually goes there. It must be some identifier for that table, but can you help?


And I thought transposing would be so simple...


Thanks in advance!

Oct 16, 2013 9:22 AM in response to SGIII

OK, I see my first mistake. I was wondering how you connected the name "Original" to that table, which I'd never done. I'd only used headings to title/head sheets , and I knew there was no way something typed in a heading would connect to a chart via a function. Figured out in inspector how to assign a name to the particular chart and things make more sense. I'm just beginning to need these more advanced functions of numbers, so too much is new.


Thank you, Wayne, for the more detailed explanation. It made me realize there had to be some way to attach a name to a table! Forums are a great help due to the people willing to take the time to help us beginners!

Oct 16, 2013 11:31 AM in response to Yellowbox

Hi Ian,


Like your clear, simple, and complete presentation!


One question, not related to transposing but more generally to Numbers:

convert columns and rows to Headers as required to use the power of Numbers.


To do this kind of conversion I've been doing this:


  1. Go to Inspector>Table>'Headers and Footer' and pick the number of header rows/columns.
  2. Copy row 2 (old row 1) and then 'Paste and Match Style' into the newly created header row above
  3. Copy column B (old column A) and 'Paste and Match Style' into the newly created header column to the left
  4. Delete the "extra" row and column.


The way I've been doing it is not onerous. But I thought I'd ask just in case there is an even simpler, Numberseque way to accomplish the same thing. Is there?


SG

Feb 25, 2015 11:58 AM in response to toothfairy

I got confused on which post was the latest


The syntax for a cell reference is:

[[<SHEET>]::<TABLE>::]<ROW1><COLUMN1>[:<ROW2><COLUMN2>]


the items in square braces are optional depending on the situation.


I will work my way through the possible combinations:


assuming we have two sheets named "Sheet 1" and "Sheet 2"

and assuming each sheet has two tables named "Table 1" and "Table 2"


1) a single cell in the same table, same sheet

e.g. A1


2) a range in the same table, same sheet

e.g. A1:B2


3) formula in a cell of "Table 1" referring to a cell in "Table 2" on the same sheet

e.g. "Table 2"::B1


4) formula in a cell of "Table 1" referring to a range in "Table 2" on the same sheet

e.g. "Table 2"::A1:B2


5) formula in a cell of "Table 1" of "Sheet 1" referring to a cell in "Table 2" on sheet "Sheet 2"

e.g. "Sheet 2"::"Table 2"::B1


5) formula in a cell of "Table 1" of "Sheet 1" referring to a range in "Table 2" on sheet "Sheet 2"

e.g. "Sheet 2"::"Table 2"::A1:B2



In Barry's formulas he assumes that the data in table name "Original" is the data that is NOT transposed.


Each cell in the table named "Transposed" contains a formula which retrieves data from the table "Original" such that the data is transposed.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

here's how to transpose rows to columns

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.