Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default How to retrieve multiple rows with one criteria

Hi,

I have more than 1000 rows of data and the very first column has more than
100 values (i.e. Pencil shows in Cell A2, A18, A95, A357 and a number, 100,
shows in Cell A5, A58, A754, A951 and the rest of values has similar entries
in different cells in the first column.

I am trying to get the all the rows of data with Pencil in the first column
when I type Pencil in a cell.
Vlookup doesn't work since it only takes the very first cell that has Pencil.
Filter doesn't work well since there are two many values to choose from.

How do I set up a formula that retrieves a multiples rows of data with the
same one criteria in the first column?

Thanks,

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default How to retrieve multiple rows with one criteria

Create yourself a new "Helper-Column" Titled "Select?" (say M4) and in (1st
data row = 5) enter

=IF(A5="Pencil","S","")

and Copy down all 1000 + rows.

Then Auto_Filter on Column M selecting only S





"James" wrote:

Hi,

I have more than 1000 rows of data and the very first column has more than
100 values (i.e. Pencil shows in Cell A2, A18, A95, A357 and a number, 100,
shows in Cell A5, A58, A754, A951 and the rest of values has similar entries
in different cells in the first column.

I am trying to get the all the rows of data with Pencil in the first column
when I type Pencil in a cell.
Vlookup doesn't work since it only takes the very first cell that has Pencil.
Filter doesn't work well since there are two many values to choose from.

How do I set up a formula that retrieves a multiples rows of data with the
same one criteria in the first column?

Thanks,

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default How to retrieve multiple rows with one criteria

James,

Use Autofilter or Advanced filter.

--
Earl Kiosterud
www.smokeylake.com

Note: Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------
"James" wrote in message
...
Hi,

I have more than 1000 rows of data and the very first column has more than
100 values (i.e. Pencil shows in Cell A2, A18, A95, A357 and a number, 100,
shows in Cell A5, A58, A754, A951 and the rest of values has similar entries
in different cells in the first column.

I am trying to get the all the rows of data with Pencil in the first column
when I type Pencil in a cell.
Vlookup doesn't work since it only takes the very first cell that has Pencil.
Filter doesn't work well since there are two many values to choose from.

How do I set up a formula that retrieves a multiples rows of data with the
same one criteria in the first column?

Thanks,



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default How to retrieve multiple rows with one criteria

You could do this with programming and an advanced filter or AutoFilter.
There's a sample there that uses and Advanced Filter to create a list
when a criterion is typed in a cell:

http://www.contextures.com/excelfiles.html

Under Filters, look for FL0002 - Product List by Week Number

James wrote:
Hi,

I have more than 1000 rows of data and the very first column has more than
100 values (i.e. Pencil shows in Cell A2, A18, A95, A357 and a number, 100,
shows in Cell A5, A58, A754, A951 and the rest of values has similar entries
in different cells in the first column.

I am trying to get the all the rows of data with Pencil in the first column
when I type Pencil in a cell.
Vlookup doesn't work since it only takes the very first cell that has Pencil.
Filter doesn't work well since there are two many values to choose from.

How do I set up a formula that retrieves a multiples rows of data with the
same one criteria in the first column?

Thanks,



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default How to retrieve multiple rows with one criteria

You could (to make it simplier) make Cell M1 the Input Cell for what you want
to Select at any point-in-time.

You'll have to change the formula to:

=IF(A5=$M$1,"S","") ' and Copy down replacing previous formula

Hope this helps...
Jim


"JMay" wrote:

Create yourself a new "Helper-Column" Titled "Select?" (say M4) and in (1st
data row = 5) enter

=IF(A5="Pencil","S","")

and Copy down all 1000 + rows.

Then Auto_Filter on Column M selecting only S





"James" wrote:

Hi,

I have more than 1000 rows of data and the very first column has more than
100 values (i.e. Pencil shows in Cell A2, A18, A95, A357 and a number, 100,
shows in Cell A5, A58, A754, A951 and the rest of values has similar entries
in different cells in the first column.

I am trying to get the all the rows of data with Pencil in the first column
when I type Pencil in a cell.
Vlookup doesn't work since it only takes the very first cell that has Pencil.
Filter doesn't work well since there are two many values to choose from.

How do I set up a formula that retrieves a multiples rows of data with the
same one criteria in the first column?

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
How to retrieve multiple values in multiple rows with one criteria bac Excel Discussion (Misc queries) 2 June 15th 07 08:57 PM
retrieve multiple results with one criteria... [email protected] Excel Discussion (Misc queries) 1 January 15th 07 04:37 PM
Retrieve multiple data rows data from a very long list and copy t mathew Excel Discussion (Misc queries) 1 September 13th 06 08:24 PM
Summing Rows with Multiple Criteria Reggie Mitchell Excel Worksheet Functions 2 December 15th 05 07:29 AM
How can I retrieve multiple rows that match one criteria, i.e. a d Morgs Excel Worksheet Functions 3 September 1st 05 03:19 PM


All times are GMT +1. The time now is 11:22 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"