+ Reply to Thread
Results 1 to 4 of 4

Multiple criteria lookup functions

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    78

    Multiple criteria lookup functions

    Hi,

    I've attached a sample of the data I'm using.

    I have two spreadsheets (the samples for which I have shown side by side in Sheet 1 of the attached file).

    Spreadsheet 1 is about 30,000 rows and too large for me to change the formatting and structure.

    Spreadsheet 2 is the output I need and the format is required by other stakeholders.


    In spreadsheet 1 I want to sum quantity in stock for Type 1, Type 2 and Type 3 for each product and allocate it to spreadsheet 2 according to the month in which the product expires. For example, there will be a total of 92 units of product 413302 which will expire in Nov, 2014. Therefore I want 92 to be placed in cell N6 of Spreadsheet 2.


    Unfortunately the product number is not unique - there are multiple sub products in spreadsheet 1 but they all have the same quantities of stock. The sub products are referenced in other parts of the report so I can't consolidate by Product Number. This also prevents me from using the SUMIFS function as it will duplicate the number found in the sub products.

    What I need, perhaps in a combination of functions, is to find the first instance of product 413302 in Spreadsheet 1 that is expiring in Nov 14, sum the product types and give the result in cell N6 of Spreadsheet 2.

    Let me know if there is something I haven't explained properly. The answer is probably simple and I just can't see it.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Multiple criteria lookup functions

    The first thought that came to mind is that if all of the product 413302 references have the same quantity you could use averageif, eg it doesn't matter if the product number appears 2 or 20 times, the average will still be 92.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Multiple criteria lookup functions

    I used this in J6 of your sample file:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Multiple criteria lookup functions

    Hi

    J6
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy cross and down

    Spreadsheet 1 you put in 31/07/2014=Jul-14
    Spreadsheet 2 You put in 01/07/2014=Jul-14

    This won't work!!
    So I change Spreadsheet 1 to 01/07/2014=Jul-14

    Now it work!!

    See the file.

    Regard
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

+ 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. IF and LOOKUP with multiple nested IF functions
    By hydraulicwave in forum Excel General
    Replies: 9
    Last Post: 05-29-2014, 10:55 AM
  2. Combining multiple functions>lookup/sum functions
    By mush106 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-22-2013, 07:47 AM
  3. [SOLVED] Help with multiple IF functions and possible lookup functions.
    By englishfellow in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-29-2013, 01:49 PM
  4. Replies: 1
    Last Post: 05-16-2011, 05:00 PM
  5. Multiple range lookup functions.
    By VinceValdez12 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-13-2007, 03:57 PM

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