Solved

formula for day of week

Posted on 2013-05-31
3
301 Views
Last Modified: 2013-05-31
I need to make cells change colour on certain days of the week but cannot figure out the formula.

I am trying to work on the basis 1 is Sunday, 2 is Monday etc. I only need to use Monday and Friday in my scenario.

So, in laymans terms I need to say, if today = Monday put 2 in cell C70 if its Friday put 6 otherwise put 0

I will then use the 2,6,0 to build my conditional formatting.

Hope this makes sense.
0
Comment
Question by:Jagwarman
3 Comments
 
LVL 13

Assisted Solution

by:Alexander Eßer [Alex140181]
Alexander Eßer [Alex140181] earned 250 total points
ID: 39210251
0
 
LVL 1

Accepted Solution

by:
Teknodok earned 250 total points
ID: 39210261
Hi,
Just paste the following formula in your cell :

=IF(OR(WEEKDAY(TODAY())=2,WEEKDAY(TODAY())=6),WEEKDAY(TODAY()),0)

Regards,
Teknodok
0
 

Author Closing Comment

by:Jagwarman
ID: 39210287
thanks
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
My experience with Windows 10 over a one year period and suggestions for smooth operation
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question