Condition required for difference

Cenin

New Member
Joined
Jan 30, 2023
Messages
23
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
  6. 2011
  7. 2010
  8. 2007
  9. 2003 or older
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
1675074085415.png

Hi, From this data, I would like to get the difference between columns 42437-42257 in accordance with the Gender Male or Female and show whether it is male or female is higher.
 

Attachments

  • 1675073737472.png
    1675073737472.png
    5.1 KB · Views: 7
  • 1675073822529.png
    1675073822529.png
    5.5 KB · Views: 6
  • 1675074010374.png
    1675074010374.png
    3.4 KB · Views: 7
It's okay sir, i got it, thanks
France Exec Gender Gap Analysis.xlsx
ABCDEF
1GENDERPCAverage on PC, Male & Female.DIFF IN EUROSExpected resultsFormula
2M591370211850013,50%13,50%
3M591370211850013,50%13,50%
4F59118521-18500-13,50%-13,50%
5M591370211850013,50%13,50%
6M591370211850013,50%13,50%
7M591370211850013,50%13,50%
8M591370211850013,50%13,50%
9M601393331500110,77%10,77%
10F60124333-15001-10,77%-10,77%
11F60124333-15001-10,77%-10,77%
12M601393331500110,77%10,77%
13F60124333-15001-10,77%-10,77%
14M601393331500110,77%10,77%
Sheet7
Cell Formulas
RangeFormula
F2:F14F2=D2/MAXIFS($C$2:$C$14,$B$2:$B$14,B2)
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Thanks for the response
 
Upvote 0
Hi Sir, need help. Column E refers to the Difference between Males and Females in a PC. I want to get the percentage of the difference compared with the absolute Female value in the PC.
France Exec Gender Gap Analysis.xlsx
ABDEFGH
1GenderPCAverage on PC, Male & Female.DIFF IN EUROSPC HIGHEST GENDER% DIFF B/W M&F on Highest AVG on PCExpected result
2F59118521-18500M-13,50%-15,61%
3M5913702118500M13,50%15,61%
4M5913702118500M13,50%15,61%
5M5913702118500M13,50%15,61%
6M5913702118500M13,50%15,61%
7M5913702118500M13,50%15,61%
8M5913702118500M13,50%15,61%
9F60124333-15001M-10,77%-12,06%
10F60124333-15001M-10,77%-12,06%
11F60124333-15001M-10,77%-12,06%
12M6013933315001M10,77%12,06%
13M6013933315001M10,77%12,06%
14M6013933315001M10,77%12,06%
Sheet5
Cell Formulas
RangeFormula
H2,H9H2=E2/D2
H3,H10H3=E3/D2
H4,H11H4=E4/D2
H5,H12H5=E5/D2
H6,H13H6=E6/D2
H7,H14H7=E7/D2
H8H8=E8/D2
 
Upvote 0
Would this be acceptable?

Cenin.xlsm
ABCDEFGH
1GenderPCAverage on PC, Male & Female.DIFF IN EUROSPC HIGHEST GENDER% DIFF B/W M&F on Highest AVG on PCExpected result
2F59118521-18499.67167M-13.50%-15.61%
3M59137020.671718499.67167M13.50%15.61%
4M59137020.671718499.67167M13.50%15.61%
5M59137020.671718499.67167M13.50%15.61%
6M59137020.671718499.67167M13.50%15.61%
7M59137020.671718499.67167M13.50%15.61%
8M59137020.671718499.67167M13.50%15.61%
9F60124332.6933-15000.65667M-10.77%-12.06%
10F60124332.6933-15000.65667M-10.77%-12.06%
11F60124332.6933-15000.65667M-10.77%-12.06%
12M60139333.3515000.65667M10.77%12.06%
13M60139333.3515000.65667M10.77%12.06%
14M60139333.3515000.65667M10.77%12.06%
15F611000000F0.00%0.00%
16F611000000F0.00%0.00%
17M62999990M0.00%#N/A
18M62999990M0.00%#N/A
Sheet1
Cell Formulas
RangeFormula
H2:H18H2=IFERROR(E2/MAXIFS(D$2:D$18,A$2:A$18,"F",B$2:B$18,B2),NA())
 
