# Vertical to Horizontal data

1. ## 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...

2. ## 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?

3. ## 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. ## Re: Vertical to Horizontal data

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.

5. ## Re: Vertical to Horizontal data

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

6. ## Re: Vertical to Horizontal data

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

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