+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting

  1. #1
    Registered User
    Join Date
    02-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    8

    Conditional Formatting

    I am working with a table that requires me to create a new column and lookup data in another worksheet. Once I have completed the vlookup function it yields a letter. There are different types of styles (A, B, C, D) and I just want the rows that contains D to be formatted with orange. Is there a way I can still use conditional formatting when the cells i reference contain a formula and not manually entered? Hope this makes sense.

  2. #2
    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

    What is the specific range that you want to format and what cell would contain D?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    02-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Conditional Formatting

    The data is in a table in column O and there are multiple cells that contain the value D because I used a vlookup to find the styles that matched the order no. in my table. (So all the cells in column O have a formula which gives me the different styles {a,b,c,d})

  4. #4
    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

    Let's assume the full range of interest is A2:O10.

    Select the *entire* range A2:O10 starting from cell A2.
    Cell A2 will be the active cell. The active cell is the
    one cell in the selected range that is not shaded. The
    formula will be relative to the active cell.

    Goto the Home tab>Styles>Conditional Formatting>
    Manage rules>New rule>Use a formula to determine
    which cells to format

    Enter this formula in the box below:

    =$O2="D"

    Click the Format button
    Select the desired style(s)
    OK out

  5. #5
    Registered User
    Join Date
    02-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Conditional Formatting

    No good. I'm starting to think because the cell I am referencing already contains a formula, its not picking up the D but the vlookup function instead. thanks anyway.

  6. #6
    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

    No, whether it's a formula or manually entered wouldn't matter.

    How about posting a SMALL sample file so we can see how your data is structured.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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