Excel Formulas to Sum the Values in the cells that contain both X and Y!!
Tags: excelformula, excelformulas
Published: 2020-11-30 11:54:28

---
title: Excel Formulas to Sum the Values in the cells that contain both X and Y!!
published: true
date: 2020-11-30 09:10:14 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-sum-the-values-in-the-cells-that-contain-both-x-and-y/
---

In this short tutorial, we will discuss the simple **formulas to sum the values in the cells that contain both X and Y in Excel Office 365**. Let’s get started!! 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)

[![Formulas to sum both X and Y](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/11/formulas-to-sum-cells-that-contain-both-X-and-Y.png)](https://geekexcel.com/excel-formulas-to-sum-the-values-in-the-cells-that-contain-both-x-and-y/formulas-to-sum-cells-that-contain-both-x-and-y/#main)<figcaption id="caption-attachment-18274">Formulas to sum both X and Y</figcaption>
## General Formula:

- The below formula will help to sum the values in the cells.

**=SUMIFS(sum\_range,range,”\*X\*”,range,”\*Y\*”)**

## Syntax Explanations:

- **SUMIFS**  – The Excel **SUMIFS Function** will help to sum the cells that meet multiple conditions or criteria.
- **Criteria (X)**– It is the specific value or criteria which is used to sum the cells.
- **Sum-range** – It represents the input values given in the worksheet.
- **Multiplication (\*)** – In this symbol will multiply any two values or numbers.
- **Comma symbol (,)** – It is a separator which helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.
- **Range** – It represents the input data given in the worksheet.

## Example:

- Let’s consider the below image to sum the values in the cells that contain both X and Y.
- First, we will give the input values **Column B** and **Column C**.
- Then, enter the formula in the formula bar section.
- Finally, it will display the result in **Cell F3**.

![Example](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/11/Example-77.png)<figcaption id="caption-attachment-18273">Example</figcaption>

## Bottom-Line:

This page explained the **formulas used to sum the values in the cells that contain both X and Y in Excel Office 365**. Hope that this article is useful to you. Kindly, drop your **feedback** in the below **comment** section. Thank you so much for Reading!! Keep learning on **[Geek Excel](https://geekexcel.com/)!! **and [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!!**

### Read Ahead:

- **[Excel Formulas to Count Cells that contain Specific Text!!](https://geekexcel.com/excel-formulas-to-count-cells-that-contain-specific-text/)**
- **[Formulas to Count with COUNTIF Function in Excel Office 365!!](https://geekexcel.com/formulas-to-count-with-countif-function-in-excel-office-365/)**
- [**Formulas to Count Sold and Remaining Things in Excel Office 365!!**](https://geekexcel.com/formulas-to-count-sold-and-remaining-things-in-excel-office-365/)