+ Reply to Thread
Results 1 to 5 of 5

Countif for non-continuous data

  1. #1
    Registered User
    Join Date
    09-28-2008
    Location
    UK
    MS-Off Ver
    MS 365 Apps for Enterprise
    Posts
    64

    Countif for non-continuous data

    Hi there,

    I'm looking for a method for counting the number of cells in a non-continuous range of cells which meet simple conditions, countif does not work, and using a sum of countif's is a bit of a poor method, is there a better way?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    What are the ranges, is there a pattern, e.g. A1:A4, C1:C4, E1:E4 or similar?

  3. #3
    Registered User
    Join Date
    09-28-2008
    Location
    UK
    MS-Off Ver
    MS 365 Apps for Enterprise
    Posts
    64

    Ranges

    There would be various ranges:

    But the first one I was trying to use was D3, G3, J3, M3, P3.

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following formula, which needs to be confirmed with CONTROL+SHIFT+ENTER...

    =SUM(IF(MOD(COLUMN(D3:P3)-COLUMN(D3),3)=0,IF(D3:P3=A2,1)))

    ...where A2 contains the criteria.

    Hope this helps!

  5. #5
    Registered User
    Join Date
    09-28-2008
    Location
    UK
    MS-Off Ver
    MS 365 Apps for Enterprise
    Posts
    64

    Re: Countif for non-continuous data

    Perfect,

    thanks

+ 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. Data and number manipulation
    By Mwhite in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2015, 06:41 AM
  2. COUNTIF function using a drop down list source data as the criteria.
    By Stevie-B in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-07-2008, 08:22 AM
  3. Getting Continuous Data from Another Excel File
    By BigEye64 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-25-2008, 03:05 AM
  4. Copying and Pasting Array Data.. etc
    By amedhussaini in forum Excel General
    Replies: 1
    Last Post: 02-20-2008, 05:27 PM
  5. Replies: 2
    Last Post: 02-14-2008, 05:02 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