+ Reply to Thread
Results 1 to 8 of 8

Help with counting text cells

  1. #1
    Registered User
    Join Date
    02-26-2016
    Location
    Manchester, England
    MS-Off Ver
    2003
    Posts
    4

    Help with counting text cells

    Help with CountIF functions in Excel 2003
    Please can anyone help!

    I am trying to enter a countif function in order to calculate the number of yes & no's to male & females!

    In one column I have 'Y & N' & in a 2nd column 'M & F'. I need to be able to calulate the number of Male Yes & No' & the number of female Yes & No.

    Hope this make sense.

    I have been using this function of add the number of females & males with this function:

    =COUNTIF(K4:K100,"*"&P20&"*")

    I don't know if this is possible or If I need to alter the way I collate this data.

    Any advice will be gratefully appreciated.

    Helen
    Last edited by Mumov1; 02-26-2016 at 10:55 AM.

  2. #2
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2013
    Posts
    365

    Re: Help with counting text cells

    Hi,

    please upload a sample file.
    If answer helped you say Thanks by Add Reputation

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with counting text cells

    Maybe something like this...

    Data Range
    A
    B
    C
    D
    E
    F
    1
    Gender
    Y/N
    Gender
    Y/N
    Totals
    2
    M
    Y
    M
    Y
    3
    3
    M
    Y
    M
    N
    1
    4
    F
    N
    F
    Y
    1
    5
    M
    N
    F
    N
    4
    6
    F
    N
    7
    F
    N
    8
    F
    Y
    9
    F
    N
    10
    M
    Y
    11
    ------
    ------
    ------
    ------
    ------
    ------


    This formula entered in F2 and copied down:

    =SUMPRODUCT(--(A$2:A$10=D2),--(B$2:B$10=E2))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    02-26-2016
    Location
    Manchester, England
    MS-Off Ver
    2003
    Posts
    4

    Re: Help with counting text cells

    Hope this helps
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-26-2016
    Location
    Manchester, England
    MS-Off Ver
    2003
    Posts
    4

    Re: Help with counting text cells

    Hi

    I have tried this but returns a value of 0! My knowledge of excel is limited. I have attached a sample of the spreadsheet I use if this helps in a previous reply.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,915

    Re: Help with counting text cells

    Guessing your requirement:.

    in Q5

    =COUNTIFS($K$4:$K$46,"YES",$L$4:$L$46,"MALE")

    Other values are just variants on above: i.e. Change "YES" to "NO" and "Male" to "FEMALE" in the required cells, and change the ranges.

    e.g Q14

    =COUNTIFS($L$4:$L$46,"Male",$N$4:$N$46,"Y")

    hope this helps.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-26-2016
    Location
    Manchester, England
    MS-Off Ver
    2003
    Posts
    4

    Re: Help with counting text cells

    Fantastic it worked I would never of worked that out for myself, Thank you so much x

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,915

    Re: Help with counting text cells

    thank you for the feedback.

    If your problem has been solved could you please mark the thread as such (Thread Tools" at top of first post)

+ 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. Counting cells with text and ignoring cells with formula
    By Mad Moose in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-31-2015, 04:50 AM
  2. Counting cells with TEXT only.
    By ColdDay in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2014, 05:53 PM
  3. Counting cells with colour fill, minus the cells with text
    By Crappy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-30-2013, 03:20 AM
  4. Counting cells that have text other than something
    By EvanNoble in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-04-2008, 06:48 PM
  5. Counting cells with text
    By Cissy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-11-2006, 05:50 PM
  6. [SOLVED] Counting Occurrence of Text within Text in Cells in Range.
    By Jeremy N. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-08-2005, 01:05 AM
  7. counting text cells
    By Debbie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-08-2005, 05:06 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