+ Reply to Thread
Results 1 to 7 of 7

HELP on Conditional Formats regarding Dates

  1. #1
    Forum Contributor wedzmer's Avatar
    Join Date
    06-13-2014
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    422

    HELP on Conditional Formats regarding Dates

    I'm trying to make an exception that:

    If the return value of say S11 = to any day between december 22-31 (of any particular year) therefore S11 should return " ".

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: HELP on Conditional Formats regarding Dates

    Don't understand what you mean by conditionally format a cell as " "

    But the logic would be on these lines..

    =IF(TEXT(A1,"mmdd")*1>=1222," ",FALSE)
    Last edited by Ace_XL; 07-07-2014 at 10:31 AM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor wedzmer's Avatar
    Join Date
    06-13-2014
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    422

    Re: HELP on Conditional Formats regarding Dates

    Quote Originally Posted by Ace_XL View Post
    Don't understand what you mean by conditionally format a cell as " "

    But the logic would be on these lines..

    =IF(TEXT(A1,"mmdd")*1>=1221," ",FALSE)
    It's the set of holidays for the month of december so there would be no work during that time. So I need to mark these dates to result empty or " ".

    Here's the catch why I'm having problem...

    Because cell S11 is a string for cell R11, wherein S11 has a formula of:

    =(IF(WEEKDAY(R11)=6,R11+3,R11+1))

    So if the result of that string would be along the dates of December 21-30, then it should result into " ".

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: HELP on Conditional Formats regarding Dates

    In that case

    =IF(TEXT(IF(WEEKDAY(R11)=6,R11+3,R11+1),"mmdd")*1>=1222," ",IF(WEEKDAY(R11)=6,R11+3,R11+1))

  5. #5
    Forum Contributor wedzmer's Avatar
    Join Date
    06-13-2014
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    422

    Re: HELP on Conditional Formats regarding Dates

    Quote Originally Posted by Ace_XL View Post
    In that case

    =IF(TEXT(IF(WEEKDAY(R11)=6,R11+3,R11+1),"mmdd")*1>=1222," ",IF(WEEKDAY(R11)=6,R11+3,R11+1))

    yeah, it worked!!! Thanks a lot!!!

    But by the way, is there a way to condition another cell with that string...

    I mean that formula worked, so i would like to make another connection on another cell...

    If S11 = " " (because of that formula) then cells s13:s20 should merge and produce a text "National Holiday".

  6. #6
    Forum Contributor wedzmer's Avatar
    Join Date
    06-13-2014
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    422

    Re: HELP on Conditional Formats regarding Dates

    the formula string:

    In that case

    =IF(TEXT(IF(WEEKDAY(R11)=6,R11+3,R11+1),"mmdd")*1>=1222," ",IF(WEEKDAY(R11)=6,R11+3,R11+1))
    Does not work in a longer case... I was trying to apply the same concept for January 1 and 2....

    the case was on H11 which had a formula of:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor wedzmer's Avatar
    Join Date
    06-13-2014
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    422

    Re: HELP on Conditional Formats regarding Dates

    the code posted by ACE_XL was very helpful..

    Please Login or Register  to view this content.
    but what if there is a specific date complete with month, day and year?

    I tried to use the same code but it doesn't work..

+ 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] Formating custom dates and comparing dates with different formats
    By OmniBlue in forum Excel General
    Replies: 2
    Last Post: 01-09-2014, 10:08 AM
  2. [SOLVED] PasteSpecial with number formats but without conditional formats or borders
    By bodhi808 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2013, 09:58 AM
  3. Formats dates ok 1/1 to 1/12 but not 1/13 to 1/31
    By jpietrowiak in forum Excel General
    Replies: 1
    Last Post: 08-28-2011, 12:40 PM
  4. Excel Dates with conditional Formats.
    By judasknight in forum Excel General
    Replies: 12
    Last Post: 08-20-2009, 11:29 AM
  5. [SOLVED] Automatic updating of Conditional Formats using dates
    By MAD in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2005, 12:06 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