Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
MikeR-Oz
 
Posts: n/a
Default extracting data by a criteria ? IF this , then That?

AS a teacher I have two columns - 1 with childrens names the 2nd cloumn has
scores.

I want to be able to extract those children by name who have scored within a
range of marks or < a mark or scored a set mark etc and have this shown in a
report or area of the spreadsheet.

Possible?

ALSO can those children who meet the criteria have the original cells with
their 2 columns automatically change colour ? as a way of highlighting them?

Thanks
for your assistance
Mike
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Bob Phillips
 
Posts: n/a
Default extracting data by a criteria ? IF this , then That?

Mike,

Assuming the names are in A, and the scores in B, then select a number of
cells in another column, and then in the formula bar, enter this formula

=IF(ISERROR(SMALL(IF(($B$1:$B$2020)*($B$1:$B$20<= 40),ROW($A1:$A20),""),ROW(
$A1:$A20))),"",
INDEX($A$1:$A$20,SMALL(IF(($B$1:$B$2020)*($B$1:$B $20<=40),ROW($A1:$A20),"")
,ROW($A1:$A20))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

This will test for all students with a score of 21-40.

You can highlight the originals using conditional formatting using a formula
of

=COUNTIF(E:E,$A1)0

assuming that you put the formula in columen E


--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"MikeR-Oz" wrote in message
...
AS a teacher I have two columns - 1 with childrens names the 2nd cloumn

has
scores.

I want to be able to extract those children by name who have scored within

a
range of marks or < a mark or scored a set mark etc and have this shown in

a
report or area of the spreadsheet.

Possible?

ALSO can those children who meet the criteria have the original cells with
their 2 columns automatically change colour ? as a way of highlighting

them?

Thanks
for your assistance
Mike



  #3   Report Post  
Posted to microsoft.public.excel.newusers
Stefi
 
Posts: n/a
Default extracting data by a criteria ? IF this , then That?

Use Data/Autofilter/Custom!
E.g.
scored within a range of marks: = lower limit
and
<= upper limit
etc.

ALSO can those children who meet the criteria have the original cells with
their 2 columns automatically change colour ? as a way of highlighting them?


Use Formatting/Conditional formatting:
If criterium is Score =3 then Cell value =3 and choose a color!

Regards,
Stefi

  #4   Report Post  
Posted to microsoft.public.excel.newusers
MikeR-Oz
 
Posts: n/a
Default extracting data by a criteria ? IF this , then That?

Thanks Stefi- very good.

I have managed to work out the basics of Auto Filter and Custom filter
within this Auto Filter


Coluumn A has say six childrens names and Col B has scores 4,5,3,6,7,6. I
have been able to identify those children with say <+5 OK but struggling with
ADvanced Filters where in I want to have these filtered children that match
the criteria copied onto another area of the Sheet say E1. I cannot work this
out - can you explain a little clearer than the Excel Help?

Also I cannot seem to get the conditional formatting to bring the original
columns to a say Blue colour if thaey make the <+ criteria.

More assistance?
Thanks
Mike

"Stefi" wrote:

Use Data/Autofilter/Custom!
E.g.
scored within a range of marks: = lower limit
and
<= upper limit
etc.

ALSO can those children who meet the criteria have the original cells with
their 2 columns automatically change colour ? as a way of highlighting them?


Use Formatting/Conditional formatting:
If criterium is Score =3 then Cell value =3 and choose a color!

Regards,
Stefi

  #5   Report Post  
Posted to microsoft.public.excel.newusers
Stefi
 
Posts: n/a
Default extracting data by a criteria ? IF this , then That?

Hi Mike,

copying onto another area of the Sheet say E1:
Your original table:
A B
1 name score
2 name1 4
3 name2 5
4 name3 3
5 name4 6
6 name5 7
7 name6 6

Above your original table place these new rows getting the following table:
1 name score
2 <5
3 name score
4 name1 4
5 name2 5
6 name3 3
7 name4 6
8 name5 7
9 name6 6

Fill in the Custom filter dialog box as follows:
Check Option button Copy to another place
List range: $A$4:$B$10 (place the cursor in the field and select these
cells)
Filter range: $B$1:$B$2 -"-
Copy to: $E$1 -"-
Click OK

conditional formatting to bring the original columns to a say Blue colour if
they make the <+5 criteria.

Select range A5:B9
Bring up Conditional formatting

Select Formula (on the left side of the box)
Type =$B5<5 as the formula
Select a color
Click OK

Regards,
Stefi



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
Inserting a new line in spreadsheet Rental Man Excel Discussion (Misc queries) 2 January 9th 06 04:55 PM
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
Extracting data from two columns Dan Excel Discussion (Misc queries) 4 October 5th 05 04:42 AM
Extracting data edmacd Excel Discussion (Misc queries) 2 September 30th 05 04:15 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


All times are GMT +1. The time now is 08:42 PM.

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"