+ Reply to Thread
Results 1 to 22 of 22

Count if serie

  1. #1
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Count if serie

    hi to all, i would like a formula to count at E1 from repeating numbers 1 2 and 3 at A:A a certain event 123 or 231 or 213.please see exaple at the attached workbook.Thanks !!

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Count if serie

    =sum(--(--(n(offset(a1,row(1:7)-1,))&n(offset(a1,row(1:7),))&n(offset(a1,row(1:7)+1,)))=k1:m1)). Cse
    in k1:m1: 123 231 213

  3. #3
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    dear tim thanks ! i try to put the formula to cell E1 but it is not do it. it must count according to the results in A:A

  4. #4
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    do you know why? please!

  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Count if serie

    formula works
    Attached Files Attached Files

  6. #6
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    sorry tim but it does not .maybe i did not make it clear:i dont want a formula to count that 3 events only but to cant the serie for the event of three repeating numbers and count ,where is stop count 0.
    for example( serie: 21321) 213 count 1 if next number is 2 (2132 )count 2 if the next number is 1(2132) count 3 .
    if 21321 if the next is 1 or 2 like: 213211 count 0, if the next is 3 count 4 .

  7. #7
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    a big sorry if i was not clear!!

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Count if serie

    Is this right? With CSE

    =MATCH(0,INDEX(--(MMULT(--(COUNTIF(OFFSET(A1,ROW(INDIRECT("1:"&COUNT(A:A)-3)),,3),{1,2,3})=1),{1;1;1})=3),N(IF(1,COUNT(A:A)-2-ROW(INDIRECT("1:"&COUNT(A:A)-3))))),)-1
    Attached Files Attached Files

  9. #9
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    DEAR Bo iam glad that you help me!!!!.is almost working ,i attached an example so you can see where i want to be zero!!

  10. #10
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Count if serie

    I use Count(H:H) H1 is blank so the count is wrong, you need to fill H1 with any number.

  11. #11
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    great! i wish you the best!

  12. #12
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    bo, can it the start working count from H1 not from H13?
    Last edited by louis128; 01-09-2019 at 09:06 AM.

  13. #13
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    please see the attachement , there is an error and it should count 1.thanks

  14. #14
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Count if serie

    Please try

    I1
    =MATCH(0,INDEX(--(MMULT(--(COUNTIF(OFFSET(H1,ROW(INDIRECT("1:"&COUNT(H:H)-3))-1,,3),{1,2,3})=1),{1;1;1})=3),),)-1
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    11-01-2012
    Location
    Jacksonville
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: Count if serie

    Quote Originally Posted by tim201110 View Post
    =sum(--(--(n(offset(a1,row(1:7)-1,))&n(offset(a1,row(1:7),))&n(offset(a1,row(1:7)+1,)))=k1:m1)). Cse
    in k1:m1: 123 231 213
    DANG!!!!! Sweet looking formula! I wish I was that good! lol Trying but far from there!

  16. #16
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Count if serie

    Quote Originally Posted by louis128 View Post
    there is an error and it should count 1.thanks

    I think this should count 2
    Attached Files Attached Files

  17. #17
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    dear Bo please see example in attachement.if the last third comes in a serie 123 or 213 or 321 ,312 count 1

  18. #18
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    if the last third comes in a serie 123 or 213 or 321 ,312 count 1.please see attachemnt.thanks bo

  19. #19
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Count if serie

    Quote Originally Posted by louis128 View Post
    .if the last third comes in a serie 123 or 213 or 321 ,312 count 1
    Attached Files Attached Files
    File Type: xlsx COUNT SERIE 3 NUMBER final.xlsx‎ (10.9 KB, 0 views) Download
    This is for Post#12

    For count from last row, please try with CSE
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  20. #20
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    bo, the excel program says:that the formula use more levels of nesting.do you know what means ,can we change something maybe?

  21. #21
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Count if serie

    Please check file from Post#16

  22. #22
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Count if serie

    yes .is done!

+ 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. counting a serie
    By louis128 in forum Excel General
    Replies: 3
    Last Post: 01-07-2019, 10:39 AM
  2. [SOLVED] Data serie down to zero
    By Saturn in forum Excel General
    Replies: 6
    Last Post: 05-01-2016, 06:18 AM
  3. keep the serie
    By solloman in forum Excel General
    Replies: 3
    Last Post: 06-11-2012, 09:07 PM
  4. connecting in serie workbooks
    By j_r_m_c in forum Excel General
    Replies: 1
    Last Post: 03-01-2011, 08:00 PM
  5. Max/min in a floating serie
    By tradermike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-30-2008, 01:44 PM
  6. Replies: 1
    Last Post: 11-19-2007, 09:19 AM
  7. [SOLVED] Filling / Extending serie
    By Eric in forum Excel General
    Replies: 2
    Last Post: 09-08-2005, 04:05 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