+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting wont work when I am using a formula

  1. #1
    Registered User
    Join Date
    07-23-2015
    Location
    Newcastle upon Tyne
    MS-Off Ver
    Office 365
    Posts
    3

    Conditional Formatting wont work when I am using a formula

    Hi

    I am a new user to this site and I have been stuck on this issue for a day now. I want to use the following formula but I wish for the text colour to change if a quotation needs to be sent but using conditional formation will not work. It will work in the rest of my worksheet but not in the column where this formula resides.

    Can anyone help please?

    =IF(A3="","No Contract",(IF(DATE(YEAR(A3),MONTH(A3),DAY(A3))<(TODAY()+90),"Send Quote",(DATE(YEAR(A3),MONTH(A3),DAY(A3)-90)))))

    Thank you

    Jo

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Conditional Formatting wont work when I am using a formula

    So say for Example if Your formula is in Cell C3, and it results "Send Quote", you want "Send Quote" to be displayed in Red?

    Is that right?

    See the file attached
    Attached Files Attached Files
    Cheers!
    Deep Dave

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Formatting wont work when I am using a formula

    Formulas for Condtional Formatting are written in a different way.
    You specify only the condition where the formula is TRUE.
    e.g.
    a normal formula might say
    =IF(A1="Red","Yes","No")

    To format that cell via conditional formatting just specify the condition where it is TRUE, so

    =(A1="Red")
    and format as required.

    Try
    =IF(A3="","No Contract",(IF(DATE(YEAR(A3),MONTH(A3),DAY(A3))<(TODAY()+90),"Send Quote",(DATE(YEAR(A3),MONTH(A3),DAY(A3)-90)))))

    =(AND(A3="No Contract",DATE(YEAR(A3),MONTH(A3),DAY(A3))<TODAY()+90)
    format as required
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    07-23-2015
    Location
    Newcastle upon Tyne
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Conditional Formatting wont work when I am using a formula

    Im using the less than formatting =TODAY() in B3

    Thank you

    jo
    Last edited by Jojojojo7; 07-23-2015 at 08:02 AM.

  5. #5
    Registered User
    Join Date
    07-23-2015
    Location
    Newcastle upon Tyne
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Conditional Formatting wont work when I am using a formula

    Thank you all

+ 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. IF Statment wont work due to =NOW() formula
    By Muzza86 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-16-2014, 09:23 AM
  2. [SOLVED] Excel Formatting wont work. Urgent help required.PLEASEEEEEEEEEEEEEEEEEEEEE.
    By Nikticia in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-09-2012, 09:18 AM
  3. Replies: 1
    Last Post: 07-19-2012, 05:37 AM
  4. Replies: 1
    Last Post: 07-09-2012, 10:08 AM
  5. Why wont max work on cells that have a formula
    By leedsexcel in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 11-23-2007, 02:31 PM
  6. Conditional Formatting Formula Will not work
    By jdunkel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2007, 09:24 AM
  7. Conditional formatting code wont work
    By Robert Hargreaves in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2005, 09:40 PM

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