+ Reply to Thread
Results 1 to 4 of 4

Need Macro to check each line of data set for duplicate values

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    2

    Need Macro to check each line of data set for duplicate values

    Greetings,

    I tried over /r/Excel for help, but with no success, since they find it too hard and time consuming. You can check the thread ( reddit /r/excel/comments/8bgiwl/macro_to_filter_each_line_check_duplicates_make/ )

    Because I have no answer for my problems, and I have limited knowledge of VBA, I'm still thinking of ways to make it easier for me to get there.

    I have uploaded the Data here: ufile dot io/twymv - still junior here.

    My solution to the problem is in Sheet 1. I want to create a loop for every Destination, filter it in first sheet, copy the header and the Destination data, transpose paste in second sheet, sort it on the second column, and apply the formulas next to it - basically they check if they are the same, if positive, then add a very small number, if not, keep it. Then I need to do a second loop, until the cell on D1 is 0. If it is, then copy the column G and paste it on the first sheet. Then move to the next Destination and repeat the process.

    Anyone able to help?

    Thanks in advance.
    Attached Files Attached Files
    Last edited by goncalo182; 04-19-2018 at 05:06 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Need Macro to check each line of data set for duplicate values

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Need Macro to check each line of data set for duplicate values

    Welcome to the Forum, goncalo182,

    How to attach a sample workbook.

    Make sure there is just enough data to demonstrate your need.

    Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Registered User
    Join Date
    03-11-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Need Macro to check each line of data set for duplicate values

    Updated with File.

    thanks for the tip, I forgot about this feature.
    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)

Similar Threads

  1. Replies: 1
    Last Post: 09-22-2015, 02:47 AM
  2. [SOLVED] macro to check for duplicates and copy data if no duplicate found
    By lwayl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2015, 01:31 AM
  3. Check for duplicate values within the same worksheet
    By aashishd233 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2013, 03:34 PM
  4. Macro to Duplicate Line + Transpose Data
    By flarel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2012, 05:07 AM
  5. how to check if a row has duplicate values
    By luv2glyd in forum Excel General
    Replies: 3
    Last Post: 03-22-2010, 09:00 AM
  6. [SOLVED] Check for duplicate values?
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-09-2006, 12:35 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