Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Miriam
 
Posts: n/a
Default How can I retreive rows from one column?

My Ex:
Sheet 1
A B
1 100
2 5
6 12
2 200
I need in another sheet ,When I write 2 i can retreive 5 , 200 , ........
A B
2 5
200

I can't do it with LookUp Equations.

Thanks,
Waiting for reply
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default How can I retreive rows from one column?

Assumptions:

Sheet1!A1:B4 contains your source data

Sheet2!A1 contains your criteria, such as 2

Formula:

Sheet2!B1, copied down:

=IF(ROWS(B$1:B1)<=COUNTIF(Sheet1!$A$1:$A$4,$A$1),I NDEX(Sheet1!$B$1:$B$4,S
MALL(IF(Sheet1!$A$1:$A$4=$A$1,ROW(Sheet1!$B$1:$B$4 )-ROW(Sheet1!$B$1)+1),R
OWS(B$1:B1))),"")

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
Miriam wrote:

My Ex:
Sheet 1
A B
1 100
2 5
6 12
2 200
I need in another sheet ,When I write 2 i can retreive 5 , 200 , ........
A B
2 5
200

I can't do it with LookUp Equations.

Thanks,
Waiting for reply

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default How can I retreive rows from one column?

You might be interested in the Data Filter AutoFilter feature..........

Vaya con Dios,
Chuck, CABGx3



"Domenic" wrote:

Assumptions:

Sheet1!A1:B4 contains your source data

Sheet2!A1 contains your criteria, such as 2

Formula:

Sheet2!B1, copied down:

=IF(ROWS(B$1:B1)<=COUNTIF(Sheet1!$A$1:$A$4,$A$1),I NDEX(Sheet1!$B$1:$B$4,S
MALL(IF(Sheet1!$A$1:$A$4=$A$1,ROW(Sheet1!$B$1:$B$4 )-ROW(Sheet1!$B$1)+1),R
OWS(B$1:B1))),"")

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
Miriam wrote:

My Ex:
Sheet 1
A B
1 100
2 5
6 12
2 200
I need in another sheet ,When I write 2 i can retreive 5 , 200 , ........
A B
2 5
200

I can't do it with LookUp Equations.

Thanks,
Waiting for reply


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
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Need rows in Column A removed if they fully or partially match with any Column B row [email protected] Excel Discussion (Misc queries) 1 August 21st 05 11:41 PM
Question regarding how to search a column and print a row(s) Max Excel Discussion (Misc queries) 0 July 15th 05 04:14 AM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
moving alternating rows to a column with the order staying the sam Duke Carey Excel Discussion (Misc queries) 0 April 27th 05 09:51 PM


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

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

About Us

"It's about Microsoft Excel"