23.08.2023 Views

CFI-Excel-eBook

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Corporate Finance Institute Excel

Example 3

Suppose we want to highlight dates that occur on weekends. We can use the

OR and WEEKDAY functions. Suppose we are given the data below:

Using conditional formatting, we can highlight cells that fall on weekends. For

that, select the cells B2:B6 and in Conditional Formatting, we will put the

formula =OR(WEEKDAY(B2)=7,WEEKDAY(B2)=1, as shown below:

corporatefinanceinstitute.com

121

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!