+ Reply to Thread
Results 1 to 22 of 22

Move row data to correct tab if Serial Number is not in the tab

  1. #1
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Move row data to correct tab if Serial Number is not in the tab

    Hello,

    Here's what I am trying to do with this spreadsheet project, please review the attachment for more detail and understanding!

    On the "Master" tab, I would paste in the newest information received from our system weeklywhich is around 2600 rows.
    I want to then compare the Master sheet to the other tabs and if there is a new Serial Number present in column I, then add that row of data to the next available row at the bottom to the correct tab.

    The Orange tabs Fleet Volume PC, Fleet Volume BW, Fleet Volume Duplex will house all countries and all serial numbers but Fleet Volume Color tab will only have Color Serial Numbers for all countries, column J on the Master tab.

    So, the same will goes for the USA Volume and CAN Volumes tab, only those serial numbers for that country will falls in these tabs and color only will go in the color tabs. There are 14 other tabs missing from this workbook with other countries, just removed to keep size of file within limits.

    From my workbook, rows 29 to 33 on the Master tab are new serial numbers.

    Also, I want to highlight the data on the Master, after comparing this Master tab to the other tabs and within the Master highlight in yellow the cells that have new updated information!

    I hope I have explained myself well!!
    Attached Files Attached Files
    ==========
    Bigroo1958
    Austin, Texas
    ==========

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi Bigroo,

    I notice that the "tabs" column A has numbers in it - how are those numbers assigned??
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi XLAdept,

    These numbers are used to return the rows back to original order when sorting is used, they have no other significance really!!

  4. #4
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Move row data to correct tab if Serial Number is not in the tab

    Bump!
    anyone??

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Move row data to correct tab if Serial Number is not in the tab

    @Bigroo,

    So - do I leave them blank???

  6. #6
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi XLAdept,

    Yes, that will be fine!!

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi Bigroo,

    Try this:

    Please Login or Register  to view this content.

    *I needed to Capitalize "CAN" on the penultimate sheet
    Last edited by xladept; 04-24-2014 at 07:26 PM.

  8. #8
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi XLAdept,

    I really appreciate what you have done here, it works as expected and on the first go round, FANTASTIC!!

    all the tabs update but the "CAN Volume Color" does not add the new serial number, this line 30 on the Master Tab.

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi Bigroo,

    You need to change that tab name so that "Can" is all caps - but I've been playing with it are you happy with the highlighting?

  10. #10
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi XLAdept,

    Thanks, that did fix it!!

    You need to change that tab name so that "Can" is all caps - but I've been playing with it are you happy with the highlighting?
    I did not see any highlighting on anywhere, do you have it within the code block?

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi Bigroo,

    I've got a bad habit of editing my posts - but the highlighting on the current post is unsatisfactory shall I pursue it??

  12. #12
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi XLAdept,

    Yes, I would like to see highlighting as I outlined within my original post!
    Please pursue this very me!

  13. #13
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi Bigroo,

    This version satisfies this condition:

    Also, I want to highlight the data on the Master, after comparing this Master tab to the other tabs and within the Master highlight in yellow the cells that have new updated information!

    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi XLADept,

    Thanks for the updated code block, very much appreciate your efforts.
    The highlighting is still not showing on the Master tab, I see where you have added the coding for this part. I even changed the data on the Master tab to show there is a difference in the data but still not luck.

    How do I change the code to look at additional tabs that do not have a country name within the sheet name.
    For example CORP and GPS, is it a matter of adding the sub procedure to include the additional tabs.

    Please Login or Register  to view this content.
    Thanks again!!

  15. #15
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi Bigroo,

    The routine will ignore anything that has been processed - to test the new code you'll need to delete all the latest entries on every tab.

    Where are CORP and GPS are they only in the tab name?

    Maybe:

    Please Login or Register  to view this content.
    Here's what I've got:BigRoo.xlsx

  16. #16
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi XLAdept,

    Ok, so I have being clearing out my data that was added to the bottom of each tab before running the code. OK, so I found what I was doing wrong, my bad. It works great.

    No, these tabs were not on the workbook I posted, these were some the tabs I removed. The Tab name is the same as the others, Volume PC, Volume BW, Volume Color but with either CORP or GPS in the beginning of the tabs name.
    The problem is CORP and GPS at the moment is not listed under the Region or Country column on the master so, I don't see how to populate these tabs with any new Serial Numbers. I will look into this, but I may just have to go with what you have put together for me.

  17. #17
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi XLAdept,

    I have posted my workbook you have been helping me with. Since I am learning VBA, I understand a little, could you add comments to your code so I can understand your thoughts and methods, it will help me along!!

    Thanks
    Attached Files Attached Files

  18. #18
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi Bigroo,

    Try this on your full book:

    Please Login or Register  to view this content.

  19. #19
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi XLAdept,

    Thanks so much, I am pleased with the end result, you have given me a time-saver option.
    Thanks for your time and effort, really appreciated!!

  20. #20
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Move row data to correct tab if Serial Number is not in the tab

    You're welcome and thanks for the rep!
    Last edited by xladept; 04-25-2014 at 09:12 PM.

  21. #21
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Move row data to correct tab if Serial Number is not in the tab

    It is showing as Solved!
    You are not seeing this?

  22. #22
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Move row data to correct tab if Serial Number is not in the tab

    Hi Bigroo,

    Sorry, I guess there was an inexplicable delay - yes, it shows as solved now

    *I fixed that post
    Last edited by xladept; 04-25-2014 at 09:12 PM.

+ 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. Move column data from a master to correct worksheet in same workbook
    By sagemm1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 07:08 PM
  2. Merge data with inventory serial number
    By tedgraniou in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-08-2012, 03:37 AM
  3. Overwrite the advanced filtered data serial number column with unique number
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-15-2012, 12:38 AM
  4. [SOLVED] data move to correct day of week
    By g48dd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-03-2011, 04:15 PM
  5. Finding a serial number in a list of serial numbers
    By zocoloco in forum Excel General
    Replies: 2
    Last Post: 02-04-2009, 05:20 AM

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