Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Excel help needed

I have 2 columns A and B containing these values in sheet 1.

Teamleader Teammembers
John A
Derick B
John C
Derick D

In sheet 2 i will be just entering the team leaders name and I want a
formula in only in 1 cell that would pull up the corresponding team members
names to appear vertically.

ie: If I enter John in sheet2 Cell A1 then B1 and B2 should autopopulate
with value "A" & "C"

Any help is appreicated, thanks in advance.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel help needed

One easy play which might appeal to you ..

Assume source table in Sheet1's cols A & B, data from row2 down

In Sheet2,
Input for the teamleader is in A2, eg: John

In B2:
=IF(Sheet1!A2="","",IF(Sheet1!A2=$A$2,ROW(),""))
Leave B1 blank

In C2:
=IF(ROWS($1:1)COUNT(B:B),"",INDEX(Sheet1!B:B,SMAL L(B:B,ROWS($1:1))))
Copy B2:C2 down to cover the max expected extent of source data in Sheet1.
Minimize col B. Col C will return the desired results for the input in A2, ie
the listing of team members, with all lines neatly bunched at the top.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---
"Vinod Lewis" wrote:
I have 2 columns A and B containing these values in sheet 1.

Teamleader Teammembers
John A
Derick B
John C
Derick D

In sheet 2 i will be just entering the team leaders name and I want a
formula in only in 1 cell that would pull up the corresponding team members
names to appear vertically.

ie: If I enter John in sheet2 Cell A1 then B1 and B2 should autopopulate
with value "A" & "C"

Any help is appreicated, thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel help needed

Here's a working sample for the easy play suggested earlier:
http://freefilehosting.net/download/3l28k
Filter over in other sht.xls
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Excel help needed

Thank you max, this what i wanted. If you could explain the formula it would
be a great help.

Thanks once again.


"Max" wrote:

Here's a working sample for the easy play suggested earlier:
http://freefilehosting.net/download/3l28k
Filter over in other sht.xls
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel help needed

"Vinod Lewis" wrote:
Thank you max, this what i wanted.


Welcome. Pl click the Yes buttons (like the ones below), won't you?

If you could explain the formula it would be a great help


Here's some explanation ..

In Sheet2,

Col B is the criteria col. It flags source lines which satisfy the criteria,
ie where the team leader is equal to the name input in A2, with arbitrary row
numbers via ROW(). These arb numbers will then be read by the "float-up"
formulas in col C.

In Col C
SMALL(B:B,ROWS($1:1)) returns the smallest number in col B in the top cell
in C2, the 2nd smallest in C3, and so on. ROWS($1:1) is the incrementer term
used in copying down, it simply returns the numbers: 1,2,3 ... in successive
cells as we copy down.

The returns from SMALL are passed to: INDEX(Sheet1!B:B, ..)
which then retrieves the corresponding names from Sheet1!B:B

The front IF check: IF(ROWS($1:1)COUNT(B:B),"", ...)
ensures that neat looking blanks: "" are returned (instead of ugly #NUM!s)
once all the arb row numbers are exhausted in col C. COUNT(B:B) provides the
threshold here, it returns the count of the number of arb row numbers in col
B.


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Excel help needed

Thank you very much, that explains the whole formula.

"Max" wrote:

"Vinod Lewis" wrote:
Thank you max, this what i wanted.


Welcome. Pl click the Yes buttons (like the ones below), won't you?

If you could explain the formula it would be a great help


Here's some explanation ..

In Sheet2,

Col B is the criteria col. It flags source lines which satisfy the criteria,
ie where the team leader is equal to the name input in A2, with arbitrary row
numbers via ROW(). These arb numbers will then be read by the "float-up"
formulas in col C.

In Col C
SMALL(B:B,ROWS($1:1)) returns the smallest number in col B in the top cell
in C2, the 2nd smallest in C3, and so on. ROWS($1:1) is the incrementer term
used in copying down, it simply returns the numbers: 1,2,3 ... in successive
cells as we copy down.

The returns from SMALL are passed to: INDEX(Sheet1!B:B, ..)
which then retrieves the corresponding names from Sheet1!B:B

The front IF check: IF(ROWS($1:1)COUNT(B:B),"", ...)
ensures that neat looking blanks: "" are returned (instead of ugly #NUM!s)
once all the arb row numbers are exhausted in col C. COUNT(B:B) provides the
threshold here, it returns the count of the number of arb row numbers in col
B.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel help needed

Glad it helped. Do take a moment to click the Yes button below.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---
"Vinod Lewis" wrote:
Thank you very much, that explains the whole formula.


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
Excel help needed. Mr QA Man Excel Discussion (Misc queries) 2 April 14th 07 10:34 AM
Excel VBA Help Needed Sammer52 Excel Discussion (Misc queries) 2 January 8th 07 10:29 PM
Excel Help Needed!!! hbjay Excel Worksheet Functions 3 January 9th 06 04:05 AM
Excel Help Needed Matt Excel Worksheet Functions 1 January 5th 06 04:21 PM
help needed with excel 97 sithlord3k New Users to Excel 2 September 23rd 05 05:15 PM


All times are GMT +1. The time now is 02:21 AM.

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"