Solved

formula for day of week

Posted on 2013-05-31
3
299 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 Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now