+ Reply to Thread
Results 1 to 4 of 4

Display Vertical Data on one horizontal line

  1. #1
    Registered User
    Join Date
    04-01-2011
    Location
    Stamford, CT
    MS-Off Ver
    Excel 2003
    Posts
    31

    Display Vertical Data on one horizontal line

    Hello,

    First, thanks for helping! Attached is a small spreadsheet that shows a rent roll for an apartment. It shows the unit number, then various charges and amounts in the columns and rows next to the unit.

    As you can see, the unit number is not next to every charge. I want to be able to easily translate the charges for each unit number into one horizontal row of data like below:

    Unit Rent Garage Concession
    01-0151 910 100 165-

    Right now, I just use an if statement, and then i manually move everything into the single row so I can copy and paste to a new spreadsheet. It takes WAY too long, so I'm hoping there's a code I can add to the spreadsheet to get this all done.

    Please Help! I get these rent rolls with 450 units and it's a hassle and very time consuming to do manually.

    Thanks!

    James
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Display Vertical Data on one horizontal line

    hi DMBeer41, VB option, please check attachment, press "Run"
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Display Vertical Data on one horizontal line

    long code option if number of charges is unknown
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-01-2011
    Location
    Stamford, CT
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Display Vertical Data on one horizontal line

    Test 2.xlsx

    Works great for the small sheet I attached before. However, I get an error when I apply it to the new attachment below. It's a lengthy list, but I don't know code well enough to be able to figure out why it stops. Seems to stop when n=48.

    Can you help?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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