+ Reply to Thread
Results 1 to 8 of 8

Highlight 14th Consecutive non-empty cell

  1. #1
    Registered User
    Join Date
    05-21-2014
    Location
    Saudi Arabia
    MS-Off Ver
    2021
    Posts
    38

    Question Highlight 14th Consecutive non-empty cell

    Hi,

    In attached file I need to highlight the 14th consecutive non-empty cell based on the Date Column C.
    The expected outcome is highlighted in the attached sample file.

    sample.PNG
    Appreciate your valuable support for this help.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Highlight 14th Consecutive non-empty cell

    While I look at this, please update your profile NOW to show:

    1) your approximate location (country is perfect), and

    2) the Excel version you are currently using (e.g. O365 for PC, 2021 for Mac, etc).
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    05-21-2014
    Location
    Saudi Arabia
    MS-Off Ver
    2021
    Posts
    38

    Re: Highlight 14th Consecutive non-empty cell

    updated my profile !

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Highlight 14th Consecutive non-empty cell

    OK. first attempt!

    1. Introduce an EMPTY column at column D.

    2. Set up a Named range (CTRL-F3), called CF:
    =MOD(1/(1/COUNTIF(INDEX($D2:E2,AGGREGATE(14,6,(COLUMN($D2:E2)-COLUMN($D2)+1)/($D2:E2=0),1)):E2,">0")),14)=0

    3. Then use =CF as the formula for conditional formatting.
    Attached Files Attached Files

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Highlight 14th Consecutive non-empty cell

    An other option:

    Please try in your file the following conditional formatting rule applies to $D$2:$AU$5
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    (In the attached file is the range $D$7:$AU$10).
    Attached Files Attached Files
    Last edited by HansDouwe; 09-04-2022 at 06:20 AM.

  6. #6
    Registered User
    Join Date
    05-21-2014
    Location
    Saudi Arabia
    MS-Off Ver
    2021
    Posts
    38

    Re: Highlight 14th Consecutive non-empty cell

    Thank you @Glenn Kennedy, your solution worked very well. Thanks for your time and support.

    @HansDouwe, your solution isn't returning the desired results. its highlighting 14th consecutive cell, however if we delete/remove value from one cell in between these consecutive cells, the highlight stays till we delete more than one cell's values.
    Last edited by qadeerahmed; 09-05-2022 at 02:59 AM.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Highlight 14th Consecutive non-empty cell

    You're welcome and thanks for the feedback.

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Highlight 14th Consecutive non-empty cell

    Thx for your feedback.

    I've corrected my formula:

    Please try in your file the following conditional formatting rule applies to $D$2:$AU$5
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In the attached workbook the formula applies to $D$7:$AU$10.
    Last edited by HansDouwe; 09-07-2022 at 01:35 PM.

+ 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] Highlight Cell if any cells in row are empty
    By sagewhite in forum Excel General
    Replies: 3
    Last Post: 07-29-2022, 05:32 AM
  2. Highlight row if cell is empty
    By phifer2088 in forum Excel General
    Replies: 3
    Last Post: 02-20-2015, 05:58 AM
  3. [SOLVED] Highlight First Empty Cell In a Row
    By b624333 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-29-2015, 03:39 PM
  4. [SOLVED] How to find first and last non empty cell in row and highlight between?
    By Puzzles in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-27-2013, 02:58 PM
  5. [SOLVED] Need to copy data every 14th cell
    By Donnlan in forum Excel General
    Replies: 9
    Last Post: 04-17-2012, 04:09 PM
  6. [SOLVED] Highlight cell that was changed (from NOT empty value)
    By dainova in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2012, 03:14 PM
  7. SUM every other 14th cell
    By malik641 in forum Excel Formulas & Functions
    Replies: 69
    Last Post: 09-06-2005, 03:05 PM

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