+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting for cells containing multiple values.

  1. #1
    Registered User
    Join Date
    12-20-2014
    Location
    India
    MS-Off Ver
    office 2007
    Posts
    73

    Question Conditional formatting for cells containing multiple values.

    The sample excel enclosed contains multiple values in single cells. Even some values are in brackets. Those values are generated with some other calculations and they are from 1 to 12. (i. e. among 12 houses of astrology chart)
    Is there any way for conditional formatting such as:

    1. Cells containing 6, 11 (any or both) should be 'Green'
    2. Cells containg 8, 12 (any or both) should be 'Red'.
    3. Cells containing both among above two groups should be 'Yellow' ???
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Conditional formatting for cells containing multiple values.

    Hi chaitreya,

    Part of the answer for your question lies in the "Stop if True" check boxes in the CF dialog. Read:
    https://support.office.com/en-us/art...rs=en-US&ad=US

    The second half of your question might be answered from:
    http://www.excelforum.com/excel-gene...t-strings.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    12-20-2014
    Location
    India
    MS-Off Ver
    office 2007
    Posts
    73

    Re: Conditional formatting for cells containing multiple values.

    Sorry for the delay in reply

    Thanks for the links. I have tried as mentioned in links. But unfortunately the data in each cells (of 'sample excel') is not properly formatted so as to work 'conditional formatting.
    The data in cells is a 'group' of houses (among 12). It is sometimes in bracket, sometimes without comma separated. and this data is changing (not constant)
    This is the reason, I am not able to use conditional formatting as explained in the links you had provided.
    Would be grateful to know how to use conditional formatting in such a situation.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Conditional formatting for cells containing multiple values.

    Apply this for condition formating in cell A1 and applies for whole range:

    =OR(ISNUMBER(SEARCH("6",A1)),ISNUMBER(SEARCH("12",A1)))

    format Green.

    Same for 8,12 in A1
    Quang PT

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting for cells containing multiple values.

    Quote Originally Posted by bebo021999 View Post
    =OR(ISNUMBER(SEARCH("6",A1)),ISNUMBER(SEARCH("12",A1)))
    That can be reduced to:

    =COUNT(FIND(6,A1),FIND(12,A1))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    12-20-2014
    Location
    India
    MS-Off Ver
    office 2007
    Posts
    73

    Re: Conditional formatting for cells containing multiple values.

    @ bebo021999, I have really learned a lot by this suggestion. Thanks.

    @ Tony Valko, It worked perfectly. Thanks.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting for cells containing multiple values.

    You're welcome. We appreciate the feedback!

+ 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. Conditional formatting, based ot multiple values in 2 cells.
    By kaosbg in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2014, 02:47 PM
  2. Replies: 4
    Last Post: 07-25-2014, 05:17 AM
  3. [SOLVED] Conditional Formatting Using Multiple Values in Other Data Validation Cells
    By Uclaid in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-21-2013, 06:47 PM
  4. Replies: 2
    Last Post: 08-27-2011, 03:05 PM
  5. Replies: 1
    Last Post: 08-20-2009, 10:58 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