+ Reply to Thread
Results 1 to 3 of 3

Move data from row to cell, but single cel to multiple cell.

  1. #1
    Registered User
    Join Date
    11-19-2012
    Location
    Stow, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    2

    Move data from row to cell, but single cel to multiple cell.

    I am taking data from one spreadsheet and condensing it so it can be imported in my software once a month. The "milesbytractorandstate" file is the source file and the "miles import" is what the finished file needs to be. I need to move all the data into four columns; UNIT, DATE, STATE, and MILES. Autofilling the STATES is easy, the DATE is always the first day of the month so it's easy, I have a macro to move all of the miles into a single column for all the units. The issue is figuring out how to populate the UNIT column. Every unit will always have 63 rows of miles since there will always be 63 STATES. At this point i'm not sure which route to take; do i need a formula, a macro, or is there a function i just can't think of. Thank you in advance.

    The meaty parts of my current process are as follows:
    I copy all of the source file and paste special (values,transpose) into the blank file with the macro. I delete to total miles row and highlight all of the miles and run the macro to move them all to one column. I create a STATE and DATE column. Now row A is all of the units and i need to move them to a column.
    Attached Files Attached Files
    Last edited by puckaveli; 11-20-2012 at 08:51 AM.

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

    Re: Move data from row to cell, but single cel to multiple cell.

    hi puckaveli, welcome to Excelforum, VB option, please check attachment, run code "test"

    PS. Date is the first day of the current month and current year
    Attached Files Attached Files
    Last edited by watersev; 11-20-2012 at 05:49 AM.

  3. #3
    Registered User
    Join Date
    11-19-2012
    Location
    Stow, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Move data from row to cell, but single cel to multiple cell.

    That is perfect!! Thank you so much.

+ 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