+ Reply to Thread
Results 1 to 6 of 6

Lookup return values if meet criteria?

  1. #1
    Registered User
    Join Date
    11-29-2009
    Location
    New Zealand
    MS-Off Ver
    Excel 2011
    Posts
    3

    Lookup return values if meet criteria?

    Hi all,

    I have probably named this poorly, but I have an excel need I can't figure out (or explain too well!). I have a spreadsheet that contains a list of products in the rows (Cell D to be specific) Other information about each product exists in the columns on either side. From Column L onward I have columns with People's names as headers, and the quantity of each product they ordered. The spreadsheet is long, and lots of people have 0 for a lot of things.

    I would like to create two things-

    1 - a copy of the data for each member but with only the rows that have a number greater than 0 in.
    2 - a copy of the data but restricted just by the products that have at least one person to select, and include the order quantities for each person who ordered it.

    Thanks in advance- this forum is great!

    Mel

    Very basic idea of what I have:

    Product Person name (qty) Person (price calculated''0 Person name (qty) Person (price calculated''0 Person name (qty) Person (price calculated''0
    Product A 7 $7.00 0 $0.00 2 2
    Product B 8 $8.00 0 $0.00 12 $12.00
    Product C 15 $15.00 0 $0.00 0 2$0.00
    Product D 1 $1.00 0 $0.00 2 2
    Product E 7 $7.00 0 $0.00 5 $5.00
    Product F 6 $6.00 11 $11.00 0 $0.00

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Lookup return values if meet criteria?

    its possible a pivot table may help

    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    11-29-2009
    Location
    New Zealand
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Lookup return values if meet criteria?

    Hi - thanks - I had thought a pivot table, but I can't get it to work. I will create a cutdown version of my sheet and upload it - it is very large! Thanks

    Mel

  4. #4
    Registered User
    Join Date
    11-29-2009
    Location
    New Zealand
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Lookup return values if meet criteria?

    Hi - mock up file attached. Thanks
    Attached Files Attached Files

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Lookup return values if meet criteria?

    Thanks for the mock up - very useful , however, with the data the way its laid out - nothing comes to mind quickly
    hopefully another member may help - while i see if i can get a solution, but not simple for my knowledge

    Shame its not laid out differently, then a pivot table would create the summary and possibly the order form

  6. #6
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Lookup return values if meet criteria?

    Something like this? I used a helper column to make the formulas less messy.
    The formula in the helper column is an array formula, it has to be entered with Ctrl + Shift + Enter.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

+ 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. [SOLVED] Left Lookup to Return Multiple Values Given 2 Criteria
    By watchouse in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-11-2015, 08:41 AM
  2. [SOLVED] Lookup Values which meet two or more criteria and return multiple matches horizontally
    By josetmg in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-03-2015, 01:16 AM
  3. [SOLVED] How to return all corresponding values that meet 2 criteria in excel
    By sgw_73 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-18-2014, 10:49 AM
  4. [SOLVED] Equivalent of an index match but return all values that meet the criteria
    By Brumbot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2013, 04:32 AM
  5. [SOLVED] Array Formula to Lookup and Return All Rows in Table that Meet Single Criteria
    By Torkel74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2013, 10:41 PM
  6. Replies: 6
    Last Post: 05-18-2011, 02:03 PM
  7. Replies: 3
    Last Post: 11-03-2010, 04:05 AM

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