+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting First Occurrence of the Value 0 in a Row

  1. #1
    Registered User
    Join Date
    02-20-2019
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    6

    Conditional Formatting First Occurrence of the Value 0 in a Row

    Hi,

    I have been searching on google for some help on this issue but can only find helpful solutions about columns rather than rows. I am trying to use conditional formatting to highlight the first occurrence of a 0 in a row of numbers. I have multiple 0s and only want the first one (reading from left to right) to get highlighted. For example, below, the 0 after the 4 would get highlighted and not the ones following. Thanks!

    7 7 4 0 0 0 0 0 0 0 0 0 0 0

    Thanks!!

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Conditional Formatting First Occurrence of the Value 0 in a Row

    Use the following formula to specify which cells to highlight

    =AND(COUNTIF($A1:A1,0) = 1,A1 = 0,A1<>"")

  3. #3
    Registered User
    Join Date
    02-20-2019
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Conditional Formatting First Occurrence of the Value 0 in a Row

    Amazing, exactly what I was looking for!! Thank you. Worked great.

+ 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] Override conditional formatting (in general, without changing the conditional formatting)
    By Stormin' in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2017, 07:15 AM
  2. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  3. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  4. Find each occurrence in a column and do for each occurrence
    By jfoerch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2014, 12:29 PM
  5. Conditional formatting first occurrence in a row
    By hotelmrrsn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2014, 01:52 PM
  6. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  7. Multiple occurrence => 1 occurrence
    By exhortae in forum Excel General
    Replies: 4
    Last Post: 09-08-2010, 05:00 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