+ Reply to Thread
Results 1 to 13 of 13

appears a consecutive series

Hybrid View

Dumy appears a consecutive series 07-20-2015, 10:29 AM
newdoverman Re: appears a consecutive... 07-20-2015, 11:18 AM
Dumy Re: appears a consecutive... 07-20-2015, 11:31 AM
sourabhg98 Re: appears a consecutive... 07-20-2015, 11:36 AM
Dumy Re: appears a consecutive... 07-20-2015, 11:45 AM
sourabhg98 Re: appears a consecutive... 07-20-2015, 11:33 AM
ChemistB Re: appears a consecutive... 07-20-2015, 11:42 AM
Dumy Re: appears a consecutive... 07-20-2015, 11:48 AM
Dumy Re: appears a consecutive... 07-20-2015, 12:21 PM
sourabhg98 Re: appears a consecutive... 07-20-2015, 11:44 AM
Dumy Re: appears a consecutive... 07-21-2015, 12:05 PM
sourabhg98 Re: appears a consecutive... 07-21-2015, 01:09 PM
Dumy Re: appears a consecutive... 07-21-2015, 02:47 PM
  1. #1
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: appears a consecutive series

    Here is one way. I created a "duplicated range" that only counted when a value was duplicated along the row regardless of the number of identical items that were in a row.
    Formula: copy to clipboard
    =IF(AND(B2>0,B2=C2,COUNTIF($B$2:B2,B2)=1),1,"")


    Then sum the 1s created by that duplicated range:
    Formula: copy to clipboard
    =SUM(O2:X2)


    This is how it came together on a worksheet
    There is probably a better way of doing this.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  2. #2
    Forum Contributor
    Join Date
    09-10-2010
    Location
    europe
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: appears a consecutive series

    Quote Originally Posted by newdoverman View Post
    Here is one way. I created a "duplicated range" that only counted
    Thank you for your appearance and response.
    This is a solution with extra columns.

    Is there a possibility to solve counting using a single formula in a one cell?

  3. #3
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: appears a consecutive series

    If you don't want many columns One formula can be
    =SUM(IF(B2:K2=A2:J2,IF(B2:K2<>C2:L2,1,"")))
    in cell M2 copied down..
    However, it an array formula so to use it just press ctrl+shift+enter instead after just enter after pasting this formula in the cell...
    note-this is for the second case i.e. counting twice
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  4. #4
    Forum Contributor
    Join Date
    09-10-2010
    Location
    europe
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: appears a consecutive series

    Quote Originally Posted by sourabhg98 View Post
    If you don't want many columns One formula can be
    =SUM(IF(B2:K2=A2:J2,IF(B2:K2<>C2:L2,1,"")))
    Thank you for answer
    This array formula does not work well. Returns wrong results

    This is results which I need in M column
    2
    1
    1
    3

+ 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] Longest series of consecutive 2 chars in a string
    By Eric_25 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-23-2014, 06:23 AM
  2. Count Most Consecutive Months a name appears
    By audiofreak in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-17-2013, 02:44 PM
  3. count the series of consecutive positive/negative values and sum them
    By otage in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-12-2012, 12:43 PM
  4. Replies: 2
    Last Post: 10-11-2012, 08:31 AM
  5. Fill series to access same cell on consecutive sheets
    By shellgos in forum Excel General
    Replies: 3
    Last Post: 10-05-2011, 03:25 AM
  6. Loop To count a consecutive series
    By mthpsu in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-24-2011, 02:12 AM
  7. Calculating the largest consecutive gap in a series of numbers
    By Mjau in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-29-2009, 02:55 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