+ Reply to Thread
Results 1 to 3 of 3

Need a formula to convert to columns to two rows

  1. #1
    Registered User
    Join Date
    09-18-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    2

    Question Need a formula to convert to columns to two rows

    Need a formula to convert TWO columns to two rows:

    I have two columns like this:

    Column A Column B
    Apple Red
    Mango Green
    Banana Yellow

    I want a formula to convert it like this:

    Column A Column B
    Apple
    Red
    Mango
    Green
    Banana
    Yellow

    I mean the text at the second column should come at the row below the corresponding row of at 1st column. And this should go on for 35000 rows.

    Any help would be much appreciated! Thank you!
    Last edited by Learner326; 09-18-2014 at 05:50 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need a formula to convert to columns to two rows

    one way
    =INDEX(A:B,CEILING(ROWS($A$1:A1)/2,1),MOD(ROWS($A$1:A1)-1,2)+1)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-18-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    2

    Re: Need a formula to convert to columns to two rows

    Thanks a MILLION martindwilson! You just made my day! It is working like a charm!


    Thank you soooooooooooooooooooo much.......................

+ 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: 1
    Last Post: 11-29-2012, 06:24 PM
  2. [SOLVED] to convert columns to rows having mulit independent group columns
    By Quacy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2006, 06:25 PM
  3. Formula to convert/transpose columns to rows (and vice versa)
    By markx in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-10-2005, 11:06 AM
  4. Convert rows to Columns
    By Irina in forum Excel General
    Replies: 1
    Last Post: 02-11-2005, 02:44 PM
  5. Can I convert columns to rows?
    By Adam@Penda in forum Excel General
    Replies: 3
    Last Post: 01-11-2005, 04:06 PM

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