+ Reply to Thread
Results 1 to 8 of 8

Copy data from multiple sheets to one main based on cell value

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    Beaumont, TX
    MS-Off Ver
    Excel 2010
    Posts
    4

    Copy data from multiple sheets to one main based on cell value

    I am brand new to the world of macros. I work for an automotive dealer. We want to take the attached spreadsheet, and if the value under "progress" says "Sold" I want that row to be copied to the sheet "Main", but keeping the numbering system in tact in Column A. I hope this makes sense. I've been playing with this for about 2 weeks.

    Thanks
    Jason Mitchell
    Classic Beaumont
    409-924-3417
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Copy data from multiple sheets to one main based on cell value

    This thread shows how you can do that kind of thing using formulae:

    http://www.excelforum.com/excel-form...xed-value.html

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-28-2013
    Location
    Beaumont, TX
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Copy data from multiple sheets to one main based on cell value

    We have it setup the way it is in the original, as we need to keep up with each auction independently. Only a few vehicles sell at the given auction. It is a cool looking spreadsheet, but it is not functional for all purposes that I require. Thanks for help.

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Copy data from multiple sheets to one main based on cell value

    Do you delete the row where Sold is present from that origin sheet? If not, your macro have to look up for duplicate before copying.

    Where, in Main, should the row be copied? First empty row? Do you keep the original numbering in column A?
    Also, what do you mean by keeping the numbering intact in column A? Is it that when a row is deleted, the numbers should be reassigned from 1 to xxx?
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  5. #5
    Registered User
    Join Date
    05-28-2013
    Location
    Beaumont, TX
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Copy data from multiple sheets to one main based on cell value

    I do not want to delete the row from the origin page. it should copy to the next available row in the main. i would like them to be numbered in main 1-whatever..Thanks for the response.

    Jason

  6. #6
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Copy data from multiple sheets to one main based on cell value

    See attached file. You have to run the macro called Sold_Transfer. You can click on the Data menu and then on the Macros menu on the far right of the menubar. Then select the macro name and click on Execute.
    Here is the macro:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-28-2013
    Location
    Beaumont, TX
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Copy data from multiple sheets to one main based on cell value

    That is exactly what I was looking for. YOu are friggin awesome. One last question...is it possible to make this automated versus having to run the macro each time?

  8. #8
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Copy data from multiple sheets to one main based on cell value

    Here is the file modified to run when you open the workbook. Note that the macro was copied to the "ThisWorkbook" part of the VBEditor. and assing to the "OPEN" event.
    The macro is still available to be run manually in the module.

    Be advise that there are no test done on DUPLICATES. If you open this file each day and you do not erase the Sold cars in the various sheets, they will all be copied again into the Main sheet.
    If you run this only once a month, then no problem.
    Attached Files Attached Files

+ 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