+ Reply to Thread
Results 1 to 5 of 5

Counting the number of cells between two cells - NOT Countif

  1. #1
    Registered User
    Join Date
    01-04-2016
    Location
    uk
    MS-Off Ver
    10
    Posts
    49

    Counting the number of cells between two cells - NOT Countif

    Hi I'm trying to count the number of cells between to values within a list of data, however after some google searches I've hit a wall.

    Please see attached and see if anyone has any suggestions, I don't think countif can solve this problem.
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,604

    Re: Counting the number of cells between two cells - NOT Countif

    Here, use this:

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

  3. #3
    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: Counting the number of cells between two cells - NOT Countif

    Try this out:

    =MATCH(C2,$A$2:$A$16,0)-MATCH(C3,$A$2:$A$16,0)
    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

  4. #4
    Registered User
    Join Date
    01-04-2016
    Location
    uk
    MS-Off Ver
    10
    Posts
    49

    Re: Counting the number of cells between two cells - NOT Countif

    Thanks guys this is perfect, I've left reputation. Thanks again.

  5. #5
    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: Counting the number of cells between two cells - NOT Countif

    Don't know what happened there. I posted and I got the circling blue doughnut of despair for ages. The Forum's platform just seems to get worse and worse...

+ 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. Ignore blank cells in formula counting number of different cells.
    By deneh in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-07-2015, 08:52 AM
  2. Replies: 4
    Last Post: 06-13-2014, 07:08 PM
  3. Countif - counting cells containing symbol in the excel row
    By karthikskengeri in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2013, 12:12 AM
  4. [SOLVED] Counting cells in a column to add formulas to that equal number of cells
    By flipjarg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2012, 11:45 AM
  5. Replies: 0
    Last Post: 05-08-2012, 12:42 PM
  6. COUNTIF without counting blank cells
    By Melgaard in forum Excel General
    Replies: 5
    Last Post: 03-03-2010, 11:48 PM
  7. counting cells (COUNTIF) based on two or more criteria
    By Tricia S. in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-17-2005, 11:06 AM

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