+ Reply to Thread
Results 1 to 4 of 4

Swap rows and columns automatically

  1. #1
    Registered User
    Join Date
    02-25-2021
    Location
    Petaluma, CA
    MS-Off Ver
    2010
    Posts
    2

    Swap rows and columns automatically

    I have tediously created and populated a spreadsheet that is simple but has hundreds of rows. Rows represent COLORS, columns are PAPER TYPE. I have entered the CATALOG Number for the intersection of Color and Paper Type. It took me a long time to fill in all the Catalog Numbers. Now that I'm finished I would like to create another spreadsheet, but this time with the Catalog Numbers down the left column and the Color inserted for the Paper Types. I don't want to have to manually recreate this spreadsheet. It will take hours more. Is there some kind of Excel function or formula that would automatically swap the Colors with the Catalog numbers keeping the Paper Type columns in the same place? I have posted a sample of my Excel spreadsheet as an example. Thanks in advance for your assistance.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Swap rows and columns automatically

    One way, in L3, copied down:

    =IFERROR(LOOKUP(2,1/(B3:J3<>""),B3:J3),"")

    and in M3, copied across and down:

    =IF(B3<>"",$A3,"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Swap rows and columns automatically

    You can use Transpose

    Ex:
    =TRANSPOSE(Sheet1!A1:J21)&""

    If using Excel 2010, follow direction in the link.
    https://support.microsoft.com/en-us/...9-4b6dfac76027

    If using Office 365, formula can be used as is, and will automatically fill range.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Registered User
    Join Date
    02-25-2021
    Location
    Petaluma, CA
    MS-Off Ver
    2010
    Posts
    2

    Re: Swap rows and columns automatically

    Thanks, Glen, but I am posting in the Beginners' forum. I am a rank beginner so I have no idea how to pull off what you suggested. I'm assuming I need to learn how to use formulas.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 11-01-2014, 09:34 PM
  2. [SOLVED] swap two columns from selection of three columns (not whole column)
    By jed38 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2013, 08:18 AM
  3. How to swap rows/columns??
    By Ima in forum Excel General
    Replies: 1
    Last Post: 09-22-2009, 11:02 PM
  4. Swap Columns A and B
    By opg in forum Excel General
    Replies: 1
    Last Post: 11-07-2008, 01:43 PM
  5. Swap Columns?
    By jcblinger in forum Excel General
    Replies: 3
    Last Post: 07-30-2008, 11:20 AM
  6. [SOLVED] swap rows and columns
    By rudyh in forum Excel General
    Replies: 3
    Last Post: 12-14-2005, 09:30 PM
  7. [SOLVED] How to swap rows and columns?
    By [email protected] in forum Excel General
    Replies: 5
    Last Post: 09-21-2005, 04:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1