+ Reply to Thread
Results 1 to 5 of 5

Using condition format to check if day equals Friday

  1. #1
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Smile Using condition format to check if day equals Friday

    Hi Guys,

    I have a spreadsheet that I use to reference what is happening on a daily basis.

    In cell AA1 I have the formula '=today()' and then I have in column 'B' a list of courses that start on certain days and if they match todays date then I change the font colour to Red and courses starting tomorrow are formatted to Orange using the condion 1: 'Cell Value eual to' and then '=$aa$1' and for condition 2 '=$aa$1+1'.

    I have a formula using weekday and a lookup table to show the days of the week Sunday being 1 and Saturday being 6 the lookup table will return the day name respectively.

    What I wanted to know is when the cell containing the vlookup data for the days of the week equals 'Friday'. Is there a way to get conditional format to check cell the cell 'aa3' to see if it equals friday and then have a 3rd condition where is would change the colour of Mondays courses that are starting.

    So basically somewhere along the lines of: if cell aa3="Friday" then format '=$aa$1+3' to what ever colour font I require.

    Is this possible?

    Thanks in advance.
    Best Regards.

    Michael
    -----------------------------------
    Windows Vista, Microsoft Office 2007

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Zyphon

    Set up conditional formatting in cell AA3 with the following parameters :

    Formula Is
    =$AA$1="Friday"

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by Zyphon
    I have a formula using weekday and a lookup table to show the days of the week Sunday being 1 and Saturday being 6 the lookup table will return the day name respectively
    You don't really need a LOOKUP table for that. If you have a date in A1 you can return the day of the week with the formula

    =TEXT(A1,"dddd")

  4. #4
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Smile

    @daddylonglegs

    Thanks for the tip, that is a much simpler way to do it.

    @dominicb

    Thanks for your help, however I don't think I explained myself to clear.

    What I needed was for the conditional format to check for Friday in cell AA1.

    If cell AA1 did equal Friday then it would automatically highlight Monday's date for me also. In this case it would be the value of AA1 say for the Friday just gone, 18/05/07, now in the cell next AA2 using the formula daddylonglegs just gave me. So I need to highlight Monday so it would be aAA1+3.

    Basically I have it highlighting Friday ok as I just need it to check for a Friday and then highlight Monday also.

    Is this possible?

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Not sure I have this right but if you want to format AB1 if AA1 is the weekday before then try conditional formatting AB1 using "formula is" with the formula

    =AB1=IF(WEEKDAY($AA$1)=6,3,1)+$AA$1

+ 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