Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 846
Default Formula to create a list of people who qualify

I am trying to create a list of employees who meet a criteria and would like
the names to be added to another list in a new excel sheet.

Employee name is in cell A2:A100
Criteria is in cell d2:d100

criteria is less than -3%

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formula to create a list of people who qualify


Lets say your Employees and criteria are on sheet1 then go to
INSERTNAMESDEFINE give it the name Under3 and add this in the formula
box *=OFFSET('Sheet1'!$B$2,0,0,COUNTA('Sheet1'!$B:$B), 1) *then enter
this in sheet2 A2
*=IF(ISERROR(SMALL(IF(Under3=$A$1,ROW('Sheet1!$A$2 :$A$100)-MIN(ROW('Sheet1'!$A$2:$A$100))+1,""),ROW(A1))),"", INDEX('Sheet1'!$A$2:$A$100,SMALL(IF(Under3=$A$1,RO W('Sheet1'!$A$2:$A$100)-MIN(ROW('Sheet1'!$A$2:$A$100))+1,""),ROW(A1))))*
and commit the ARRAY formula using Ctrl+Shift+Enter, it must be done
this way, you will then see curly brackets at the beginning and end of
the formula, once you have done this simply copy down, now all you need
to do is enter your criteria in Sheet2 A1.


Brad;259091 Wrote:
I am trying to create a list of employees who meet a criteria and would
like
the names to be added to another list in a new excel sheet.

Employee name is in cell A2:A100
Criteria is in cell d2:d100

criteria is less than -3%

Thanks!



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=72354

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula to create a list of people who qualify

Some thoughts:

=IF(ISERROR(SMALL(IF(Under3=$A$1,ROW('Sheet1!$A$2: $A$100)-MIN(ROW('Sheet1'!$A$2:$A$100))+1,""),ROW(A1))),"", INDEX('Sheet1'!$A$2:$A$100,SMALL(IF(Under3=$A$1,RO W('Sheet1'!$A$2:$A$100)-MIN(ROW('Sheet1'!$A$2:$A$100))+1,""),ROW(A1))))

The error trap can be written like this which is much more efficient and a
lot shorter:

=IF(ROWS(A$2:A2)<=COUNTIF(Under3,$A$1),INDEX(...), "")

Instead of calculating an array of offsets:

ROW('Sheet1'!$A$2:$A$100)-MIN(ROW('Sheet1'!$A$2:$A$100))+1

You can calculate a single offset like this:

SMALL(IF(Under3=$A$1,ROW($A$2:$A$100)),ROW(A1))-MIN(ROW($A$2:$A$100))+1

Using ROWS(A$1:A1) is more robust than using ROW(A1). ROW(A1) is more
vulnerable to row insertions which could "break" the formula. For example,
if you insert a new row 1 ROWS(A$1:A1) becomes ROWS(A$2:A2) and still
evaluates to 1 but ROW(A1) becomes ROW(A2) which evaluates to 2 and now
you'll miss the first instance of the criteria.

--
Biff
Microsoft Excel MVP


"Simon Lloyd" wrote in message
...

Lets say your Employees and criteria are on sheet1 then go to
INSERTNAMESDEFINE give it the name Under3 and add this in the formula
box *=OFFSET('Sheet1'!$B$2,0,0,COUNTA('Sheet1'!$B:$B), 1) *then enter
this in sheet2 A2
*=IF(ISERROR(SMALL(IF(Under3=$A$1,ROW('Sheet1!$A$2 :$A$100)-MIN(ROW('Sheet1'!$A$2:$A$100))+1,""),ROW(A1))),"", INDEX('Sheet1'!$A$2:$A$100,SMALL(IF(Under3=$A$1,RO W('Sheet1'!$A$2:$A$100)-MIN(ROW('Sheet1'!$A$2:$A$100))+1,""),ROW(A1))))*
and commit the ARRAY formula using Ctrl+Shift+Enter, it must be done
this way, you will then see curly brackets at the beginning and end of
the formula, once you have done this simply copy down, now all you need
to do is enter your criteria in Sheet2 A1.


Brad;259091 Wrote:
I am trying to create a list of employees who meet a criteria and would
like
the names to be added to another list in a new excel sheet.

Employee name is in cell A2:A100
Criteria is in cell d2:d100

criteria is less than -3%

Thanks!



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile:
http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=72354



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
print an envelope from my list of people on excell dotcav Excel Worksheet Functions 1 December 14th 06 03:45 PM
How to send email to a list of people in excel sheet? David Excel Discussion (Misc queries) 1 December 14th 06 12:46 AM
How do I randomize a list of 20 people? Ken P Excel Discussion (Misc queries) 2 August 8th 06 10:36 PM
How to create a table to qualify a qty discount in exel 1image New Users to Excel 2 October 12th 05 03:41 PM
How do I create a timeline using people and their years of birth . KCH Charts and Charting in Excel 0 April 11th 05 05:07 AM


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