+ Reply to Thread
Results 1 to 7 of 7

sum count number of particular value in two columns

  1. #1
    Forum Contributor
    Join Date
    04-19-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    180

    sum count number of particular value in two columns

    Hi

    I am trying to do a count of the number of "A"s in both Columns D and E

    I can do a count of the number of matches in both columns but need to only do a count of how many "A"s there are in both ie. a particular value. I have seen some people use the SUM PRODUCT function for something similar e.g.
    Please Login or Register  to view this content.
    .

    Can anyone help?

    TIA

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: sum count number of particular value in two columns

    If the Item to count is in B1 then =CountIf() would work.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: sum count number of particular value in two columns

    Try this:

    =COUNTIF(D1:D50,"*A*") + COUNTIF(E1:E50,"*A*")

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    04-19-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: sum count number of particular value in two columns

    Hi

    No sorry .. I need the count of "A"s in BOTH columns ie. number of matching pairs of "A".... not just the total number of As in both columns

    Hope that makes sense

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: sum count number of particular value in two columns

    Okay, try it this way:

    =COUNTIFS(D1:D50,"*A*",E1:E50,"*A*")

    Hope this helps.

    Pete

  6. #6
    Forum Contributor
    Join Date
    04-19-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: sum count number of particular value in two columns

    Thank you !

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: sum count number of particular value in two columns

    Glad to help - thanks for the rep.

    Pete

+ 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 the number of different values between 2 columns?
    By Battletoads in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2019, 10:54 AM
  2. Replies: 2
    Last Post: 01-27-2017, 11:13 AM
  3. [SOLVED] Count number of data between two columns
    By bhenlee in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-29-2016, 10:14 AM
  4. Count number of pairs between 2 columns
    By Johnald in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-09-2013, 06:46 PM
  5. compare columns and count number of matching columns
    By san000 in forum Excel General
    Replies: 1
    Last Post: 07-15-2009, 10:31 PM
  6. VBA to count number of columns
    By blucky in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-13-2008, 09:20 AM
  7. Count Number of Columns
    By mrdata in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-03-2007, 04:44 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