+ Reply to Thread
Results 1 to 7 of 7

Sequential Count with 2 Criteria

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Sequential Count with 2 Criteria

    In the sample I need to produce a sequential count for columns J & K. As the year is changed I want the count in each column to reflect the change.

    Jim O
    Attached Files Attached Files
    Last edited by JO505; 10-15-2015 at 02:08 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Sequential Count with 2 Criteria

    There are circular references in your spreadsheet. The Countif is referring to its own cell.

    Instead of a formula that is not working, can you post what the desired result is? Currently I see all 0s with a few 1 sprinkled in. What do you expect instead? What is the logic?

  3. #3
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Sequential Count with 2 Criteria

    I added 2 helper columns and changed the formulas. I was hoping to do this without the helper columns but if their is no other way I can live with them.

    Jim O
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Sequential Count with 2 Criteria

    Hello JO505,

    I was confused by your second post - what I think you wanted was this: =IF(AND($E2=$I$1,F2=$J$1),COUNTIF(J$1:J1,">0")+1,0)
    and =IF(AND($E2=$I$1,F2=$K$1),COUNTIF(K$1:K1,">0")+1,0)

    Please advise if I can ignore the second post.

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Sequential Count with 2 Criteria

    I arrived at the same formula as David A Coop. When the condition is met you just need to count all the values above the current cell that are greater than 0 and the add 1 to increment. That way you can avoid a circular reference and don't need a helper column.

  6. #6
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Sequential Count with 2 Criteria

    That is what I was looking for. Thank you both for your time and input.

    Jim O

  7. #7
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Sequential Count with 2 Criteria

    Quote Originally Posted by JO505 View Post
    That is what I was looking for. Thank you both for your time and input.

    Jim O
    You're welcome Jim. Please remember to mark the post as SOLVED, and click on the Rep star.

    DAC

+ 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] Sequential count issue
    By JO505 in forum Excel General
    Replies: 2
    Last Post: 08-29-2015, 04:00 PM
  2. [SOLVED] Count sequential numbers
    By pykywannabe in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-16-2015, 10:28 AM
  3. [SOLVED] Count Sequential Recurrences
    By Mironz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2015, 01:26 PM
  4. [SOLVED] Count Sequential Numbers
    By AJRIGNEY in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2012, 12:08 PM
  5. Help with sequential Count
    By Jogier505 in forum Excel General
    Replies: 3
    Last Post: 02-06-2011, 08:15 PM
  6. Sequential ID with criteria:Function or sub?
    By ncaravela in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2010, 10:44 AM
  7. SUMIF with sequential criteria
    By steven314 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-06-2007, 07:41 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