+ Reply to Thread
Results 1 to 10 of 10

Count Occurences based on multiple cells

  1. #1
    Forum Contributor
    Join Date
    01-03-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    211

    Count Occurences based on multiple cells

    hello

    I m trying to count occurrences based on values of three cells

    on single Cell it works :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    but on multiple ones it doesn`t work, I tried this


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


    Can you help please ?


    Thanks

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Count Occurences based on multiple cells

    =SUM(COUNTIF(A$1:A2,D2:F2)) Try this array formula (Shift+Ctrl+Enter)
    or
    =SUM(INDEX(COUNTIF(A$1:A2,D2:F2),0))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Count Occurences based on multiple cells

    Or

    Add a sumproduct in front of Countif()

    =SUMPRODUCT(COUNTIF(A$1:A2,D2:F2))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Forum Contributor
    Join Date
    01-03-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Count Occurences based on multiple cells

    Quote Originally Posted by nflsales View Post
    =SUM(COUNTIF(A$1:A2,D2:F2)) Try this array formula (Shift+Ctrl+Enter)
    or
    =SUM(INDEX(COUNTIF(A$1:A2,D2:F2),0))
    it need to give this results

    HTML Code: 
    it is double counting I think

  5. #5
    Forum Contributor
    Join Date
    01-03-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Count Occurences based on multiple cells

    Quote Originally Posted by :) Sixthsense :) View Post
    Or

    Add a sumproduct in front of Countif()

    =SUMPRODUCT(COUNTIF(A$1:A2,D2:F2))
    this one double counting too
    Last edited by bimo; 12-15-2014 at 07:53 AM.

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Count Occurences based on multiple cells

    Attach sample sheet

  7. #7
    Forum Contributor
    Join Date
    01-03-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Count Occurences based on multiple cells

    Quote Originally Posted by nflsales View Post
    Attach sample sheet
    here it is..Thanks
    Attached Files Attached Files

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Count Occurences based on multiple cells

    D2=COUNTIFS(A$2:A2,A2,B$2:B2,B2,C$2:C2,C2)
    and copy towards down

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Count Occurences based on multiple cells

    You haven't told us what you want... The cell references in your sheet do not match those in Post 1. Some of the values have extra spaces after them, which I have removed. is this what you were wanting to achiee? If not please show what your expected result should look like.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  10. #10
    Forum Contributor
    Join Date
    01-03-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Count Occurences based on multiple cells

    Quote Originally Posted by Glenn Kennedy View Post
    You haven't told us what you want... The cell references in your sheet do not match those in Post 1. Some of the values have extra spaces after them, which I have removed. is this what you were wanting to achiee? If not please show what your expected result should look like.
    Applogies, I have taken the spaces out..Results I am trying to achive is on Column D,

    Thanks
    Attached Files Attached Files

+ 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 Occurences in worksheet based on data in another cell
    By simi_uk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2014, 01:24 PM
  2. [SOLVED] Count occurences based on name
    By djsouljah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2014, 10:07 AM
  3. [SOLVED] Count unique occurences for per ID for multiple ID
    By kevinkusman in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-10-2013, 04:46 AM
  4. Count of Occurences based on multiple criteria
    By hilpup24 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-09-2013, 08:13 AM
  5. Count number occurences based on criteria Column
    By SamCrome in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2013, 04:32 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