+ Reply to Thread
Results 1 to 5 of 5

Countifs to count a row equals another row

  1. #1
    Forum Contributor
    Join Date
    11-28-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    129

    Countifs to count a row equals another row

    I am looking to have a table with a column of dates and another column to show how many from my list of data are not equal of my estimations to actual numbers. I have attached a sample data in the excel sheet. On the Info tab, I have 2 dates and in column B I want to show out of those two dates, how many from the Data tab where Data.Column B does not equal Data.Column C. Hopefully what I am asking is clear, let me know if it is not. Thanks in advance for the help!
    Attached Files Attached Files
    Last edited by ncurran217; 03-13-2013 at 12:06 PM.

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

    Re: Countifs to count a row equals another row

    You can use this formula in B2:

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


    and copy into B3, which will give you 0 and 3, as expected. For your real data, you may need to extend the ranges from $31 (it's not a good idea to use full-column references with SUMPRODUCT).

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    11-28-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    129

    Re: Countifs to count a row equals another row

    Works good, never used the SUMPRODUCT function before! What are the limitations with this function as when I created into my bigger sheet it says ran out of memory. I ended up limiting the column size like you did with the A$2:A$31, instead of the whole column?

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

    Re: Countifs to count a row equals another row

    SP will check every cell in the range, even if some are empty, so with a long range it can be very memory-hungry as well as taking a long time to calculate. COUNTIF/SUMIF and others, however, are intelligent enough to just make use of the used-range, so it doesn't really matter if you use full-column references with those. BUT, you can't compare two ranges cell-by-cell with those.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    11-28-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    129

    Re: Countifs to count a row equals another row

    Yes it does, thank you very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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