+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    07-01-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Red face Sort/Remove Script?

    Hey guys, I'm from a Laptop Repair Company. Sorry to barge in here and ask for help randomly, but any suggestions would be greatly greatly appreciated. I post mostly on Actionscript forums to help others using AS3.0, so if you have a question there I could definitely help you lol

    I have 2 .xls documents with customer contact information. One has a list of old contacts I need to remove which is about 3k this list contains only email addresses. The other contains the full list of Customers this list is about 11k this contains everything from first/last name to billing and email addresses.

    My goal is to double check to see which addresses are just typos and which are non-working.

    I will need to go through the list line by line but better to only go through 3000 than 11000. So, I need to somehow remove all of the good addresses from the full list using the bad address list which is only 3k long.

    Any suggestions on where to start?

    ~Rossco
    Last edited by rosscoloco; 07-05-2009 at 01:32 AM.

  2. #2
    Registered User
    Join Date
    07-01-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Sort/Remove Script?

    Still kind of banging my head against the wall here!

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    MSO2007 on WinXP/MSO2000 on Win7
    Posts
    1,958

    Re: Sort/Remove Script?

    Post a sample workbook(s) that shows the exact layout of your data; but with sensitive info dummied out. First thoughts are that you can copy/paste the short list into an unused area in the long list and use Conditional Formatting to highlight those values in the long list that match (hint) values in the short list.
    ---
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    07-01-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Sort/Remove Script?

    Here is a sample of what I have.

    Customers1.xls

    There are 2 workbooks in the file. One contains the customer's information, the other is the list of emails that are not valid.

    I do emails to our past customers who subscribe to our newsletter, and I got 3k bounces, so I want to go through those, check to see if it is a simple typo, or remove them so I don't get 3k bounces - but I don't want to simply remove 3k customers from my list.

    I'd like to make sure you don't think I am a spammer - these are for subscribed customers who WANT to get our emails.

    This highlighting method sounds like a great idea. That would help me soooooo much.

    I'm really unsure how to write that script, though. Could you perhaps point me in the right direction? I've programmed before, but am unfamiliar with Excel syntax(although catch on quickly to new languages).

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    MSO2007 on WinXP/MSO2000 on Win7
    Posts
    1,958

    Re: Sort/Remove Script?

    Customers1.xls >> 404 URL NOT FOUND!

    Please post your workbook directly to the forum (use the paperclip icon from the toolbar). If it is more than 1MB in size (it shouldn't be that large), you will have to zip it first.
    ---
    Ben Van Johnson

  6. #6
    Registered User
    Join Date
    07-01-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Sort/Remove Script?

    Sorry, I had a lower case C in the link name..... I didn't see the attach link my bad

    Here it is:Customers1.xls

    Here is the same but on my website: Customers1.xls

  7. #7
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Sort/Remove Script?

    on your customer list
    in a a spare column starting in row 2
    =ISNUMBER(MATCH(L2,ToCheck!$A$2:$A$3000,0))
    and drag down
    any match found will return true adjust A$2:$A$3000, to fit the range on your real list
    you can then autofilter on true and delete visible rows
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Registered User
    Join Date
    07-01-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Sort/Remove Script?

    Customers1.xls

    I did what you ask, but didn't get the results - it's saying FALSE even though the statement is true...... I must be missing something here.

    is

    =ISNUMBER(MATCH(L2,ToCheck!$P$2:$P$3000,0))

    not right?

  9. #9
    Registered User
    Join Date
    07-01-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Sort/Remove Script?

    My bad, I figured it out. It's not searching through the List, it's looking through the file or worksheet.

    I got it all working, and THANK YOU ALLL!!!!!

  10. #10
    Registered User
    Join Date
    07-01-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Sort/Remove Script?

    So, for anyone who searched this problem and finds it later,

    =ISNUMBER(MATCH(L2,ToCheck!$A$2:$A$3000,0))

    If your excel file only has 1 workbook, it will ask you for another xls file when you paste these in. Have a separate .xls file and then it will go through it. ToCheck! apparently goes to another database - it will by default use another workbook in the .xls, but if there is only 1 workbook, it will prompt you to find another file.

    Works like a charm - saved myself looking through 2000 records switching screen by screen.........thank god!

    I LOVE U GUYS!

    SOLVED!

  11. #11
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    18,222

    Re: Sort/Remove Script?

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  12. #12
    Registered User
    Join Date
    07-01-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Sort/Remove Script?

    Done! SOLVED!

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.2.0