January 16, 2008

Highlight the Days of the Week With This Tutorial.

I wrote yesterday about a formula to automatically display the weekends in a column. Pretty soon after I published the article I received an e-mail with a very good question from a guy from my birth city Rotterdam named Michel. So what else could I have done than to fit this reader question right in;).

 

Michel asked me this; this is a very good tip but now you’ve entered the weekends in a second column, what if I don’t want to add a second column because that is where my data is filled in. Is there a way to display the weekends in another way?

 

Yes, there is; it’s possible to change the fonts, the background colour or have the dates underlined or bolded.

 

In this Excel Tip and Trick I’m showing you how to highlight the weekends by giving the cells another background colour.

 

I’m using the same data as in yesterday’s article.

 

 

Excel-tip-trick-pic1

 

 

Excel-tip-trick-pic2 

 

 

 

 

 

 

 

 

 

 

 

You have now marked the Sundays because this function returns the days as an integer ranging from 1 (Sunday) to 7 (Saturday) by default.

 

Excel-tip-trick-pic3 

 If you want to mark the Saturdays with an other colour you change the 1 into a 7 which is now the formula  =WEEKDAY($A2)=7.

  

Excel-tip-trick-pic4 

 

 

 

 

 

 

Excel-tip-trick-pic5

  

 

 

 

  

I hope you all liked this Excel Tip & Trick and thanks Michel for sending it in.

Filed under Excel Tips & Tricks, Reader Questions