+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting error

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    46

    Conditional Formatting error

    Hi,

    I attached my spreadsheet. I made a conditional formatting that when Column M is Expired it will highlight the row as red but if it says Pending then it will highlight the row blue. When I try to copy the formula from the 1st rows and drag it down to the below rows. The Status column will say Expired and highlight the entire rows red.

    Is there a way to fix this that if valid until column, valid from column and redeemed date is blank then status will just be blank?

    voucher.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Conditional Formatting error

    It's because the condition for the second IF statement is TRUE, ie I16<=Today, J16<=Today, and L16 is blank (in this instance Excel treats the blank cells of I16 and J16 as 0, which is less than 41794, which is the numeric value for today's date.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Registered User
    Join Date
    05-23-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Conditional Formatting error

    Is there a work around then so that it won't highlight the red rows

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Conditional Formatting error

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I haven't tested that the third and forth IF statements need a similar addition, but I don't think they will.

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Conditional Formatting error

    your conditional format needs to apply to $M$14:$M$500

    also i think your formula isn't working properlyas gak pointed out
    probably do a isblank() check before expired
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Conditional Formatting error

    i just used Gak's formula from above post instead of using isblank


    the light blue conditional format was " " instead of "" and related to I14?
    should just rely purely on column M results
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Conditional Formatting error

    to begin with, try using this, instead of the formula you have in M...
    =IF(I14<=TODAY(),IF(J14>=TODAY(),IF(L14="","Pending",IF(L14<>TODAY(),"Redeemed","Expired")),""))

    Also, I would put TODAY() in its own cell and then reference it - TODAY() is a dynamic function and recalcs with any workbook change, it could slow things down for you if you have enough of them

    edit: I see that your last CF rule tests for " ".......remove the space
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    05-23-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Conditional Formatting error

    Thank you so much for all your help.

    I used humdingaling spreadsheet and it is fixed.

    Thank you for all your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Conditional Formatting - Run Time Error '13' Type Mismatch Error
    By ksp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2011, 07:37 PM
  2. Conditional Formatting Error
    By jamaljan in forum Excel General
    Replies: 4
    Last Post: 04-11-2010, 09:11 PM
  3. [SOLVED] conditional formatting for Error
    By krupesh in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  4. [SOLVED] conditional formatting for Error
    By krupesh in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. conditional formatting for Error
    By krupesh in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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