+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting Formulas-attached a file

  1. #1
    Registered User
    Join Date
    02-28-2011
    Location
    Bournemouth, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Conditional Formatting Formulas-attached a file

    Please can you help me with the following formula. I am trying to get a colour coded calendar which will show a date but when it falls on a weekend it highlights the previous Friday. The formula entered in cell AD2 on worksheet Calendar is

    =IF(Notes!H18>=1,DATE(YEAR(Notes!H18),MONTH(Notes!H18)+21,DAY(Notes!H18)),DATE(YEAR(Notes!H15),MONTH(Notes!H15)-3,DAY(Notes!H15)))

    This highlights the dates based on my criteria but it is showing on a Sunday. The result of my formula could be any date in the year depending on the criteria set on the worksheet called Notes.

    I have attached a file which will hopefully help. I also require the same assistance with the formula AD8 on the same sheet which needs to avoid weekends also.

    If I have attacked this from the wrong angle please advise. Any help is greatly appreciated.
    Attached Files Attached Files
    Last edited by smart_as; 03-14-2011 at 09:36 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    re: Conditional Formatting Formulas-attached a file

    I would suggest you enter your formula
    Please Login or Register  to view this content.
    in a hidden helper cell, say A15

    The following will then skip weekends and return to the preceding friday
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-28-2011
    Location
    Bournemouth, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    re: Conditional Formatting Formulas-attached a file

    Hi arthurbr that worked thanks a lot for your help.

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    re: Conditional Formatting Formulas-attached a file

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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