+ Reply to Thread
Results 1 to 11 of 11

SumProduct /Countif

  1. #1
    Registered User
    Join Date
    08-14-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    19

    SumProduct /Countif

    Hi,
    I am trying to create a formula which gives the total count of how many times the codes in A1:A8 in the 'Reference' tab are found in column A of the 'Check' tab.
    Cheers.
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: SumProduct /Countif

    Hi Russ76

    Try this formula in B3 and copy it down

    =COUNTIF(Check!$A$2:$A$5789,A3)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    08-14-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    19

    Re: SumProduct /Countif

    Hi, sorry I didn't clarify properly. I want to get a single figure which gives me the combined total of the number of times that these codes appear. So say in A25 of the reference tab is a total cell.

  4. #4
    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
    44,063

    Re: SumProduct /Countif

    Try this, then - entered as an array formula (CTRL + SHIFT + ENTER to set). BtW, there is an extra space after DEP in A8 that you need to delete...
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: SumProduct /Countif

    Here is the total count of the green cell codes

    =SUM(COUNTIF(Check!$A$2:$A$5789,$A$3:$A$10))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

  6. #6
    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
    44,063

    Re: SumProduct /Countif

    Russ, exactly what cells do you want to count... to A8, as mentioned in Post 1, or the green ones (A3:a10)? If the latter, my answer would need to nbe modified and it would then look exactly the same as Alkey's...

  7. #7
    Registered User
    Join Date
    08-14-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    19

    Re: SumProduct /Countif

    Hi. I am counting the codes in A3 to A10 in 'Reference'. I have plugged the above formula in but it isn't counting the number of times 'DEP' appears which is 2527. It is missing these out and only giving 3174.

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: SumProduct /Countif

    this is because you have trailing spaces after the code DEP. Just remove space and formula will pick up.

  9. #9
    Registered User
    Join Date
    07-30-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: SumProduct /Countif

    Can also use SUMPRODUCT if you don't wan't the C.S.E.

    Please Login or Register  to view this content.
    As mentioned, you can alter the range A3:A10 to be whatever criteria list you would like.

  10. #10
    Registered User
    Join Date
    08-14-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    19

    Re: SumProduct /Countif

    Thats really bloody annoying...thanks for your help with this.

  11. #11
    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
    44,063

    Re: SumProduct /Countif

    See second sentence of post# 4...

+ 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. countif + sumproduct
    By dulitul in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-15-2013, 03:27 PM
  2. countif and sumproduct
    By yyt0425 in forum Excel General
    Replies: 1
    Last Post: 09-10-2012, 12:54 AM
  3. if with sumproduct or countif or Something else???
    By tboans in forum Excel General
    Replies: 2
    Last Post: 04-12-2012, 10:42 AM
  4. Use of SUMPRODUCT/COUNTIF?
    By mfiery in forum Excel General
    Replies: 3
    Last Post: 05-18-2009, 05:50 AM
  5. SumProduct or CountIf
    By Roger Govier in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 09-06-2005, 12:05 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