+ Reply to Thread
Results 1 to 9 of 9

Search for Non-Duplicate Values Then Copy Row to Another Sheet

  1. #1
    Registered User
    Join Date
    03-21-2012
    Location
    Metro Manila, Phiippines
    MS-Off Ver
    Office 2007
    Posts
    77

    Search for Non-Duplicate Values Then Copy Row to Another Sheet

    Greetings!

    I am currently working in an automation with auto query data from a website. Now I have to make a vbcode automation that will search the entire column and then search for a non-duplicate/non-repeating values that were queried from website. let's say it's a new data inserted to the website. In our work, we have to query a what we called SR (Service Report) Numbers every hour, because there is a new SR being generated in the website hourly. What I want to do is isolate the new data being queried hourly and then copy it to the next sheet. [Why I can't attach a file? ]
    "Consummatum Est"

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Search for Non-Duplicate Values Then Copy Row to Another Sheet

    Hi

    With your Data, in Column A, try this.

    =IF(COUNTIF($A$1:$A$1000;A1)=1;"NON DUPLICATE";"DUPLICATE")

    Change semi=colons, to gomma, if you have to do this.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    03-21-2012
    Location
    Metro Manila, Phiippines
    MS-Off Ver
    Office 2007
    Posts
    77

    Re: Search for Non-Duplicate Values Then Copy Row to Another Sheet

    hi Fotis1991, is there any vba code that when I click the command button, it will execute the isolation of non-duplicate values and copy it to the other sheet?

  4. #4
    Registered User
    Join Date
    03-21-2012
    Location
    Metro Manila, Phiippines
    MS-Off Ver
    Office 2007
    Posts
    77

    Re: Search for Non-Duplicate Values Then Copy Row to Another Sheet

    here is the workbook sample,

    SR Worklist.xlsx

    in sheet "Group SR" are the data extracted from a web at time of 11AM and 12PM, in query at 11AM those highlighted in red are still not duplicate since it was the first query, therefore I can copy it to the next sheet named "Worklist", then in query at 12PM, another re query will be done, therefore since it will query again the whole table, a duplicate entry will now exist, thus highlighting duplicates in red, but at the end of the column are data that are not highlighted in red, which means new entry and still not duplicated, now what I try to do is copy this new unique entry and put it in the sheet "Worklist". In short, copy all new unique entries for every query that I will be done hourly. A vbcode that will do this in one click of command button.

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Search for Non-Duplicate Values Then Copy Row to Another Sheet

    try this
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-21-2012
    Location
    Metro Manila, Phiippines
    MS-Off Ver
    Office 2007
    Posts
    77

    Re: Search for Non-Duplicate Values Then Copy Row to Another Sheet

    Wow, the code works! Thank you very much nilem! I thought I won't be able to resolve this. I'm so glad that one part of my automation is complete.

  7. #7
    Registered User
    Join Date
    03-21-2012
    Location
    Metro Manila, Phiippines
    MS-Off Ver
    Office 2007
    Posts
    77

    Re: Search for Non-Duplicate Values Then Copy Row to Another Sheet

    Can I ask another question? I want to put the command button in the sheet "Worklist" where the new entries will be placed, what should i change in the code?

    SR Worklist.xlsm

  8. #8
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Search for Non-Duplicate Values Then Copy Row to Another Sheet

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    03-21-2012
    Location
    Metro Manila, Phiippines
    MS-Off Ver
    Office 2007
    Posts
    77

    Re: Search for Non-Duplicate Values Then Copy Row to Another Sheet

    thanks for the code, is there a way to disable the filter and clear the criterias without having the row1 deleted?, I have some important information stored in row1 like headers and other values referencing the userform to. I just want to retain all the values in cells of row1. thank you.

+ 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