+ Reply to Thread
Results 1 to 3 of 3

Need a formula for Conditional Formatting

  1. #1
    Forum Contributor
    Join Date
    06-03-2010
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    Excel 2013
    Posts
    135

    Need a formula for Conditional Formatting

    Hi to all,

    I need a formula for conditional formatting like that : if I change a date so according to date the column of day should be highlight.

    thanks......
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-22-2010
    Location
    Finland
    MS-Off Ver
    Excel 2003, 2007
    Posts
    95

    Re: Need a formula for Conditional Formatting

    Cell Value Is equal to =TEXT($C$2-1;"dddd")

    Just to make sure: in the example you highlighted Saturday while 28-Nov-10 being Sunday. That ^ formula will give you solution for that. However if you meant to highlight the "accurate" day, should the formula be

    =TEXT($C$2;"dddd")
    An example file is never useless!

    Tried an example function of mine and got errors?
    - Had you found them, replace ; with , and , with .

  3. #3
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Lightbulb Re: Need a formula for Conditional Formatting

    Use extra cell e.g F1 and enter the formula
    =weekday(C2)
    It will display the day number of week
    that is 1 for Sunday, 2 for Monday and ...... 7 for Saturday

    Enter formula for conditional formatting in cell c3 (Contains Saturday)

    =IF(F1=7, TRUE, FALSE)

    In cell d3 (Sunday) enter
    =IF(F1=1, TRUE, FALSE)

    Similarly in E3 --> =IF(F1=2, TRUE, FALSE)

    In F3 ---> =IF(F1=3, TRUE, FALSE)

    In G3 ---> =IF(F1=4, TRUE, FALSE)

    In H3 ---> =IF(F1=5, TRUE, FALSE)

    In I3 ---> =IF(F1=6, TRUE, FALSE) and in

    Note that all these formulas are to be entered in Conditional formatting Box

    Menu --> Format --- Conditional Formatting

    Enter the formula and format as required.

    Regards
    Mahju

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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