+ Reply to Thread
Results 1 to 4 of 4

Selecting Various Values for One Source

  1. #1

    Selecting Various Values for One Source

    Hi. Hope someone can help me with this. Here's what I am trying to do.
    I have a list of managers and their direct reports. I would like to
    select 3 of that manager's direct reports from the list. Is there a
    way to do this using IF statement?
    Thanks!


  2. #2
    Bob Phillips
    Guest

    Re: Selecting Various Values for One Source

    =INDEX($B$1:$B$10,SMALL(IF($A$1:$A$10="A",ROW($A$1:$A$10)),1))

    =INDEX($B$1:$B$10,SMALL(IF($A$1:$A$10="A",ROW($A$1:$A$10)),2))

    =INDEX($B$1:$B$10,SMALL(IF($A$1:$A$10="A",ROW($A$1:$A$10)),3))

    which is an array formula, it should be committed with Ctrl-Shift-Enter, not
    just Enter.

    --

    HTH

    Bob Phillips

    (replace xxxx in the email address with gmail if mailing direct)

    <[email protected]> wrote in message
    news:[email protected]...
    > Hi. Hope someone can help me with this. Here's what I am trying to do.
    > I have a list of managers and their direct reports. I would like to
    > select 3 of that manager's direct reports from the list. Is there a
    > way to do this using IF statement?
    > Thanks!
    >




  3. #3

    Re: Selecting Various Values for One Source


    Thanks, Bob. Tried it but nothing happened. Please forgive my
    illiteracy, but I assume that I am including all 3 strings at one time.
    Is that correct? Thanks.

    Bob Phillips wrote:
    > =INDEX($B$1:$B$10,SMALL(IF($A$1:$A$10="A",ROW($A$1:$A$10)),1))
    >
    > =INDEX($B$1:$B$10,SMALL(IF($A$1:$A$10="A",ROW($A$1:$A$10)),2))
    >
    > =INDEX($B$1:$B$10,SMALL(IF($A$1:$A$10="A",ROW($A$1:$A$10)),3))
    >
    > which is an array formula, it should be committed with Ctrl-Shift-Enter, not
    > just Enter.
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > <[email protected]> wrote in message
    > news:[email protected]...
    > > Hi. Hope someone can help me with this. Here's what I am trying to do.
    > > I have a list of managers and their direct reports. I would like to
    > > select 3 of that manager's direct reports from the list. Is there a
    > > way to do this using IF statement?
    > > Thanks!
    > >



  4. #4
    Bob Phillips
    Guest

    Re: Selecting Various Values for One Source

    No, that gets the three values into separate cells.

    --

    HTH

    Bob Phillips

    (replace xxxx in the email address with gmail if mailing direct)

    <[email protected]> wrote in message
    news:[email protected]...
    >
    > Thanks, Bob. Tried it but nothing happened. Please forgive my
    > illiteracy, but I assume that I am including all 3 strings at one time.
    > Is that correct? Thanks.
    >
    > Bob Phillips wrote:
    > > =INDEX($B$1:$B$10,SMALL(IF($A$1:$A$10="A",ROW($A$1:$A$10)),1))
    > >
    > > =INDEX($B$1:$B$10,SMALL(IF($A$1:$A$10="A",ROW($A$1:$A$10)),2))
    > >
    > > =INDEX($B$1:$B$10,SMALL(IF($A$1:$A$10="A",ROW($A$1:$A$10)),3))
    > >
    > > which is an array formula, it should be committed with Ctrl-Shift-Enter,

    not
    > > just Enter.
    > >
    > > --
    > >
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (replace xxxx in the email address with gmail if mailing direct)
    > >
    > > <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Hi. Hope someone can help me with this. Here's what I am trying to

    do.
    > > > I have a list of managers and their direct reports. I would like to
    > > > select 3 of that manager's direct reports from the list. Is there a
    > > > way to do this using IF statement?
    > > > Thanks!
    > > >

    >




+ 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