+ Reply to Thread
Results 1 to 6 of 6

How to count marked occurrences of a header value

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    United Kingdom
    MS-Off Ver
    Mac Excel 2011
    Posts
    20

    How to count marked occurrences of a header value

    hi,

    I'm creating a table that has a categorisation of some sentences

    These categories are in columns and the occurence is marked by an x.

    I'd like to figure out how to count the number of Xs per category.

    Any idea how I can do that?

    Many thanks!
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to count marked occurrences of a header value

    I'd be inclined to use a helper row, hide it if necessary. e.g. in B12 copied to I12

    =COUNTIF(B$15:B$30,"x")

    Then in C3 copied down

    =INDEX($B$12:$I$12,1,ROW()-2)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: How to count marked occurrences of a header value

    IN C3 then copy down

    =COUNTIF(INDEX($B$15:$I$30,,MATCH($B3,$B$14:$I$14,0)),"x")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    01-09-2014
    Location
    United Kingdom
    MS-Off Ver
    Mac Excel 2011
    Posts
    20

    Re: How to count marked occurrences of a header value

    that worked like a charm! thank you so much!

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: How to count marked occurrences of a header value

    Pl mark the thread solved.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,439

    Re: How to count marked occurrences of a header value

    Provide information regularly, the formula can be like this
    C3 cell formula , drag down

    HTML Code: 

+ 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. [SOLVED] Array formula to match value to row and pull row header (multiple occurrences of value)
    By lbdavis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-18-2020, 01:34 PM
  2. [SOLVED] How to count expired cells but only if they aren't marked with YES in another cell
    By SamEliz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2019, 11:46 AM
  3. Replies: 1
    Last Post: 08-10-2016, 11:17 AM
  4. Replies: 7
    Last Post: 04-01-2016, 03:27 PM
  5. Can be count green marked cells?
    By toplisek in forum Excel General
    Replies: 5
    Last Post: 01-06-2015, 09:36 AM
  6. [SOLVED] Count number of occurrences but if there are consecutive matches count them as one
    By michaljireht in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-26-2013, 08:26 PM
  7. Replies: 2
    Last Post: 10-13-2012, 03:30 AM

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