+ Reply to Thread
Results 1 to 15 of 15

Extract names in a list, and present in order, based on qty criteria.

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Norway
    MS-Off Ver
    Excel Professional 2016
    Posts
    22

    Extract names in a list, and present in order, based on qty criteria.

    Hi,

    Explanations are also found in the spreadsheet.


    In a table I have several modes, with items and various quantities.
    When I choose a mode in a dropdown, then I want to present the relevant items for that mode, if they have a qty attached to it.

    Please no volatile functions or VBA.


    Hope you can help.

    Best regards,

    Trond Grimstad
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Extract names in a list, and present in order, based on qty criteria.

    I get by with the help of some helper columns.

    The first calculation is in Cell G1 that is the column number of the sub-table in columns C:F. We calculate that quantity once.

    Column G is filled in using the INDEX command against the sub table.

    Column H is used to determine if the value in column G is zero. If so, we don't want it in the pivot table. The pivot table is shown in columns S:V.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Extract names in a list, and present in order, based on qty criteria.

    No helpcells, with a counted field in the pivot table.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    01-07-2014
    Location
    Norway
    MS-Off Ver
    Excel Professional 2016
    Posts
    22

    Re: Extract names in a list, and present in order, based on qty criteria.

    Hi,

    Thank you for good proposals, but could we manage without the pivot?
    just with formulas in the blue table?


    Trond

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Extract names in a list, and present in order, based on qty criteria.

    what is the reason not using pivot table?

    it is a very powerfull tool which is expanded in every new version of Excel, so MS is telling us that is the way to go (future).

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Extract names in a list, and present in order, based on qty criteria.

    Item

    =IFERROR(INDEX($A$3:$A$8,SMALL(IF(OFFSET($A$3,0,MATCH($J$1,$B$2:$F$2,0),COUNTA($A$2:$A$8)-1,1)>0,ROW($A$3:$A$8)-ROW($A$3)+1,""),ROWS($A$3:A3))),"")

    Enter with Ctrl+Shift+Enter

    (OFFSET is "volatile") but I am not sure (don't know!) if it can be done any other way. You may need a helper column to avoid volatile/array functions if PIVOT tables are a "no-no".

    Unit Rate

    =INDEX($B$3:$B$8,MATCH($K3,$A$3:$A$8,0))

    Quantity

    =INDEX($B$3:$F$8,MATCH($K3,$A$3:$A$8,0),MATCH($J$1,$B$2:$F$2,0))

    Sum (!!)

    =L3*M3
    Last edited by JohnTopley; 06-23-2016 at 03:18 AM.

  7. #7
    Registered User
    Join Date
    01-07-2014
    Location
    Norway
    MS-Off Ver
    Excel Professional 2016
    Posts
    22

    Re: Extract names in a list, and present in order, based on qty criteria.

    oeldere,
    Thanks for help.
    Pivot is not the preferred solutions because this extract is part of a larger overview with several elements.
    Consideration related to design, user interface.


    Trond

  8. #8
    Registered User
    Join Date
    01-07-2014
    Location
    Norway
    MS-Off Ver
    Excel Professional 2016
    Posts
    22

    Re: Extract names in a list, and present in order, based on qty criteria.

    JohnTopley,

    Thanks for solution.
    As far as I can see now, this will be perfect.
    Thanks!

    Trond

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Extract names in a list, and present in order, based on qty criteria.

    If your problem has been solved can you mark the thread as such ("Thread Tools" at top of first post).

    Thank you for the feedback.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Extract names in a list, and present in order, based on qty criteria.

    Thank you for the feedback!

    It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

  11. #11
    Registered User
    Join Date
    01-07-2014
    Location
    Norway
    MS-Off Ver
    Excel Professional 2016
    Posts
    22

    Re: Extract names in a list, and present in order, based on qty criteria.

    JohnTopley,

    Do I understand the formula correct, that both tables need to be located on the same row?
    Is it possible to have the extracted list on a separate tab?

    Sorry for not being clear from the start.


    Trond

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Extract names in a list, and present in order, based on qty criteria.

    They can be on separate tabs and any range so you need to change the range reference accordingly.

    Try it and if you have problems post a file with your "live" ranges.

  13. #13
    Registered User
    Join Date
    01-07-2014
    Location
    Norway
    MS-Off Ver
    Excel Professional 2016
    Posts
    22

    Re: Extract names in a list, and present in order, based on qty criteria.

    After some testing, I understand it, and it works!

    Thanks!

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Extract names in a list, and present in order, based on qty criteria.

    Well done! Best way to learn is "DIY"

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Extract names in a list, and present in order, based on qty criteria.

    .. If you are OK with your results, can you mark thread as solved ("Thread Tools" at top of first post)

+ 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] Extract Items from a list with specifc criteria order
    By XLalbania in forum Excel General
    Replies: 6
    Last Post: 05-06-2016, 03:20 PM
  2. How to get names from a list based on multiple criteria
    By lloyd88 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-15-2016, 11:04 AM
  3. [Solved] Create list of names based on two criteria
    By travhan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-11-2015, 09:42 AM
  4. [SOLVED] Extract a sublist from a list based on criteria(s)
    By hcyeap in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-01-2015, 05:16 PM
  5. Generate list of names based on multiple criteria
    By mattadler22 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-03-2013, 06:02 PM
  6. [SOLVED] Extract entire rows from list based on criteria
    By Test123Test in forum Excel General
    Replies: 5
    Last Post: 04-29-2013, 09:28 AM
  7. [SOLVED] Extract unique values out of list based on an extra criteria
    By sven1975 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 05:02 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