+ Reply to Thread
Results 1 to 8 of 8

Conditional formatting cells to show no format if the cell contains a date

  1. #1
    Registered User
    Join Date
    04-11-2010
    Location
    Singapore
    MS-Off Ver
    Office 365
    Posts
    44

    Conditional formatting cells to show no format if the cell contains a date

    Hi all, how can I condition format a cell to show no format if the cell contains a date

    Please see the attached book1.xlsx for more info

    Thanks for your help

    Book1.xlsx
    Last edited by xWiZardx; 05-03-2014 at 12:17 PM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Conditional formatting cells to show no format if the cell contains a date

    Try using
    =CELL("format",D10)<>"D1"

    see here
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    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
    44,413

    Re: Conditional formatting cells to show no format if the cell contains a date

    Use a formula instead of just checking the value in the cell.

    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


  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
    44,413

    Re: Conditional formatting cells to show no format if the cell contains a date

    etaf's formula checks the specific date format. I was trying to generalise in case you change the format.


    Regards, TMS

  5. #5
    Registered User
    Join Date
    04-11-2010
    Location
    Singapore
    MS-Off Ver
    Office 365
    Posts
    44

    Re: Conditional formatting cells to show no format if the cell contains a date

    Thank you TMS,

    I tried changing the cell format to "Date" and using the formula you provided but the conditional formatting doesn't activate, can you please take a look?

    Thanks a lot

    Book2.xlsx

  6. #6
    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
    44,413

    Re: Conditional formatting cells to show no format if the cell contains a date

    Try this, with a slight amendment to the CF formulae.

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

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

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


    I also copied and pasted the format from the first cell to the others ... but then made some General


    Regards, TMS
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-11-2010
    Location
    Singapore
    MS-Off Ver
    Office 365
    Posts
    44

    Re: Conditional formatting cells to show no format if the cell contains a date

    Hmm... still the same when I format the cell to "Date"

    But thanks anyway, I'll just format those cells to "custom"

  8. #8
    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
    44,413

    Re: Conditional formatting cells to show no format if the cell contains a date

    If you start with a cell that is formatted as General and type in a string that Excel recognises as a date, it will automatically change the format of the cell to Date and, typically, it wii copy the format from previous rows.


    Regards, TMS

+ 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. Replies: 1
    Last Post: 01-30-2014, 10:04 AM
  2. Replies: 3
    Last Post: 11-23-2013, 06:21 AM
  3. Replies: 2
    Last Post: 07-28-2013, 03:28 PM
  4. Replies: 5
    Last Post: 06-30-2013, 06:54 PM
  5. Conditional Date Formatting with a Custom Cell Format
    By kqueen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-28-2012, 01:48 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