+ Reply to Thread
Results 1 to 9 of 9

Sumproduct(countif(keeps counting empty cells that have a formula in them.... ?

  1. #1
    Forum Contributor
    Join Date
    09-09-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    176

    Sumproduct(countif(keeps counting empty cells that have a formula in them.... ?

    I have attached a workbook with a sheet that has empty cells with formulas in them. I am trying to use =SUMPRODUCT(COUNTIF($J$3:$L$23,J3)). I want the formula to count all cells within the range except for the "empty" cells (Highlighted in Yellow as example K5, J7). Columns N-O are looking at those TRUE's & FALSE in columns P-R to help identify cells that have two of the same number in them. I do not want cells with two of the same digit in it. I am sure all the extra "helper" columns are not necessary to accomplish what i need but i don't know a better way. It's close to working but It's a mess... Any help would be greatly appreciated.
    Attached Images Attached Images
    Last edited by Hillster; 07-26-2018 at 06:41 AM.

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

    Re: Sumproduct(countif(keeps counting empty cells that have a formula in them.... ?

    I think you forgot to attach the sample file.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post. Don't try to use the Paperclip icon (Attachments button), as it doesn't work on this forum.

    Hope this helps.

    Pete

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,596

    Re: Sumproduct(countif(keeps counting empty cells that have a formula in them.... ?

    No attachment I'm afraid.
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    09-09-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    176

    Re: Sumproduct(countif(keeps counting empty cells that have a formula in them.... ?

    Yeah, it keeps saying upload failed.....Lol.....Ugh! I'm working on it...

  5. #5
    Forum Contributor
    Join Date
    09-09-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    176

    Re: Sumproduct(countif(keeps counting empty cells that have a formula in them.... ?

    So I attached a screen shot.... Maybe that will help to see the cells I am battling...??

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,596

    Re: Sumproduct(countif(keeps counting empty cells that have a formula in them.... ?

    What's the formula in the 'blank' cells?

  7. #7
    Forum Contributor
    Join Date
    09-09-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    176

    Re: Sumproduct(countif(keeps counting empty cells that have a formula in them.... ?

    =if(u3=true,"",o3)

  8. #8
    Forum Contributor
    Join Date
    09-09-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    176

    Re: Sumproduct(countif(keeps counting empty cells that have a formula in them.... ?

    Maybe I should just tell you what i am trying to do and you have a better way to make it happen.....

    1. I want to be able to count how many occurrences of two digits appear in cells F3 thru H23 BUT (not include cells that have a duplicate in the same cell (ex: G5, F7, etc.)

    2. Then use a Rank function to show the results of the pairs of numbers that occurred the most (Ranked #1), then second most occurred pairs (Ranked #2) and so on as shown in columns
    Y thru AA as shown in the screen shot.

    3. It would be really cool to be able to also fix the cell formula in column U as they actually counting the matching cells more than once. The formula in U6 for example
    (=SUMPRODUCT(COUNTIF($J$3:$L$23,J6)) is saying cell J6 which has the number 79 appeared three times in column J which is true but when you go down the list in column U, you
    will notice U10 and U23 are displaying the same result (number 79 appearing three times in column J). That is screwing up the Rank function, making it in-accurate in columns Y thru AA

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2010/2019
    Posts
    12,548

    Re: Sumproduct(countif(keeps counting empty cells that have a formula in them.... ?

    Perhaps the following will help... Pivot Tables!
    In the attached file three pivot tables display the ranking of the numbers in the P1, P2 and P3 columns.
    Design > Report Layout > Tabular
    Design > Grand Totals > Off
    Value Field Settings > Count (both value columns) > Rank Largest to Smallest
    Note that for the P1 PT blanks is unchecked, and would need to be turned off for other PT's that included blanks (I only worked with part of the data).
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] COUNTA, SUMPRODUCT, COUNTIF, Counting blank cells.
    By BlindAlley in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-09-2017, 11:47 AM
  2. [SOLVED] Counting blank cells that are empty buy contain a formula...
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2014, 11:15 AM
  3. [SOLVED] Need a way to ignore empty cells in a sum/countif formula
    By Bniemeyer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-20-2014, 06:09 AM
  4. My Countif formula is not accurately counting- Need to cound blank cells
    By mrgillus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2009, 02:59 PM
  5. Sumproduct or array formula for counting criteria of sum of cells
    By jasoncw in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-09-2007, 03:09 PM
  6. =SUMPRODUCT formula is counting the blank cells as well as zero's
    By JR in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2006, 11:45 AM
  7. COUNTIF or SUMPRODUCT counting multiple criteria
    By Kim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2005, 10: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