Closed Thread
Results 1 to 3 of 3

Remove duplicate IF...

Hybrid View

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    78

    Remove duplicate IF...

    Hi-

    I have a long list of names in column A, with the date they called us in column B. We run incentive programs for specific months. If they called within that specific time frame they get a gift card. The dates of the incentive change depending on which company I am running the report for.
    When i run the report, i run it for the length of the incentive program. ie 1/1/2013- 4/30/2013.. but when i am making the report for april, i would need to make sure the list is filtered down to only include people that have called the for the first time in april.

    So I need a macro that will 1- ask me the date range that is acceptable for people to have called (such as 4/1/2013 - 4/30/2013, 2- search through column A and find out if the name has a duplicate outside that date range, 3- delete all rows within the list that included that name if they have called outside the specified range.

    So i should be left with just a list of the names that have called within the month I specified and have not called before then. I tried filtering but with the length of my list it is too time consuming. I can't remove duplicated because i need to know if they have called before and when i remove dups they all look like unique callers.

    I'm somewhat new to macros so if you could explain the steps the macro takes that would be helpful for my progress in learning.

    Thanks in advance!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Remove duplicate IF...

    Hello thebka,

    Welcome to the Forum!

    Posting your workbook is the quickest way to get answer to your problem. People are not inclined to recreate your work just to test it.

    This will provide all the information needed to accurately develop and test your solutions and provides you with the quickest turnaround time.
    If your workbook contains sensitive information please redact it before posting.

    To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.

    File Manger Picture
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Remove duplicate IF...

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed 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