+ Reply to Thread
Results 1 to 7 of 7

Multiple returns in-line

  1. #1
    Registered User
    Join Date
    05-09-2012
    Location
    A
    MS-Off Ver
    Excel 2010
    Posts
    11

    Multiple returns in-line

    Hi All,

    I have a question similar to the below post, however I can't seem to get it working for me in excel tables to make the process more "editable friendly".

    http://www.excelforum.com/excel-gene...ence-cell.html

    Document I'm working on:
    HSE Register.xlsx

    What I am aiming for is:
    "Actions" (Sheet 1 - Column I) is to be a locked cell with the formula.
    It is to return the following:
    IF "ID" (Sheet 1 - Column A) is equal to "Ref ID" (Sheet 2 - Column B)
    Then it would return the corresponding "Action ID" (Sheet 2 - Column A) to "Actions" (Sheet 1 - Column I) in-line separated by a comma e.g. Actions would = A01, A02.

    It seems simple enough, I'm just not having much luck.

    I would appreciate any help on the matter.

    Thanks.

    GS

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Multiple returns in-line

    =INDEX(Table5,MATCH(A2,INDEX(Table5,,2),0),4)

    see attachment.

    Took me a moment to look through your tables... you might want to look over this blog entry. I like creating my own dynamic ranges to function like your tables (process described in the blog)...don't know the exact pros/cons of doing it this way.

    http://www.excelhero.com/blog/2011/0...ing-index.html


    hse....oilfield related by chance?
    Attached Files Attached Files
    Last edited by GeneralDisarray; 05-09-2012 at 09:52 AM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    05-09-2012
    Location
    A
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Multiple returns in-line

    Not quite it, but thanks GeneralDisarray.

    I have modified the attachment to show the result I am looking for.
    The purpose of the formula is to automatically track the "Action ID" numbers assigned to items.
    e.g. Pumps are a problem(Item) - I assign actions to fix the item (A01, A02). When the actions have been entered into the Action Register they automatically appear in the Item Register (as shown in the attachment). So one item may have many actions assigned to it, this is just a way of tracking them.

    I hope that makes sense.

    Thanks.

    HSE Register2.xlsx

  4. #4
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Multiple returns in-line

    i'll have to think about that one...see what you are after, would be easy to do with VBA if that option is OK (seems easiest to do with a macro enabled workbook using a user-defined-function). is that a good option for you? would you be able to use this with macros enabled?

  5. #5
    Registered User
    Join Date
    05-09-2012
    Location
    A
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Multiple returns in-line

    What ever is the easiest way to make it happen. I'm not that up on VBA or Macros in excel but if it works it works.

    Thanks.

  6. #6
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Multiple returns in-line

    Attachment demos this solution -- NOTE you will need to enable macro content in order for the UDF (user-defined-function) to work.

    The code below will help you remember what to enter into the function and in what order: Look in the I column to see how this UDF was implemented in the worksheet.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-09-2012
    Location
    A
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Multiple returns in-line

    Thanks GeneralDisarray. Just what I was looking for!

+ 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