+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting - IF Statement

  1. #1
    Registered User
    Join Date
    09-27-2007
    Posts
    7

    Conditional Formatting - IF Statement

    I am preparing a spreadsheet for a Job List

    - The two important factors here are the invoice date (Column K), and the Pay date (Column L)

    - Originally, I needed the entire row to become red if the invoice date was over thirty days old, and the pay date had not been entered.

    This was solved by Formula Is = AND(NOW()-$K2>30,$L2="")

    However, I now want to have this condition applied to rows that do not contain data yet (other people using spreadsheet need this).

    When I copy the formatting to all rows, they all become red, and I would like them to stay white unless data is entered into column K (Invoice date)


    I think I need to do this with a single If function for the Formula is part, just do not know how.


    Basically ----

    If(k2="blank",End Formatting) Else AND(NOW()-$K2>30,$L2="")

    It is something like that I would think, but I do not know the logic to type it.



    Thanks everyone for your help to get me this far


    -todd debacker

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try changing formula to:

    = AND($K2<>"",NOW()-$K2>30,$L2="")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-27-2007
    Posts
    7

    No Luck

    That did not work for me.

    I attached the file I am testing with. All the rows are formatted with the old method I had. You can kind of see why certain ones are in red or white.
    Row 6 has no data and is red, that is what I am trying to fix.



    Thanks for the help so far
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Seems to have worked for me...

    see attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-27-2007
    Posts
    7

    Yeah, Works for me too now

    Thanks,


    Your file worked for me now, I guess I wasn't copying and pasting correctly or something.

    I actually figured it out doing it a different way.


    My Formula Is =IF($K3="",0,AND(NOW()-$K3>30,$L3=""))

    They both seem to be the same though.



    Thanks for all the help

    -todd debacker

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    No problem...

    but you don't actually need the IF() statement in a conditional format...

    The condition that will apply is based on a result of TRUE or FALSE... so just the And() part would suffice... if all conditions TRUE, then TRUE and apply the condition....if Any condition False, then FALSE and do not apply condition.

  7. #7
    Registered User
    Join Date
    09-27-2007
    Posts
    7
    Did not know that.


    Thanks for the tip though, I'll remember that

+ 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