+ Reply to Thread
Results 1 to 3 of 3

Returning a multiple-result lookup to a single cell

  1. #1
    Registered User
    Join Date
    10-07-2008
    Location
    London
    Posts
    39

    Returning a multiple-result lookup to a single cell

    I have data in the following format:

    Week, Orders
    15, order1
    15, order2
    16, order3
    16, order4
    17, order5
    17, order6
    17, order7

    I wish to lookup which orders are due in each week, returning the results to a single cell for each week, eg

    Week, Orders
    15, order1 order2
    16, order3 order4
    17, order5 order6 order7

    I can return it to multiple cells with an array formula; do I need to continue down that path and gather those results somehow, or is there a better way of going about this?
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Returning a multiple-result lookup to a single cell

    i think you'd have to use that array and then concantanate the results
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

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

    Re: Returning a multiple-result lookup to a single cell

    First, install the special Concatentation UDF into your sheet:
    Please Login or Register  to view this content.
    1. Open up your workbook.
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. Get out of VBA (Press Alt+Q)
    6. Save your sheet.
    Now, setup your chart. Over in column C, enter your chart:

    Please Login or Register  to view this content.
    The formula to use is shown in D2 above. Enter that and copy down.
    _________________
    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