+ Reply to Thread
Results 1 to 4 of 4

countif every nth cell in row confusion

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question countif every nth cell in row confusion

    Hey there all,

    It has been a while since I've done any excel programing and I feel like I knew this once, but not any more. I'm trying to COUNTIF every 6th non blank cell from H4 to IT4. Each of these cells have an IF statement in them that returns an "X" if true and leaves blank if false. So it only needs to count the number of X's. I've attached a small screen cap to help illustrate what I mean. Basically I need a better way of writing =COUNTIF(H4:IY4,"X") so that starting with cell H4 it only looks at every 6th cell. So H4, N4, T4, Z4, AF4,..........,IT4. In the examples below, the first would return 1 because N4 has an X and N4 does not. The second one would return 0 ignoring the other columns with X's in them in between.

    Hopefully some part of that can be understood. Thank you for any help.
    Attached Images Attached Images

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: countif every nth cell in row confusion

    Try this:

    =COUNTIFS(H4:IY4,"X",$H$2:$IY$2,1)

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: countif every nth cell in row confusion

    that works great. If I'm reading it right your saying count all the X's in row 4 if row 2 has a 1 in it. right?

    Thank you so much.

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: countif every nth cell in row confusion

    Yes. .

+ 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] Countif on visible cells only & Countif from a cell with multiple entry
    By MushroomJ in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-26-2021, 05:37 AM
  2. Replies: 5
    Last Post: 08-12-2020, 05:33 PM
  3. COUNTIF Confusion
    By tamedijodbro in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-02-2012, 12:46 PM
  4. Some confusion on cell-based changes.
    By graveyardshiftee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2012, 02:09 AM
  5. Confusion with last row
    By LiLi1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-15-2011, 06:09 PM
  6. Excel 2007 : COUNTIF with operators and text- confusion
    By SueWithQuestion in forum Excel General
    Replies: 4
    Last Post: 04-13-2011, 10:33 AM
  7. COUNTIF confusion
    By Alice21 in forum Excel General
    Replies: 8
    Last Post: 06-10-2010, 09:00 AM

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