+ Reply to Thread
Results 1 to 10 of 10

Why dont these formulas work in conditional formatting?

  1. #1
    Forum Contributor
    Join Date
    04-09-2015
    Location
    Jamestown, TN
    MS-Off Ver
    2010
    Posts
    111

    Why dont these formulas work in conditional formatting?

    Hi all,
    I have been doing some pain staking research on these formulas and cannot get them to work. I have a spread sheet that I need to meet some conditions on as follows:

    (F10) is a %
    (E10) is a date

    I am trying to color text red if, F10 is less than 100% and E10 is <= Today()

    These are what I have found that should work but cant get them to work? What am I missing?

    =AND(F10<100,MONTH(E10)=<(TODAY()))

    =AND(MONTH(E10)=<MONTH(TODAY()),F10<100)

    Thanks
    Dave

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,313

    Re: Why dont these formulas work in conditional formatting?

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



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    Cambridge, England
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Why dont these formulas work in conditional formatting?

    Since you are working with a percentage you may need to use <1 rather than <100 (1 = 100%).

    So:

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

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,313

    Re: Why dont these formulas work in conditional formatting?

    Alex, good thought ... but, if it's less than 1, it'll probably also be less than 100 (in this example).

    I suspect it's probably just the <= as opposed to the =<

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,313

    Re: Why dont these formulas work in conditional formatting?

    Alex: if it's, say, 20%, that's 0.2 so you are right in respect of what the OP should be testing for (<1) but I don't think that was the reason the formulae don't work. Don't need MONTH and symbols wrong way round.

  6. #6
    Registered User
    Join Date
    03-19-2013
    Location
    Cambridge, England
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Why dont these formulas work in conditional formatting?

    It depends on the number format of cell F10. I agree that anything less than 1 is also less than 100, so it will work most of the time.

    But if cell F10 is 100%, the value of cell F10 is 1. So if you use <100 it would colour the text red, but it shouldn't.

    Also agree that the main issue was <= rather than =<.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,313

    Re: Why dont these formulas work in conditional formatting?

    @Alex: thanks for the feedback. Seems we are in total agreement . Just need the OP to confirm he has the solution he seeks.

    Regards, TMS

  8. #8
    Forum Contributor
    Join Date
    04-09-2015
    Location
    Jamestown, TN
    MS-Off Ver
    2010
    Posts
    111

    Re: Why dont these formulas work in conditional formatting?

    thank you very much

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,313

    Re: Why dont these formulas work in conditional formatting?

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  10. #10
    Forum Contributor
    Join Date
    04-09-2015
    Location
    Jamestown, TN
    MS-Off Ver
    2010
    Posts
    111

    Re: Why dont these formulas work in conditional formatting?

    thank you, new to this all!
    Dave

+ 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. [SOLVED] Moved my document now formulas dont work
    By BPG420 in forum Excel General
    Replies: 4
    Last Post: 07-31-2013, 01:51 PM
  2. Replies: 8
    Last Post: 03-22-2013, 03:40 PM
  3. V look up dont work
    By WendyWoo1 in forum Excel General
    Replies: 1
    Last Post: 10-29-2012, 07:14 AM
  4. Replies: 1
    Last Post: 07-19-2012, 05:37 AM
  5. Formulas dont work
    By comotoman in forum Excel General
    Replies: 4
    Last Post: 10-03-2005, 02:05 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