Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

formula for day of week

Posted on 2013-05-31
3
303 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction Perhaps more familiar to developers who primarily use VBScript than to developers who tend to work only with Microsoft Office and Visual Basic for Applications (VBA), the Dictionary is a powerful and versatile class, and is useful …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…

860 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