+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting 2 cells in case of an abbreviation

  1. #1
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Conditional formatting 2 cells in case of an abbreviation

    Good morning, in the attached file I have a format that turns me yellow in case there are 2 full cells out of 3.
    I would like to change it so that if there is an R in the third column, the yellow color does not apply but both remain gray.

    Example B22-D22 both gray.
    Also F30: G30 = gray.
    B12: C12 are fine.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-10-2017
    Location
    INDIA
    MS-Off Ver
    365
    Posts
    184

    Re: Conditional formatting 2 cells in case of an abbreviation

    Hi,
    Just like to inquire the value that you are using in D22 as "R" but when I checked it was "R " there was an extra space.
    Do you need than space or I shall trim that value.
    *If you wish you click on *,a way to say ThankYou

  3. #3
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Conditional formatting 2 cells in case of an abbreviation

    Thank you,
    okay without the space..excuse the error.

  4. #4
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Conditional formatting 2 cells in case of an abbreviation

    Good evening I send the correct file
    I removed the formulas from the formatting they were incorrect
    * and I manually entered the desired result in column B-C-D

    Every 3 columns are part of a person.

    Yellow color only if column B-C are full, all the rest gray.
    If column C-D are full gray because in the cover D is always and only the R and, when the R is always gray.
    I hope it is clearer.
    Thank you
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Conditional formatting 2 cells in case of an abbreviation

    Good evening I try to explain better.
    formatting must be applied on 3 columns at a time B-C-D;
    E-F-G etx..etc ..

    I need to color it yellow when the initials M and P are in row 3 and the cells in the rows below are both full.
    Then column B-C or E-F .... full
    All remaining full cells color gray.

  6. #6
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: Conditional formatting 2 cells in case of an abbreviation

    See if the following CF rules, applied to range B5:AH33, work for you:

    yellow fill, stop if true
    =OR(AND(B5<>"",C5<>"",INDEX($3:$3,COLUMN(B5))="M",INDEX($3:$3,COLUMN(C5))="P"),AND(A5<>"",B5<>"",INDEX($3:$3,COLUMN(A5))="M",INDEX($3:$3,COLUMN(B5))="P"))

    gray fill, stop if true
    =B5<>""

  7. #7
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Conditional formatting 2 cells in case of an abbreviation

    Perfect thanks it works
    thanks to the next hello

+ 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] Upper Case Conditional Formatting
    By tacnola in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-23-2019, 03:44 PM
  2. [SOLVED] Conditional formatting for a difficult case
    By billj in forum Excel General
    Replies: 3
    Last Post: 09-11-2017, 05:51 AM
  3. Conditional Formatting for Sentence Case
    By zobrien in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2017, 10:36 AM
  4. [SOLVED] Using Case Statement for Conditional Formatting
    By SCHammer843 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-18-2014, 08:48 AM
  5. Excel 2007 : Conditional formatting-Case # Color
    By schulzc in forum Excel General
    Replies: 1
    Last Post: 09-06-2011, 08:18 PM
  6. [SOLVED] case sensitive conditional formatting
    By Tel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-22-2006, 01:10 PM
  7. [SOLVED] Select Case Conditional Formatting Sub?
    By RCW in forum Excel General
    Replies: 2
    Last Post: 02-05-2005, 07:06 PM

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