How to Calculate Male Female Ratio in Excel (3 Methods)

Method 1 – When the Number of the Population Is Provided

male female ratio dataset


1.1. Using the GCD Function

  • Create a New Column for GCD (Greatest Common Divisor): Add a new column in your dataset to calculate the GCD.
  • Calculate the GCD Value:
    • Click on cell E5 (or any other empty cell in the GCD column).
    • Enter the following formula in the formula bar:
=GCD(C5,D5)

Here, C5 represents the number of males, and D5 represents the number of females.

male female ratio using GCD function

    • Drag the Fill Handle icon down to copy the formula to other cells in the GCD column.

 using GCD function

  • Compute the Male-Female Ratio:
    • Select cell F5 (or any other empty cell in the ratio column).
    • Enter the following formula in the formula bar:
=C5/E5&":"&D5/E5

This formula divides the male and female counts by the GCD value to obtain the desired ratio.

male female ratio using GCD function

    • Drag the Fill Handle to apply the formula to the remaining cells in the ratio column.

male female ratio using GCD function


1.2. Using TEXT and SUBSTITUTE Functions

  • Create a New Column for TEXT:
    • Add another column in your dataset to calculate the male-to-female ratio using the TEXT function.
  • Calculate the Ratio Using TEXT:
    • Click on cell E5 (or any other empty cell in the TEXT column).
    • Enter the following formula in the formula bar:
=TEXT(C5/D5,"#/####")

This formula calculates the ratio and formats it as a fraction.

male female ratio using TEXT & Substitute function

    • Drag the Fill Handle to apply the formula to other cells in the TEXT column.

TEXT & Substitute function

  • Convert Fraction to Colon Format:
    • Select cell F5 (or any other empty cell in the final ratio column).
    • Enter the following formula in the formula bar:
=SUBSTITUTE(E5,"/",":")

This formula (the SUBSTITUTE function) replaces the slash (“/”) with a colon (“:”) to represent the male-to-female ratio.

male female ratio using TEXT & Substitute function

    • Drag the Fill Handle to fill in the remaining cells with the converted ratios.

male female ratio using TEXT & Substitute function

Read More: How to Calculate Average Ratio in Excel


Method 2 – When the Male or Female Population % is Given

male female ratio dataset

  • Create a New Column for GCD (Greatest Common Divisor): Add a new column in your Excel sheet to calculate the GCD.
  • Calculate the GCD Value:
    • Select cell D5 (or any other empty cell in the GCD column).
    • Enter the following formula in the formula bar:
=GCD(C5,(100-C5))

Here, C5 represents the percentage of males (e.g., 40%).

male female ratio when male% given

    • Drag the Fill Handle down to copy the formula to other cells in the GCD column.

when male% given

  • Compute the Male-Female Ratio:
    • Select cell E5 (or any other empty cell in the ratio column).
    • Enter the following formula in the formula bar:
=C5/D5&":"&(100-C5)/D5

This formula divides the male percentage by the GCD value and calculates the corresponding female percentage.

 when male% given

    • Drag the Fill Handle to apply the formula to the remaining cells in the ratio column.

male female ratio when male% given

Read More: How to Calculate Ratio of 3 Numbers in Excel


Method 3 – Using COUNTIFS Function

male female ratio using COUNTIFS function

  • Create New Cells for Relevant Metrics:
    • Add new cells for the following metrics:
      • Total Active Male (cell G7)
      • Total Active Female (cell G8)
      • Greatest Common Divisor (GCD) (cell G9)
      • Ratio (cell G10)
  • Calculate the Total Active Male Count:
    • Click on cell I7 (or any other empty cell).
    • Enter the following formula in the formula bar:
=COUNTIFS(D5:D14,"Active",E5:E14,"Male") 

Here, D5:D14 represents the range of cells containing the activity status (Active or Inactive), and E5:E14 represents the range of cells containing the gender (Male or Female).

using COUNTIFS function

  • Calculate the Total Active Female Count:
    • Click on cell I8 (or any other empty cell).
    • Enter the following formula:
=COUNTIFS(D5:D14,"Active",E5:E14,"Female")

male female ratio using COUNTIFS function

  • Compute the Greatest Common Divisor (GCD):
    • Click on cell I9 (or any other empty cell).
    • Enter the following formula:
=GCD(I7,I8)

This formula calculates the GCD between the total active male count and the total active female count.

male female ratio using COUNTIFS function

  • Calculate the Male-Female Ratio:
    • Click on cell I10 (or any other empty cell).
    • Enter the following formula:
=I7/I9&":"&I8/I9

This formula divides the total active male count and total active female count by the GCD to obtain the desired ratio.

using COUNTIFS function


Download Practice Workbook

You can download the practice workbook from here:


Related Articles


<< Go Back to Ratio in Excel| Calculate in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Sowmik Chowdhury
Sowmik Chowdhury

Sowmik Chowdhuri, with a BSc in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, serves as a crucial Excel & VBA Content Developer at ExcelDemy. His profound passion for research and innovation seamlessly aligns with his unwavering dedication to Excel. In this role, Sowmik not only skillfully addresses challenging issues but also demonstrates enthusiasm and expertise in gracefully navigating intricate situations, highlighting his steadfast commitment to consistently deliver content of exceptional quality and value. Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo