+ Reply to Thread
Results 1 to 5 of 5

Counts two consecutive number???

  1. #1
    Registered User
    Join Date
    01-26-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    3

    Counts two consecutive number???

    Hello everyone,
    I have encounterd a problem when I try to count two consecutive number. For example: I want to count how many number 1 followed by number 0 in a set of data. I try COUNTIF but it seems to not work. Thank you in advance. See the attached file

    Consecutive.xlsx
    Last edited by thangkhi; 08-13-2013 at 01:08 PM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Counts two consecutive number???

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    01-26-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Counts two consecutive number???

    Anyone? Please help

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Counts two consecutive number???

    Try

    =SUMPRODUCT((A1:A638=1)*(A2:A639=0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    01-26-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Counts two consecutive number???

    Fantastic, this works. 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)

Similar Threads

  1. [SOLVED] How to get the number of times exactly 4 consecutive cells have a number greater than 6?
    By llane5150 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-29-2013, 11:23 PM
  2. [SOLVED] Count consecutive non-zero values; list first non-zero value; display counts as an array
    By treznick in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-17-2012, 08:25 PM
  3. Number of Counts between Time Ranges
    By homer33doh in forum Excel General
    Replies: 3
    Last Post: 03-10-2011, 10:30 AM
  4. Consecutive Counts
    By Jarbugs in forum Excel General
    Replies: 3
    Last Post: 01-19-2009, 09:57 AM
  5. A cell that counts the number of times...
    By TPD in forum Excel General
    Replies: 1
    Last Post: 02-14-2005, 11:31 PM

Tags for this Thread

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