+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting on adjacent cells

Hybrid View

  1. #1
    Registered User
    Join Date
    09-14-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Conditional Formatting on adjacent cells

    Hey,
    I am wondering is there a way to make Excel 2007 apply conditional formatting to one or two cells to the left/right of the target cell?

    Thanks
    Last edited by ThatDamnRedhead; 09-16-2010 at 03:12 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional Formatting on adjacent cells

    Yes, Let's say you want A1:A20 and B1:B20 to turn red if C1:C20 has a number in it.
    Select A1:B20 and Conditional Formatting>New Rule> Using Formula

    =ISNUMBER($C1) When you put a number in C5, A5 and B5 will turn red (or however you format it). Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    09-14-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Conditional Formatting on adjacent cells

    That should work, but I want them to change different colors for different text, as your example would state, would be in column C. I am comparing two weeks ranks for various terms, so Column A would have this week, B would have last week, and C ill say "decreased" "increased" "No change" etc... So I think you have a good direction with the isnumber... is there a way of determining certain text instead of a number?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional Formatting on adjacent cells

    Yes, you'll need to set up different rules for different text, i.e. red for decreased, green for increased, etc.
    Proceed as above except
    =$C1="increased"
    Make sense?

  5. #5
    Registered User
    Join Date
    09-14-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Conditional Formatting on adjacent cells

    WORKS! Thank you!

+ 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