+ Reply to Thread
Results 1 to 4 of 4

Count the values in a particular column based on header name

  1. #1
    Registered User
    Join Date
    03-20-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    2

    Count the values in a particular column based on header name

    Hi all,

    I have a table of data. I need to be able to count the number of values in a particular column, based on the column header. So I would like a formula that returns a count of the column values based on a value that I enter into another cell that will match the column header.

    I hope that makes sense.

    Thanks...any help would be appreciated!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Count the values in a particular column based on header name

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Count the values in a particular column based on header name

    With Column Headers in A1:K1 and your matching value in M2
    When you say "count values" I assume you mean numbers

    =SUMPRODUCT(--($A$1:$K$1=$M$2)*ISNUMBER(A2:K100))

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    03-20-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Count the values in a particular column based on header name

    PERFECT! Thank you so much!

+ 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] Count cell values under column with today's date header
    By jben86 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-23-2013, 03:19 PM
  2. Count Row values based on Column header
    By sramakrishna in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-06-2013, 09:07 AM
  3. Count if values based on column header
    By vijanand1279 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2012, 03:17 PM
  4. Replies: 5
    Last Post: 10-14-2012, 07:02 PM
  5. Replies: 0
    Last Post: 09-28-2012, 07:55 AM

Tags for this Thread

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