Consulting

Results 1 to 2 of 2

Thread: Conting consective cells based on criteria

  1. #1
    VBAX Regular
    Joined
    May 2008
    Posts
    48
    Location

    Conting consective cells based on criteria

    What formula do I use to count consecutive cells based on criteria, however I need the counter to restart if a different value from the previous one is found?




    Any help given is appreciated

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    B1: 1
    B2: =IF(A2=A1,B1+1,1)

    copy B2 down
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •