+ Reply to Thread
Results 1 to 3 of 3

Highlight or find cells that have a value of 0 in between two cells that have a value

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Highlight or find cells that have a value of 0 in between two cells that have a value

    Hello. Is there a way that I can find or highlight cells in a column that have a value of 0, AND are between two adjacent cells that are non-zero. For example, highlight B2=0, when A2 and C2 have non-zero values. This might take a macro I suppose.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Highlight or find cells that have a value of 0 in between two cells that have a value

    You can achieve this with the help of conditional formatting. To do this, select the range starting from B2 (say B2:E100) and make a New Rule for conditional formatting using the formula given below and set the format as per your choice.

    Please Login or Register  to view this content.
    This formula assumes that in your selected range B2 is the first cell (Active Cell) in the range. If your range is different, use the reference of first cell of the selected range in the formula given above and also change the reference of the adjacent cells.

    If you want to exclude blank cells from the rule i.e. you want to highlight the B2 only when it is not blank and meet your other criteria, use the below formula for conditional formatting.

    Please Login or Register  to view this content.
    Does this help?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Highlight or find cells that have a value of 0 in between two cells that have a value

    Hi
    =AND(B2=0,A2<>0,C2<>0)

    Try This
    Punnam

+ 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. Replies: 12
    Last Post: 09-02-2014, 02:07 PM
  2. Problem with macro that needs to find and highlight rows based on searching cells
    By mnk181 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2014, 12:24 PM
  3. find cells in a range that contain '-' symbol and highlight then them
    By pavlos in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2013, 12:28 AM
  4. [SOLVED] Find Duplicate - Highlight Cells
    By da80th in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 01-15-2013, 07:49 PM
  5. Find and highlight similar cells in a column
    By martinez_pedro in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-12-2011, 10:03 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