+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting to highlight day

  1. #1
    Registered User
    Join Date
    07-24-2018
    Location
    Dubai
    MS-Off Ver
    Office 2010
    Posts
    5

    Conditional formatting to highlight day

    Hi all,

    i have day (Sunday, Monday, Tuesday) in C4, cell, now i want to highlight only the value of C4 for whole month..

    thanks.routine.xlsx
    Last edited by dasameer69; 07-25-2018 at 08:28 AM. Reason: forget to attach file

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Conditional formatting to highlight day

    Hi, welcome to the forum

    Try this as your CF rule...
    =WEEKDAY(H$2,2)=MATCH($C4,{"Monday","Tuesday","Wednesday","Thursday"},1)

    (note, I did not add all the weekdays, I left them for you)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-24-2018
    Location
    Dubai
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Conditional formatting to highlight day

    it's showing error.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Conditional formatting to highlight day

    I believe that for conditional formatting purposes the days of the week will need to be listed then referenced using a formula such as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that this formula is referencing the days of the week that are listed in cells AN2:AN8 however the list could be moved to any location.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Conditional formatting to highlight day

    What error is it showing?
    Can you upload your file again showing that error?

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Conditional formatting to highlight day

    2 options:

    1. =$C4=UPPER(TEXT(H$2,"dddd"))

    2. =($C4=UPPER(TEXT(H$2,"dddd")))*LEN(H4)
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Conditional formatting to highlight day

    I had not tested my suggestion IN CF, but only in actually cells, seeing as CF only needs T/F.

    JetMc has pointed out to me - correctly, that you (I) cannot use an array in CF, so use this instead...
    =TEXT(H$2,"dddd")=$C4

    Essentially the same as post 6

+ 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: 5
    Last Post: 10-29-2015, 04:31 AM
  2. [SOLVED] how to highlight through conditional formatting
    By edunne in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-26-2014, 04:53 AM
  3. Highlight Whole Row - Conditional Formatting
    By Kinjo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-12-2014, 08:34 AM
  4. [SOLVED] Conditional formatting: Highlight second or more row
    By ExcelStefan in forum Excel General
    Replies: 1
    Last Post: 07-09-2012, 03:04 AM
  5. [SOLVED] Conditional Formatting for highlight
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-06-2012, 10:42 AM
  6. Conditional formatting highlight row
    By martinez_pedro in forum Excel General
    Replies: 2
    Last Post: 04-20-2010, 11:23 AM
  7. Replies: 2
    Last Post: 08-16-2009, 06:16 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