+ Reply to Thread
Results 1 to 7 of 7

Excel Macro To Move Data Horizontally from Vertically Organized....

  1. #1
    Registered User
    Join Date
    05-22-2009
    Location
    Southampton, NY
    MS-Off Ver
    Excel 2003
    Posts
    29

    Excel Macro To Move Data Horizontally from Vertically Organized....

    Ok, so I have a list of customers organized in vertical format (don't ask, they came that way).. Anyway, each customer has (9) cells of data on them. So basically A1 is NAME, A2 is TYPE, A3 is ADD1, A4 is ADD2, A5 is CONTACT, A6 is TITLE, A7 is EMAIL, A8 is PHONE, A9 is FAX. Now, from what I gather, every contact has the same amount of data.. so, A1-A9 is customer 1, A10-A18 is customer 2, A19-27, and so on.. So, multiples of 9 here.


    What macro would do this for me..? Take 9 cells, lay them horizontally in A1, then go to A10-A18, lay horizontally, etc... I can deal with all the blank rows in the end if need be, but I just want to figure out how to do this...

    Thanks!

    Also, on another note.. I find myself coming here trying to figure this stuff out on my own.. and this is something that we'll probably be doing relatively frequently... Is there a freelance position that would handle this..? Would it be a database person?

    Thanks again!

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Excel Macro To Move Data Horizontally from Vertically Organized....

    Try this code
    Please Login or Register  to view this content.
    Results will be in Column B as start point
    After that you can delete column A and blank rows ..

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Excel Macro To Move Data Horizontally from Vertically Organized....

    Use this code to delete column A and balnk rows
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-22-2009
    Location
    Southampton, NY
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Excel Macro To Move Data Horizontally from Vertically Organized....

    Awesome! Thanks.. All the way from Egypt! ;c) Turns out the data isn't exactly uniform after all.. I'm wondering.. Is there a way to have the code use the cell in CAPS as an identifier of the new line of data? Know what I mean?

  5. #5
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Excel Macro To Move Data Horizontally from Vertically Organized....

    Can you post a sample workbook?

  6. #6
    Registered User
    Join Date
    05-22-2009
    Location
    Southampton, NY
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Excel Macro To Move Data Horizontally from Vertically Organized....

    Hey Stephen,
    I actually got it figured out, by simply running the code until I found the error (8 instead of 9 rows to an entry, etc)... Thank you for offering your assistance though! I almost would post a sample here to simply figure out how to do it... Here is what I was trying to do

    NAME
    cell1
    cell2
    cell3
    cell4
    cell5
    NAME
    cell1
    cell2
    cell3
    NAME
    cell1
    cell2
    cell3
    cell4

    I wanted to be able to separate each entry, starting with the CAPS as the identifier of a new entry. I wonder if this is enough info..?

  7. #7
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Excel Macro To Move Data Horizontally from Vertically Organized....

    Code could search for upper case specifically if required.

+ 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. [SOLVED] transpose and consolidate data horizontally to vertically
    By Excel_learner in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2014, 03:50 PM
  2. [SOLVED] Importing Excel Files & Copying Data Horizontally (instead of vertically) Help!
    By WinNuke95 in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 01-22-2014, 10:11 AM
  3. Excel 2007 : Merging data horizontally vs. vertically
    By enhydra in forum Excel General
    Replies: 4
    Last Post: 12-12-2010, 06:16 PM
  4. [SOLVED] Move cells vertically to horizontally
    By Abe in forum Excel General
    Replies: 1
    Last Post: 03-22-2005, 11:07 PM
  5. A tough one! line up vertically/horizontally through data
    By djvice in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2005, 04:32 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