+ Reply to Thread
Results 1 to 2 of 2

Creating a list of numbers based on two other lists

  1. #1
    Registered User
    Join Date
    10-31-2009
    Location
    Beirut, Lebanon
    MS-Off Ver
    Excel 2007
    Posts
    4

    Creating a list of numbers based on two other lists

    Hi All,

    I have a list of households (sheet 1) from which I have selected around 10% into sheet 2. I would like to create a third sheet that includes all the numbers not selected into the second sheet. I will send the file as soon as I hear from anyone especially that I am not able to attach anything right now.

    Regards,
    Afamia

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating a list of numbers based on two other lists

    I would suggest adding a column with this formula in sheet1, starting in row 2:

    =IF(ISNUMBER(MATCH(A2, Sheet2!A:A, 0)), "Used", "Unused")


    Then you can run an AutoFilter on that column for the word "Unused" and copy all the values left visible to Sheet3.

    You should be able to code that into a macro without too much difficulty. You can use my Skype link (up to the right) to send me a file if you have trouble with that.
    _________________
    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!)

+ 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