+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting statement

  1. #1
    Registered User
    Join Date
    08-21-2008
    Location
    Croydon
    Posts
    8

    Conditional Formatting statement

    Hi there i am trying to write a statement for some conditional formatting.

    I need to say

    IF CellA1 is not in date format dd/mm/yyyy then TRUE otherwise FALSE

    I have this but is not working so far. Can anyone help?

    =IF(NOT(TEXT,dd/mm/yyyy),TRUE,FALSE)

    Many Thanks.....

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon thomas.szwed.uk
    Quote Originally Posted by thomas.szwed.uk View Post
    IF CellA1 is not in date format dd/mm/yyyy then TRUE otherwise FALSE
    You can use this formula :
    =CELL("format",A1)="D1"
    However, because of the way Excel formulae handle formats you must use recalculate (F9) after the cell format has changed before the conditional format will reflect the changes.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    08-21-2008
    Location
    Croydon
    Posts
    8
    No i wont be using this formula in the cell, i will be using it in the conditional statement. so will this still work?

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    It's a conditional formatting formulae, like you asked for, but everything I said about recalculation still stands.

    DominicB

  5. #5
    Registered User
    Join Date
    08-21-2008
    Location
    Croydon
    Posts
    8
    Well that renders it useless then as conditional formatting is meant to be automatic!!!! Thanks anyway. does anyone else have a better forumla??

  6. #6
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi thomas.szwed.uk

    Conditional formatting is automatic, but the formula I provided is the only one that will do what is required, but Excel has a well documented hole where cell formats and formulae meet, and your requirement drops straight down that hole, ergo no-one else will "have a better forumla".

    Excel does not consider changing a cell's color to be significant to calculation, and therefore will not necessarily recalculate a formula when a cell color is changed.
    Source : http://www.cpearson.com/Excel/colors.aspx

    Your only solution will be to resort to VBA.

    HTH

    DominicB

+ 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. Excel 2007 : Conditional Formatting drag
    By Scott27 in forum Excel General
    Replies: 3
    Last Post: 04-25-2013, 09:15 AM
  2. Excel 2007 conditional formatting bug
    By jmessina in forum Excel General
    Replies: 0
    Last Post: 04-28-2008, 09:09 AM
  3. Conditional Formatting with an If statement
    By Shirley Munro in forum Excel General
    Replies: 3
    Last Post: 10-25-2007, 10:11 PM
  4. Conditional Formatting - IF Statement
    By todd.debacker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-27-2007, 03:39 PM
  5. Simplifying a Conditional Formatting Statement
    By ChemistB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-03-2007, 03:43 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