Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default 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)

wrote in message
ups.com...
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   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default 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)

wrote in message
ups.com...
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   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default 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)

wrote in message
oups.com...

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)

wrote in message
ups.com...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zero values in a log chart Joelle_Smith Charts and Charting in Excel 2 May 8th 23 03:42 AM
linked values not displayed unless source file open Sandyc Excel Discussion (Misc queries) 1 October 7th 05 02:18 PM
How can I break values apart that are in the same cell? Phil Excel Worksheet Functions 3 October 4th 05 03:41 PM
Updating master workbook from source that may/may not exist [email protected] Excel Worksheet Functions 20 April 7th 05 03:37 PM
Second serie doesn't use X-as values JackRnl Charts and Charting in Excel 1 January 20th 05 01:04 AM


All times are GMT +1. The time now is 07:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"