Excel Formulas to Calculate a ratio from two numbers in Excel!!
Tags: excelformula, excelformulas
Published: 2021-11-12 07:18:50

---
title: Excel Formulas to Calculate a ratio from two numbers in Excel!!
published: true
date: 2021-11-06 17:26:23 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-calculate-a-ratio-from-two-numbers-in-excel/
---

Want to learn simple formulas on how to ** calculate a ratio from two numbers in Excel**? This post will give you an overview of how to do so using the  **GCD function** in Excel. Utilize the below-mentioned formulas!! 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)

## Generic Formula

- To calculate a ratio from two numbers in Excel, use the below  **formula**.

```
=num1/[GCD](https://geekexcel.com/how-to-use-excel-gcd-function-in-office-365-with-examples/)(num1,num2)&":"&num2/[GCD](https://geekexcel.com/how-to-use-excel-gcd-function-in-office-365-with-examples/)(num1,num2)

```

## Syntax Explanation

- **GCD** – This **[GCD function](https://geekexcel.com/how-to-use-excel-gcd-function-in-office-365-with-examples/)** returns the greatest common divisor of two or more integers.
- **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.
- **Division (/)** – It is used for dividing values or numbers.

## Practical Examples

Use the following steps to calculate a ratio from two numbers in Excel.

- For instance, you need to  **create a sample data**  in Excel.

![](https://geekexcel.com/wp-content/uploads/2021/11/Sample-data-3.png)
_Sample data_

- Then, to generate the ratio of two numbers to each other, you have to use the following formula in **[formula bar](https://geekexcel.com/how-to-use-formula-bar-for-various-purpose-in-excel-365/)**.

```
=B4/[GCD](https://geekexcel.com/how-to-use-excel-gcd-function-in-office-365-with-examples/)(B4,C4)&":"&C4/[GCD](https://geekexcel.com/how-to-use-excel-gcd-function-in-office-365-with-examples/)(B4,C4)

```

![](https://geekexcel.com/wp-content/uploads/2021/11/Use-the-Formula-4.png)
_Use the Formula_

- Now, you need to **Hit the Enter key** to get the  **result ** in the  **cell E4**.

![](https://geekexcel.com/wp-content/uploads/2021/11/Result-in-cell-E4.png)
_Result in cell E4_

- Finally, you have to **press Ctrl+ D key** to get the results in other columns.

![](https://geekexcel.com/wp-content/uploads/2021/11/Final-Output-1.png)
_Output_

## Conclusion

Hope you like this article on how to  **calculate a ratio from two numbers in Excel**. If you have any  **doubt**  regarding this article or have any other  **questions**  related to Excel, let me know in the  **comment**  section below.

Thank you so much for visiting  **[Geek Excel](https://geekexcel.com/)!! **If you want to learn more helpful formulas, check out [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!!**

**Continue Reading:**

- **[Formulas to Count Cells that contain numbers in Excel Office 365!!](https://geekexcel.com/formulas-to-count-cells-that-contain-numbers-in-excel-office-365/)**
- **[Excel Formulas to Sum the Values Between two Numbers!!](https://geekexcel.com/excel-formulas-to-sum-the-values-between-two-numbers/)**
- **[Formulas to Calculate the Average of Numbers!!](https://geekexcel.com/excel-formulas-to-calculate-the-average-of-numbers/)**
- **[Excel Formulas to Count Times in a Specific Range ~ Easy Tricks!!](https://geekexcel.com/excel-formulas-to-count-times-in-a-specific-range/)**
- **[Excel Formulas to Convert Numbers into Text ~ A Complete Guide!!](https://geekexcel.com/excel-formulas-to-covert-numbers-into-text-a-complete-guide/)**