Excel Formulas to Create Gantt Chart with Weekends ~ Easy Tutorial!!
Tags: excelformula, conditionalformattin, excelformulas
Published: 2021-03-18 11:26:46

---
title: Excel Formulas to Create Gantt Chart with Weekends ~ Easy Tutorial!!
published: true
date: 2021-03-18 11:21:33 UTC
tags: ExcelFormula,Conditionalformattin,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-create-gantt-chart-with-weekends/
---

In the previous post, we have learned **[how to create the Gantt chart in Excel by using Conditional formatting?](https://geekexcel.com/excel-formulas-to-build-a-gantt-chart-conditional-formatting/)** Similarly, here we are going to see how to build a **Gantt chart with weekends in Excel by using the Conditional formatting option in Excel**. Let’s step into this article!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

[![Highlight weekends](https://geekexcel.com/wp-content/uploads/2021/03/Highlight-weekends.png)](https://geekexcel.com/excel-formulas-to-create-gantt-chart-with-weekends/highlight-weekends/#main)<figcaption id="caption-attachment-22523">Highlight weekends</figcaption>
## General Formula:

- To build a Gantt chart with weekends in Excel, you can use the below formula.

**=[WEEKDAY](https://geekexcel.com/how-to-use-weekday-function-in-microsoft-excel-365/)(date,2)>5**

## Syntax Explanations:

- **WEEKDAY** – In Excel, the [**WEEKDAY function**](https://geekexcel.com/how-to-use-weekday-function-in-microsoft-excel-365/) returns a number (ranging from 1 to 7) that represents the day of the week for a given date.
- **Date** – It represents the input range.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.

## Example:

Let’s consider the below example. Here we will show how to highlight the weekends from the input range.

- First, we will enter the month name in **Column B,** and followed by we will give the weekdays in **Column D** to **Column R**.
- Now we are going to **highlight the weekdays** in the selected range.

![Input Ranges](https://geekexcel.com/wp-content/uploads/2021/03/Input-Ranges-22.png)<figcaption id="caption-attachment-22524">Input Ranges</figcaption>

- Apply the above-given formula to the conditional formatting option.
- To know  **how to apply conditional formatting**  in Excel, just **refer to this article<u>:</u>[ How to Apply the Formula with Conditional Formatting In Excel?](https://geekexcel.com/how-to-apply-formula-with-conditional-formatting/)**
- Finally, it will highlight the weekdays and display the result as per the below image.

![Result](https://geekexcel.com/wp-content/uploads/2021/03/Result-25.png)<figcaption id="caption-attachment-22525">Result</figcaption>

## Bottom-line:

Hope you like this article on how to create the **Gantt chart with weekends in Excel by using the Conditional formatting option in Excel**. Let me know if you have any **doubts** regarding this article or any other **Excel/VBA** topic. Thank you so much for visiting our site!! To learn more, check out **[Geek Excel](https://geekexcel.com/) **and [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!!**

### Read Also:

- **[Excel Formulas to Build Gantt Chart by Week ~ Easy Tutorial!!](https://geekexcel.com/excel-formulas-to-build-gantt-chart-by-week-easy-tutorial/)**
- **[Excel Formulas to Apply Conditional Formatting Based on Past Due Dates!](https://geekexcel.com/excel-formulas-to-apply-conditional-formatting-based-on-past-due-dates/)**