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 Find text in another worksheet when multiple criteria are met

Hello All. I am trying to pull employee's names from one worksheet
to
another but only if they are active and work in a particular
location.

Column A: Active or Inactive status
Column B: Location
Column G: EE Name


Here is what I have tried:


=Index('CPC Roster'!G2:G5,Match(1,('CPC Roster'!A2:A5="Active")*('CPC
Roster'!B2:B5="BURBANK"),0))


This sort of works except when it comes to a name that is not active
it repeats the name above until it reaches an active one.


I've also tried:


=LOOKUP(2,1/('CPC Roster'!A2:A10="Active")/('CPC Roster'!
B2:B10="BURBANK"),'CPC Roster'!G2:G10)


For some reason this skipped a handful of people in the first few
rows
and still repeated names.


What I really need it to do is only bring over the active employees
and skip the inactive employees. Does anyone have any suggestions?
Thanks so much.


--Michelle
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Find text in another worksheet when multiple criteria are met

The easiest way would be to autofilter on "active" and "location" then
simply copy/paste the results.

This could be done with an array formula but whether it's practical depends
on how many rows of data need to be searched and how many records will meet
these conditions. If it's 1000's of rows of data a formula solution would
not be practical.

--
Biff
Microsoft Excel MVP


wrote in message
...
Hello All. I am trying to pull employee's names from one worksheet
to
another but only if they are active and work in a particular
location.

Column A: Active or Inactive status
Column B: Location
Column G: EE Name


Here is what I have tried:


=Index('CPC Roster'!G2:G5,Match(1,('CPC Roster'!A2:A5="Active")*('CPC
Roster'!B2:B5="BURBANK"),0))


This sort of works except when it comes to a name that is not active
it repeats the name above until it reaches an active one.


I've also tried:


=LOOKUP(2,1/('CPC Roster'!A2:A10="Active")/('CPC Roster'!
B2:B10="BURBANK"),'CPC Roster'!G2:G10)


For some reason this skipped a handful of people in the first few
rows
and still repeated names.


What I really need it to do is only bring over the active employees
and skip the inactive employees. Does anyone have any suggestions?
Thanks so much.


--Michelle



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 do I find multiple text in diff cells in another worksheet? Kristin Excel Worksheet Functions 2 January 25th 08 09:43 PM
Find duplicates in data with multiple criteria Danielle Excel Discussion (Misc queries) 1 December 14th 07 03:56 PM
SUM with multiple numeric and text criteria mcdc01 Excel Discussion (Misc queries) 2 January 24th 07 09:21 PM
find minimum of range based on multiple criteria Weissme Excel Worksheet Functions 3 May 21st 06 05:21 PM
INTRICATE PROBLEM- How to find multiple text,excluding "H", in a multiple range of cells, then replacing 0 with another number in another cell Tourcat Excel Worksheet Functions 1 February 8th 05 06:26 PM


All times are GMT +1. The time now is 04:30 AM.

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"