+ Reply to Thread
Results 1 to 4 of 4

Formula to return (where available) multiple values based on reference cell

  1. #1
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Formula to return (where available) multiple values based on reference cell

    Good evening Happy campers.

    Attached is a sheet showing in purple the raw data, and in blue the desired result.
    Now the names dont need to be in seperate cells, they can be in one cell but will need to seperated by a comma perhaps, and the layout can change if needs be.
    The real list is longer and will include more names, but also have surnames involved.

    So in short im looking for a formula that will return all names for a given course. (hope that makes sense)

    many thanks in advance, galvinpaddy
    Attached Files Attached Files

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

    Re: Formula to return (where available) multiple values based on reference cell

    Hi

    Try this in array formula

    If you on excel 97-2003

    Cell H2 =IF(ISERROR(INDEX($B:$B,SMALL(IF($A$2:$A$21=$G2,ROW($A$2:$A$21)),COLUMNS($H$2:H2)))),"",INDEX($B:$B,SMALL(IF($A$2:$A$21=$G2,ROW($A$2:$A$21)),COLUMNS($H$2:H2)))) Control+Shift+Enter. Then copy down and cross.

    If you on excel 2007-2010

    use this

    =IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$21=$G2,ROW($A$2:$A$21)),COLUMNS($H$2:H2))),"") Control+Shift+Enter. Then copy down and cross.
    Last edited by micope21; 05-08-2012 at 06:47 PM.
    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".

  3. #3
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Formula to return (where available) multiple values based on reference cell

    Many thanks fella, works a treat. (rep added)
    Could i be cheeky and ask you to explain why its an array and why it has to be confirmed using Control+Shift+Enter??

    galvinpaddy

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

    Re: Formula to return (where available) multiple values based on reference cell

    Hi

    Here the link to explain you clear.http://www.cpearson.com/excel/ArrayFormulas.aspx

    Please say so clearly, and mark your thread as Solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

    Good luck!

+ 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