Forum Discussion
spencer145
Oct 24, 2023Copper Contributor
How do I make a comparison by percentage with 2 groups?
I have two columns of 2 different age groups. How do I compare by percentage to 2 groups
- NikolinoDEGold Contributor
To calculate the total percentage comparison between the two groups in Excel, you can use the following formula:
- Calculate the total number of individuals in Group 1 and Group 2:
- For Group 1 (Column B), sum all the values in that column.
- For Group 2 (Column D), sum all the values in that column.
You can use the SUM function for this. Let's assume the total for Group 1 is in cell B22, and the total for Group 2 is in cell D22.
- Calculate the percentage difference:
In Excel, you can use the following formula to calculate the percentage difference:
=((B22-D22)/D22)*100
This formula will give you the percentage difference between the two groups. A positive percentage means that Group 1 has seen more individuals than Group 2, and a negative percentage means Group 1 has seen fewer individuals.
You can insert this formula in a cell to get the percentage comparison between the two groups based on the total number of individuals they've seen in their respective age groups. The text was created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and like it!
This will help all forum participants.
Percentage of what?
- spencer145Copper Contributor
Good morning,
I have 2 groups - 0-20 age (b) group and 21-up age (d) group. I am asked to get the total % comparison.
Would appreciate your assistance.
Saida
- spencer145Copper Contributorpercentage comparison in the difference between how many were seen from group b to group d.
- NikolinoDEGold Contributor
To compare two groups by percentage in Excel, you can create a simple percentage formula. Let's assume you have the data in two columns, say in columns A and B, and you want to calculate the percentage difference between the values in each row.
You can follow these steps:
- Create a New Column: Insert a new column where you want to display the percentage difference.
- Use the Percentage Formula: In the first cell of your new column (let's say it's in column C), enter the following formula:
=((B1-A1)/A1)*100
This formula calculates the percentage increase or decrease between the values in columns A and B. It subtracts the value in column A from the value in column B, divides the result by the value in column A, and then multiplies by 100 to get the percentage.
- Drag the Formula Down: After you enter the formula in the first cell of column C, click and drag the fill handle (a small square at the bottom right corner of the cell) down to apply the formula to all the rows you want to compare.
This will calculate the percentage difference between each corresponding pair of values in columns A and B and display the results in column C.
If you want to calculate the percentage difference in the reverse direction (i.e., from B to A), you can use a similar formula, but swap the positions of A and B in the formula:
=((A1-B1)/B1)*100
This formula will calculate the percentage difference from column B to column A.
The text was created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and like it!
This will help all forum participants.