Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Not sure what function to use to return records that fit criteria

Ok here is what I want to do:
I have a sheet called 'Raw data' that has all my records in it. Then I have
three other sheets that each will be linked to 'raw data' but will only
contain specific records based on a field in 'Raw data'. For example raw
data sheet will look like this:

Name Type
john A
mike B
jerry C
Sarah --
Janet B

etc....

So I want sheet A to only give me the records that are Type 'A' (John in
this example)
I want sheet B to only give me the records that are Type 'B' (Mike & Janet
in this example)
I want sheet C to only give me the records that are Type 'C' (Jerry in this
example)

If a record in 'Raw data' sheet has neither A, B or C, then i don't want it
in any of my sheets.

How would I do this? Is it a Lookup or could I use an IF function?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Not sure what function to use to return records that fit criteria

Name and Type are defined name ranges.


In Sheet A:

=IF(ISERR(SMALL(IF(Type="A",ROW(INDIRECT("1:"&ROWS (Name)))),ROWS($1:1))),"",INDEX(Name,SMALL(IF(Type ="A",ROW(INDIRECT("1:"&ROWS(Name)))),ROWS($1:1) )))

ctrl+shift+enter, not just enter
Copy down as far as needed

In Sheet B:

Copy the formula to Sheet B and change the criteria "A" to "B"
ctrl+shift+enter, not just enter
copy down as far as needed

and so on...


"Roy Bernal" wrote:

Ok here is what I want to do:
I have a sheet called 'Raw data' that has all my records in it. Then I have
three other sheets that each will be linked to 'raw data' but will only
contain specific records based on a field in 'Raw data'. For example raw
data sheet will look like this:

Name Type
john A
mike B
jerry C
Sarah --
Janet B

etc....

So I want sheet A to only give me the records that are Type 'A' (John in
this example)
I want sheet B to only give me the records that are Type 'B' (Mike & Janet
in this example)
I want sheet C to only give me the records that are Type 'C' (Jerry in this
example)

If a record in 'Raw data' sheet has neither A, B or C, then i don't want it
in any of my sheets.

How would I do this? Is it a Lookup or could I use an IF function?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Not sure what function to use to return records that fit crite

Thanks, I will try this...

"Teethless mama" wrote:

Name and Type are defined name ranges.


In Sheet A:

=IF(ISERR(SMALL(IF(Type="A",ROW(INDIRECT("1:"&ROWS (Name)))),ROWS($1:1))),"",INDEX(Name,SMALL(IF(Type ="A",ROW(INDIRECT("1:"&ROWS(Name)))),ROWS($1:1) )))

ctrl+shift+enter, not just enter
Copy down as far as needed

In Sheet B:

Copy the formula to Sheet B and change the criteria "A" to "B"
ctrl+shift+enter, not just enter
copy down as far as needed

and so on...


"Roy Bernal" wrote:

Ok here is what I want to do:
I have a sheet called 'Raw data' that has all my records in it. Then I have
three other sheets that each will be linked to 'raw data' but will only
contain specific records based on a field in 'Raw data'. For example raw
data sheet will look like this:

Name Type
john A
mike B
jerry C
Sarah --
Janet B

etc....

So I want sheet A to only give me the records that are Type 'A' (John in
this example)
I want sheet B to only give me the records that are Type 'B' (Mike & Janet
in this example)
I want sheet C to only give me the records that are Type 'C' (Jerry in this
example)

If a record in 'Raw data' sheet has neither A, B or C, then i don't want it
in any of my sheets.

How would I do this? Is it a Lookup or could I use an IF function?


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 only 1 record w/ multiple records? Cam Excel Discussion (Misc queries) 2 February 28th 08 10:22 PM
Return Unique Records ... No Blanks Ken Excel Discussion (Misc queries) 4 September 6th 07 04:31 AM
Don't want to return blank records MarkN Excel Worksheet Functions 2 September 6th 06 10:41 PM
Is there a way to return records? rayteach Excel Worksheet Functions 7 April 2nd 06 07:27 PM
return multiple records matching multiple criteria Karthik Excel Worksheet Functions 2 March 22nd 06 04:42 PM


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