+ Reply to Thread
Results 1 to 6 of 6

Vertical to Horizontal data

  1. #1
    Registered User
    Join Date
    04-23-2012
    Location
    Davie, FL
    MS-Off Ver
    Excel 2013
    Posts
    83

    Vertical to Horizontal data

    I have a lot of data that I need to change some cells from Vertical to Horizontal. I have been using the Copy, Paste Special, Transpose but I still would have to do this every client payment. Please see attached so you could see what Im talking about. I highlighted what I have been doing. Copying the 5 entries from the "Amount" column and pasting them horizontally with the Transpose option. As you can see, this report is huge. Is there an easier or quicker way to do this? Frustrated...
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,577

    Re: Vertical to Horizontal data

    In E7

    =INDEX($F$7:J7,ROW(A1)-MOD(ROW(A5),5),MOD(ROW(A5),5)+1) dragged down. You can then copy>paste special values to remove the formula

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    37,295

    Re: Vertical to Horizontal data

    @ChemistB: it was my understanding that the OP wanted to go FROM the vertical TO the horizontal.

    Copying the 5 entries from the "Amount" column and pasting them horizontally with the Transpose option
    I do believe your formula does the opposite of that. Nice though.

    Regards, TMS

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Vertical to Horizontal data

    How about this for row 419

    In F419: =IF(C419=C418,"",INDEX($E419:$E423,COLUMNS($F419:F419)))
    In G419: =IF($C419=$C418,"",IF(COUNTIF($C419:$C423,$C419)>COLUMN(A419),INDEX($E419:$E423,COLUMNS($F419:G419)),"")) drag this formula over to column J
    Now select F419:J419 and drag down as far as necessary
    This distributes the payments (max 5) consecutively across the 5 columns

    If there is a chance of more than 5 payments you'll need to change the lower cell ref in the INDEX() and COUNTIF() ranges - and drag further over

    EDIT: Yep, a lot of your names appear 6 times - so make the adjustments I mentioned - some names appear 12 times and I saw one that appears 18 times but it looks like they are duplicated, judging by the repeating payment amounts, and should possibly be pared down.
    Last edited by Cutter; 06-14-2012 at 07:57 PM.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,577

    Re: Vertical to Horizontal data

    Dang, I'm a chemist, I always get those vertical and horizontal things mixed up.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Vertical to Horizontal data

    We've got your back.

    Vertical = view of the world when sober
    Horizontal = doesn't matter, you've passed out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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