+ Reply to Thread
Results 1 to 5 of 5

[SOLVED] extracting data by a criteria ? IF this , then That?

  1. #1
    MikeR-Oz
    Guest

    [SOLVED] 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. #2
    Bob Phillips
    Guest

    Re: 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$20>20)*($B$1:$B$20<=40),ROW($A1:$A20),""),ROW(
    $A1:$A20))),"",
    INDEX($A$1:$A$20,SMALL(IF(($B$1:$B$20>20)*($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" <[email protected]> wrote in message
    news:[email protected]...
    > 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. #3
    Stefi
    Guest

    RE: 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. #4
    MikeR-Oz
    Guest

    RE: 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. #5
    Stefi
    Guest

    RE: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1