Excel Formulas to Build Gantt Chart by Week ~ Easy Tutorial!!
Tags: excelformula, conditionalformattin, excelformulas
Published: 2021-03-17 09:15:02

---
title: Excel Formulas to Build Gantt Chart by Week ~ Easy Tutorial!!
published: true
date: 2021-03-16 11:54:54 UTC
tags: ExcelFormula,Conditionalformattin,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-build-gantt-chart-by-week-easy-tutorial/
---

In the previous post, we have shown [**how to create a Gantt chart in Excel by using the conditional formatting option**](https://geekexcel.com/excel-formulas-to-build-a-gantt-chart-conditional-formatting/). Similarly, here we are going to learn the simple formula used to build a **Gantt chart by a week in Excel**. Let’s get 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)

[![Gantt chart by week](https://geekexcel.com/wp-content/uploads/2021/03/Gantt-chart-by-week.png)](https://geekexcel.com/excel-formulas-to-build-gantt-chart-by-week-easy-tutorial/gantt-chart-by-week/#main)<figcaption id="caption-attachment-22498">Gantt chart by week</figcaption>
## General Formula:

- You can use the below formula to create a Gantt chart based on weeks with conditional formatting.

**=[AND](https://geekexcel.com/how-to-use-logical-function-and-in-excel-365/)((date+6)>=start,date<=end)**

## Syntax Explanations:

- **AND** – This Function checks Multiple Conditions and returns [**TRUE **](https://geekexcel.com/use-true-function-in-microsoft-excel-365-simple-methods/)if all the conditions are evaluated as true otherwise returns **[FALSE](https://geekexcel.com/use-false-function-in-microsoft-excel-365-simple-methods/)**. Read more on the **[AND function](https://geekexcel.com/how-to-use-logical-function-and-in-excel-365/)**.
- **Date** – It represents the input value.
- **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 build a Gantt chart with conditional formatting.

- First, we will give the input values in **Column B** and **Column C**.
- From these inputs, we need to create the Gantt chart in **Column D** to **Column U**.

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

- Apply the above-given formula in 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 cells based on given input values and display the results as per the below image.

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

## Verdict:

Hope you like this article on how to **create the Gantt chart by a week in Excel with conditions formatting option**. Let me know your **doubts** in the below **comment** section. 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:

- **[How to Highlight All Errors Using Macros (VBA) In Excel Office 365?](https://geekexcel.com/how-to-highlight-all-errors-using-macros-vba-in-excel-office-365/)**
- **[Excel Formulas to Apply Conditional Formatting based on Another Column!](https://geekexcel.com/excel-formulas-to-apply-conditional-formatting-based-on-another-column/)**