+ Reply to Thread
Results 1 to 9 of 9

Count consecutive cell until blank and change the cell color.

  1. #1
    Registered User
    Join Date
    02-12-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    25

    Count consecutive cell until blank and change the cell color.

    Hi,

    Need help to make a conditional formatting or a macro that count consecutive values until blank and change the cell color.
    The 5th consecutive cell to yellow, 6th consecutive cell to orange and above the 7th consecutive cell red.

    Sorry about my bad english! Thanks in advance.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-12-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    25

    Re: Count consecutive cell until blank and change the cell color.

    Really need help on this, someone please...

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Count consecutive cell until blank and change the cell color.

    VBA example
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-12-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    25

    Re: Count consecutive cell until blank and change the cell color.

    Quote Originally Posted by jindon View Post
    VBA example
    Please Login or Register  to view this content.
    Man, thanks for the help, that was exactly what I needed!
    Saved me so many hours of work.really thank you!

    Arigatou!

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Count consecutive cell until blank and change the cell color.

    You are welcome and umaku dekite yokatta.

    1)
    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.

    2)
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    Registered User
    Join Date
    02-12-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    25

    Re: Count consecutive cell until blank and change the cell color.

    Thanks for the advices Jindon san!

    One question about the code,
    it will work perfectly on cells that I have fill manually,
    but it does not work on cells that I have a hlookup formula on it.

    the formula I'm using is
    Please Login or Register  to view this content.
    can it be done?

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Count consecutive cell until blank and change the cell color.

    Try change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-12-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    25

    Re: Count consecutive cell until blank and change the cell color.

    Thanks for the quick reply,
    it worked on cells that I had formula on it

    anyway to combine both? counting formulas and manual fill?

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Count consecutive cell until blank and change the cell color.

    Change to
    Please Login or Register  to view this content.

+ 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] Change the color if a line if any cell is not blank
    By debbiesh in forum Excel General
    Replies: 3
    Last Post: 04-12-2017, 02:12 PM
  2. Change a Range's cell background color to that of another cell's cond. format color
    By kamelkid2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2014, 12:57 PM
  3. Macro to change cell text color based on darkness of cell fill color
    By cincyshirm61 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-25-2014, 12:11 PM
  4. Replies: 2
    Last Post: 06-18-2013, 01:21 PM
  5. [SOLVED] count the length of each cell in a row and change color if greater than 24
    By mshirley15 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2012, 04:21 PM
  6. Change cell color if only if not blank
    By LaurenSmalley in forum Excel General
    Replies: 4
    Last Post: 02-04-2011, 03:06 PM
  7. color blank cell red if blank or empty and count its occurances
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2009, 08:21 AM

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