+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting and Indirect Function

  1. #1
    Registered User
    Join Date
    03-14-2007
    Posts
    47

    Conditional Formatting and Indirect Function

    Hi im trying to get a conditional format to work where i have 2 rules,
    First one :=INDIRECT("G"&ROW())>0 and it highlights the row green
    Second One: =AND(INDIRECT("C"&ROW())>0,("G"&ROW())="""")
    but the second one isnt working, what im trying to do with the second rule is if a cell in row C is not blank and the Cell in row G is blank then to highlight the row red...but this isnt working, have i mistyped the formula or have the rules in the wrong order?
    please help
    thanks
    Last edited by Paul; 07-08-2011 at 06:30 PM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Conditional Formatting and Indirect Function

    How about:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    03-14-2007
    Posts
    47

    Re: Conditional Formatting and Indirect Function

    i've added that as the conditional format but nothing seems to happen it still stays no colour, the only time it changes is when column g is not blank and then the row goes green...i cant seem to make the row go red if column c is not blank and row g is...???
    in my rules i have the green one first and red rule second...but either order isnt working

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional Formatting and Indirect Function

    in any cell in row one
    rule 1
    =$G1>0
    rule 2
    =AND($C1<>"",$G1="")
    applied as far along a row as you need and extended down should do it
    of course if you start in say c5 adjust accordingly
    =AND($C5<>"",$G5="")
    Last edited by martindwilson; 02-03-2011 at 09:20 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    03-14-2007
    Posts
    47

    Re: Conditional Formatting and Indirect Function

    thats class thank you very much mart and conne

+ 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