+ Reply to Thread
Results 1 to 6 of 6

Recognize & highlight weekend dates from formula result

Hybrid View

  1. #1
    Registered User
    Join Date
    06-16-2014
    Location
    Australia
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Recognize & highlight weekend dates from formula result

    Hi All,

    Need to prepare a schedule (for monthly, fortnightly & weekly)

    Few things to work out
    1. There are 8 task in a month, Deadline is always 14th of the month unless it's weekend then it needs to move to friday
    2. There are 6 task prior to deadline which are based on
    i. Task 6 = deadline - 1 day
    ii. Task 5 = same as Task 6
    iii. Task 4 = task 4 - 1 day
    and likewise

    Above can somehow be managed however, want to highlight within the range of D9 : K20 where dates are Sat / Sun to color background of cell red via macro. Note: As they are not consecutive dates the conditional formatting didn't work.

    Purpose is the to highlight and user to manual change the dates before finalizing the schedule. after weekend dates are changed when we click button it needs undo red, coz they are no longer weekend date.

    Hope this makes sense.

    Attached sample spreadsheet.

    Appreciate if someone could look into this and advise resolution.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Recognize & highlight weekend dates from formula result

    1) Highlight D9:K20
    2) Apply conditional formatting rule of:

    =OR(WEEKDAY(D9)=1, WEEKDAY(D9)=7)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-16-2014
    Location
    Australia
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Re: Recognize & highlight weekend dates from formula result

    Tried above steps didn't work. in-spite of highlight D9 to K20, the formula only understands D9 cell and works on that cell address. how would it understand the all 96 cells I want to apply. Definitely I'm missing some link.
    However, please note, when go to individual cell and apply the formula it does. Surely, there's might be another way to do rather than applying this condition for each cell.

    Appreciate any assistance.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Recognize & highlight weekend dates from formula result

    If you follow the steps exactly, it works for the entire range. You have to click on D9 first so it's the "anchor" cell, then stretch to highlight the entire range.

    Now when you enter the CF formula using D9 as the selected anchor for the entire range, the formula self-adjusts for all the cells.

    Video example: http://screencast.com/t/zZXO8r9k5VJN

  5. #5
    Registered User
    Join Date
    06-16-2014
    Location
    Australia
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Thumbs up Re: Recognize & highlight weekend dates from formula result

    It worked....really appreciate your help.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Recognize & highlight weekend dates from formula result

    As it appears you've reached a conclusion, I've marked this thread SOLVED for you.
    FYI, this is done through the Thread Tools located above the first post in this thread. Thanks.

+ 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. formula to identify weekend dates
    By Barb Reinhardt in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 09:05 PM
  2. [SOLVED] formula to identify weekend dates
    By Cathy Landry in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  3. [SOLVED] formula to identify weekend dates
    By Cathy Landry in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] formula to identify weekend dates
    By Cathy Landry in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  5. [SOLVED] formula to identify weekend dates
    By Cathy Landry in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-23-2005, 03:05 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