Upvote 0
Upvote 0
Hi Sir, Need a help; From this data, I am expecting the highlighted data, which are E= D columns average of PC on Female/male-1 (67751/52586-1), and F column requires F= D columns average of PC On Female / Total average on PC (C) which is (67751/57641-1) in regards to PC and Gender. Thanks
France Exec Gender Gap Analysis.xlsx
ABCDEF
1GenderPCTotal Average on PC.Average on PC, Male & Female.Expected resultsExpected results
2F52576416775128,84%17,54%
3F52576416775128,84%17,54%
4F52576416775128,84%17,54%
5F52576416775128,84%17,54%
6F52576416775128,84%17,54%
7F52576416775128,84%17,54%
8F52576416775128,84%17,54%
9M52576415258628,84%17,54%
10M52576415258628,84%17,54%
11M52576415258628,84%17,54%
12M52576415258628,84%17,54%
13M52576415258628,84%17,54%
14M52576415258628,84%17,54%
15M52576415258628,84%17,54%
16M52576415258628,84%17,54%
17M52576415258628,84%17,54%
18M52576415258628,84%17,54%
19M52576415258628,84%17,54%
20M52576415258628,84%17,54%
21M52576415258628,84%17,54%
22M52576415258628,84%17,54%
23M53576415258628,84%17,54%
24M53576415258628,84%17,54%
25M53576415258628,84%17,54%
26F53576416775128,84%17,54%
27F53576416775128,84%17,54%
Sheet16
 
Upvote 0
Like this?

Cenin.xlsm
ABCDEF
1GenderPCTotal Average on PC.Average on PC, Male & Female.Expected resultsExpected results
2F52576416775128.84%17.54%
3F52576416775128.84%17.54%
4F52576416775128.84%17.54%
5F52576416775128.84%17.54%
6F52576416775128.84%17.54%
7F52576416775128.84%17.54%
8F52576416775128.84%17.54%
9M52576415258628.84%17.54%
10M52576415258628.84%17.54%
11M52576415258628.84%17.54%
12M52576415258628.84%17.54%
13M52576415258628.84%17.54%
14M52576415258628.84%17.54%
15M52576415258628.84%17.54%
16M52576415258628.84%17.54%
17M52576415258628.84%17.54%
18M52576415258628.84%17.54%
19M52576415258628.84%17.54%
20M52576415258628.84%17.54%
21M52576415258628.84%17.54%
22M52576415258628.84%17.54%
23M53576415258628.84%17.54%
24M53576415258628.84%17.54%
25M53576415258628.84%17.54%
26F53576416775128.84%17.54%
27F53576416775128.84%17.54%
Sheet3
Cell Formulas
RangeFormula
E2:E27E2=MAXIFS(D$2:D$27,B$2:B$27,B2,A$2:A$27,"F")/MAXIFS(D$2:D$27,B$2:B$27,B2,A$2:A$27,"M")-1
F2:F27F2=MAXIFS(D$2:D$27,B$2:B$27,B2,A$2:A$27,"F")/C2-1
 
Upvote 1
Hi Sir, Thanks for the solution. One more thing required is that in regards of if it is male and male, Male and Female or Female and Female is a PC, if there is no difference between the Averages between them, I'd like to get the result as 0
France Exec Gender Gap Analysis.xlsx
ABCDEF
1GenderPCTotal Average on PC.Average on PC, Male & Female.Expected resultsExpected results
2F5367751677510,00%0,00%
3F5367751677510,00%0,00%
4F5267751677510,00%0,00%
5M5267751677510,00%0,00%
Sheet2
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,234
Members
449,092
Latest member
SCleaveland

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top