+ Reply to Thread
Results 1 to 8 of 8

If cells contain M then only look at them

  1. #1
    Registered User
    Join Date
    12-10-2013
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    61

    If cells contain M then only look at them

    Hi all,

    I am trying to make some analysis a little easier and wondered if you could help. On the "Analysis" tab I would like to be able to show a number and a percentage for each of the categories in column A.

    So for example column E3 should work out that the number of males in the class (those who have "M" in column B on Sheet1 who are "Above Target" is 0 and 0%.

    As I grow the spreadsheet I will also have a "Below" section. So for example LAP students on the Analysis tab who are "Below" target will show as 4 students and 36%

    I just need help with the formula so I can grow the spreadsheet from there.

    Many thanks for your help.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-10-2013
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: If cells contain M then only look at them

    Sorry I should add that I am referring to column AB on Sheet1 for the Above, on, below and sig below targets

  3. #3
    Registered User
    Join Date
    12-10-2013
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: If cells contain M then only look at them

    *Edit - ignore this, it didn't work

    Ah sorry, worked it out
    =IF(COUNTIF(Sheet1!B2:B35,"m"),COUNTIF(Sheet1!AB2:AB36,"Above"))
    Last edited by codyryan; 04-01-2020 at 09:31 AM. Reason: Thought I had worked it out, but hadn't

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 365
    Posts
    19,911

    Re: If cells contain M then only look at them

    Perhaps a Pivot Table

    v A B C D
    3 Gender Abililty Group :Key Stage 2 Data Count of EAL Count of Gender
    4 F
    5 HAP 1 1
    6 LAP 2 6
    7 MAP 4
    8 (blank) 1 2
    9 F Total 4 13
    10 M
    11 HAP 1
    12 LAP 5
    13 MAP 1 4
    14 (blank) 1 3
    15 M Total 2 13
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-10-2013
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: If cells contain M then only look at them

    Quote Originally Posted by codyryan View Post
    Ah sorry, worked it out
    =IF(COUNTIF(Sheet1!B2:B35,"m"),COUNTIF(Sheet1!AB2:AB36,"Above"))
    Actually my way didn't work, for some reason it is giving me the answer 6 whether I put in M of F

  6. #6
    Registered User
    Join Date
    12-10-2013
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: If cells contain M then only look at them

    Many thanks for your help Alan, I like the way that looks, but I really don't understand pivot tables. Is there a way to make them show all of the following categories and the breakdown of Above, On, Below and Sig below target? along with percentages?

    Categories:
    Males
    Females
    HAP
    MAP
    LAP
    EAL
    PP
    SEN

    Thanks
    Last edited by codyryan; 04-01-2020 at 09:32 AM. Reason: Missed off the categories

  7. #7
    Registered User
    Join Date
    12-10-2013
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: If cells contain M then only look at them

    Turns out this was what I was looking for:

    =COUNTIFS(Sheet1!B2:B35,"m",Sheet1!AB2:AB35,"on")

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider (Windows 10)
    Posts
    49,633

    Re: If cells contain M then only look at them

    Thanks for letting us know.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 02-11-2015, 09:02 AM
  2. Replies: 0
    Last Post: 01-21-2015, 12:05 PM
  3. [SOLVED] Linking cells globally to allow users the ability to change cells on separate sheet/cells.
    By V1gilante in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2014, 10:47 PM
  4. combining many cells in one cells keeping character font and hyperlinks of all cells
    By mankind00 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2012, 09:41 AM
  5. Replies: 4
    Last Post: 06-17-2011, 08:53 AM
  6. Formula: Drop Down List -> Choose Option Finds Cells & Replace Cells with Cells
    By g00glethis1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2010, 01:10 PM
  7. Replies: 2
    Last Post: 06-24-2010, 04:53 PM

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