+ Reply to Thread
Results 1 to 2 of 2

Nested Ifs In Conditonal Formats

  1. #1
    Registered User
    Join Date
    07-19-2005
    Posts
    8

    Question Nested Ifs In Conditonal Formats

    Is it possible to have nested conditions using Conditional Formatting?
    I have a range of columns that change colour according to their totals.
    Here is the Psuedo code.
    If E67 = 4 Then E10 Font = GREEN BOLD, F10 = RED BOLD
    Else E10= WHITE(invisible), E11 = WHITE(invisible),
    If F67 = 7 Then E10 Font = WhiteF10 = GREEN BOLD, G11 = RED BOLD........
    and so on.......
    Basically the first Column Header Font goes From white to Green , the next column header font goes red, then when that one changes green the next one goes red etc etc.
    If this makes sense to anyone, can it be done?

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    If E67 = 4 Then E10 Font = GREEN BOLD, F10 = RED BOLD
    Else E10= WHITE(invisible), E11 = WHITE(invisible),
    If F67 = 7 Then E10 Font = WhiteF10 = GREEN BOLD, G11 = RED BOLD........
    What happens to E10 if BOTH E67=4 AND F67=7?

    Remember, formulas can only 'pull' data from other cells, not 'push' data to other cells (you need VBA to do that). Therefore, you will need to set your CF in each specific cell you want to change. e.g. in E10:

    Condition1: Formula Is: =$E$67=4 set format as Green Bold

    I would set my normal format of this cell to White, as the only time you don't want white is when E67=4

    repeat as needed for cells F10, G11 and so on...

    HTH

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

+ 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