+ Reply to Thread
Results 1 to 8 of 8

Search a string of info and return mutliple results

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    Lexington, KY
    MS-Off Ver
    2007
    Posts
    29

    Search a string of info and return mutliple results

    Not the best way to describe this one...

    Column O contains the names of operators that recur down the list.
    Column P contains the dates that they must perform duties

    The chart to the right wants to capture all the dates that each operator is assigned duties so they may easily see when they "on." So, operator A would look in the highlighted row and know when they are working.
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Search a string of info and return mutliple results

    SOmething like this? Using Array Formulas (you need to press CTRL-SHIFT-ENTER button together, not ENTER alone) and copied down and cross
    Attached Files Attached Files

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Search a string of info and return mutliple results

    Try this array formula** entered in S4:

    =IFERROR(INDEX($P:$P,SMALL(IF($O$4:$O$51=$R4,ROW(O$4:O$51)),COLUMNS($S4:S4))),"")

    Format as Date

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down to S13 then across until you get a column full of blanks.
    Last edited by Tony Valko; 07-18-2014 at 09:47 PM. Reason: correct spelling typo
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    07-18-2014
    Location
    Lexington, KY
    MS-Off Ver
    2007
    Posts
    29

    Re: Search a string of info and return mutliple results

    That is just about it. The only issue that I had was that the first date entered would not change when the operator was changed.

    I've attached a new spreadsheet without all the extraneous stuff. I left the formulas in place and they now have a #ref error due to the missing columns, which brings up a question: What does the reference, $A$1:A1 for instance, at the end of the formula do for the formula? A1 did not seem to me to be of any importance since it did not seem relevant to the desired result. Clearly, I was wrong! I would like to understand that, though.
    Attached Files Attached Files

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Search a string of info and return mutliple results

    Quote Originally Posted by slindfors View Post
    What does the reference, $A$1:A1 for instance, at the end of the formula do for the formula?
    Not sure who you're replying to...

    There is no reference to $A$1:A1 in my suggestion so apparently you're not replying to me.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Search a string of info and return mutliple results

    Please find the attached sheet.

    In D4 I have used another Array Formula to extract the sorted unique Names, so you don't need to manually type them.

    In D4
    Please Login or Register  to view this content.
    And corrected the formula in E4 like this......
    Please Login or Register  to view this content.
    See if this is what you are trying to achieve.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  7. #7
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Search a string of info and return mutliple results

    May be something like in the attachment...
    Attached Files Attached Files
    Click just below left if it helps, Boo?ath?

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Search a string of info and return mutliple results

    Here's your file from post #1 with the formula added.

    Forum Example IV.1.xlsx

+ 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. Search...Return...give info based on the return address
    By deek1004 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-11-2012, 03:36 PM
  2. Search column for string and return every row with that string in new sheet
    By myers601 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2012, 06:02 PM
  3. to return Mutliple results with one search item
    By Bald Ben in forum Excel General
    Replies: 2
    Last Post: 01-14-2011, 04:44 PM
  4. Replies: 8
    Last Post: 01-03-2011, 04:19 AM
  5. Replies: 2
    Last Post: 02-26-2008, 03:22 PM

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