+ Reply to Thread
Results 1 to 7 of 7

Subtracting data from a list?

  1. #1
    Registered User
    Join Date
    02-23-2011
    Location
    Ottawa, Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Subtracting data from a list?

    Hi all, new member here.

    I'm working with a query tool that generates lists of data and exports to Excel worksheets. A certain query I'm working on right now returns a list of over 2700 line items, and each of these items needs to be examined manually...

    Based on a search criteria, I'm able to use a filter to query a list of over 700 items that are part of the original query, but do not need any attention.

    Question: How can I subtract the ~700 items in the second query from the original query list? Each query exported to Excel generates a new worksheet. No, the query tool does not have the ability to filter out these line items on its own.

    Thanks!

    P.S. I'm not a deeply skilled user, so I need things in layman's terms!

    EDIT: Each query outputs a new workbook, not a worksheet.
    Last edited by Blue Angel; 02-23-2011 at 09:29 AM.

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Subtracting data from a list?

    Hi there Blue and welcome to the forum.

    Sometimes (and this is one of them) it would be of great use to upload a sample of your data. Make sure you demonstrate your desired output (ie where youwant the results to go and what they should look like)

    from the sounds of it you may need lookup, index match, ect ect....! if you upload- you will be sure to achieve your desired result.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Registered User
    Join Date
    02-23-2011
    Location
    Ottawa, Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Subtracting data from a list?

    Thanks for the quick reply!

    Because of the nature of the data I'm working on I can't actually upload anything real, but I can give you a very simple scenario that hopefully will suffice.

    I have Excel open and have two workbook windows visible, book1 and book 2.

    Book 1 is a list of numbers in column A:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    Book 2 is also a list in column A:

    2
    3
    6
    8
    9

    I need Excel to subtract the line items from book 2 from those in book 1 so I have:

    1
    4
    5
    7
    10

    This is a very basic example, and in my case each of these line items is a "part number" that has 24 columns of data next to it. If it's easier to work "sheet to sheet" than "book to book" the data in book 2 could easily be copied to a sheet in book 1.

  4. #4
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Subtracting data from a list?

    not quite sure I get it - also, as I previously mentioned, a workbook sample is ALWAYS better, as if your helper wants to test something he/she has to type out the data for his/her self unless its a guru helping and they dont need to use a spreadsheet.

    Do you want a simple list of part numbers that appear in book one which don't appear in book 2?

  5. #5
    Registered User
    Join Date
    02-23-2011
    Location
    Ottawa, Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Subtracting data from a list?

    Quote Originally Posted by Blake 7 View Post
    Do you want a simple list of part numbers that appear in book one which don't appear in book 2?
    Yes, exactly! Any numbers appearing in book 2 are numbers that already exist in book 1 and don't need to be there; removing them (or filtering them out somehow) will reduce the size of a HUGE task.

    I'm working with a very simple query tool that has almost NO flexibility when it comes to sorting/limiting its output.

  6. #6
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Subtracting data from a list?

    hiya - going to put my son to bed.

    I'll show you a way to achieve this in an hour (i hope)

  7. #7
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Subtracting data from a list?

    Hiya - please see the attachment.

    Method 1 =MATCH(A2,B:B,0) where an #NA appears it means that the part num in book 1 doesn't appear in book 2.

    Method 2 =COUNTIF(B:B,A2) where a 0 appears it means that the part num in book 1 doesn't appear in book 2.

    Method 4 =ISERROR(MATCH(A1,B:B)) with this one you put into the conditional formatting and it will highlight in colour anything in book one not in book two.

    Once you have done this you can simply filter on the #NA's or 0's ect and cut or paste,

    Is this what youare after?
    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)

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