+ Reply to Thread
Results 1 to 5 of 5

Conditionally format every individual cell in a selected range with multiple rules

  1. #1
    Registered User
    Join Date
    08-06-2011
    Location
    Oakville, Canada
    MS-Off Ver
    Excel 2003
    Posts
    8

    Conditionally format every individual cell in a selected range with multiple rules

    Hi,

    I am looking for a quick way to cond. format every cell in a given range with the following criteria:

    If the cell contains a C, I, or A format it beige with black font and IF cell contains P, E , Cl, format it Black with white font colour.

    The reason as to why i want to do this is to apply a macro later on to overwrite the conditional formatting with a manual format if the user desires. The macro will read: If there is a background colour on the cell, deactivate the conditional formatting.

    The range i have selected in W8 to AH 100 and i am looking for a quick way to add the above format without clicking every cell and aplying those rules.

    Thanks.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditionally format every individual cell in a selected range with multiple rules

    Hi

    Highlight your range(W8:AH100)

    In Conditional Format rules, put this formula for your first condition.

    =and($w8="C";$w8="I";$w8="A")

    Same way for your second one...
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    08-06-2011
    Location
    Oakville, Canada
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditionally format every individual cell in a selected range with multiple rules

    Hi,

    When i put that formula into the format with formula option, it doesnt apply it to the cells that have those values...

  4. #4
    Registered User
    Join Date
    08-06-2011
    Location
    Oakville, Canada
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditionally format every individual cell in a selected range with multiple rules

    Just to clear my question, i want to apply individual conditional formatting to every individual cell in that range... so that i can turn off/ delete the format for one cell via a macro if the user needs to format to different colour.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditionally format every individual cell in a selected range with multiple rules

    Formula works fine..

    Also there is no need to post same question, twice.

    http://www.excelforum.com/excel-gene...ific-cell.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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