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
One more thing required
It would be better if you could include all the relevant circumstances & expected results when you first ask the question. ;)

Should we have an example with only "M" rows to complete all possibilities?
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi Sir, I can understand. The requirement changes frequently that's why i am unable to give all the circumstances at once. please excuse
France Exec Gender Gap Analysis.xlsx
ABCDEF
1GenderPCTotal Average on PC.Average on PC, Male & Female.ExpectedExpected
2M5794997948361,70%1,53%
3M5794997948361,70%1,53%
4M5794997948361,70%1,53%
5M5794997948361,70%1,53%
6M5794997948361,70%1,53%
7F5794997964471,70%1,53%
8M5794997948361,70%1,53%
9M5794997948361,70%1,53%
10M5794997948361,70%1,53%
11M5794997948361,70%1,53%
12M581431711431710,00%0,00%
13M581431711431710,00%0,00%
14F59134378118521-13,50%-11,80%
15M59134378137021-13,50%-11,80%
16M59134378137021-13,50%-11,80%
17M59134378137021-13,50%-11,80%
18M59134378137021-13,50%-11,80%
19M59134378137021-13,50%-11,80%
20M59134378137021-13,50%-11,80%
21F601431731431730,00%0,00%
22F601431731431730,00%0,00%
France Gender Gap bw M&F 1
 
Upvote 0
The requirement changes frequently that's why i am unable to give all the circumstances at once.
Surely the possibilities are always that a PC group might contain ...
  1. Both M and F entries
  2. Only F entries
  3. Only M entries
.. so any sample data should also contain each of those possibilities.

Cenin.xlsm
ABCDEF
1GenderPCTotal Average on PC.Average on PC, Male & Female.ExpectedExpected
2M5794997948361.70%1.53%
3M5794997948361.70%1.53%
4M5794997948361.70%1.53%
5M5794997948361.70%1.53%
6M5794997948361.70%1.53%
7F5794997964471.70%1.53%
8M5794997948361.70%1.53%
9M5794997948361.70%1.53%
10M5794997948361.70%1.53%
11M5794997948361.70%1.53%
12M581431711431710.00%0.00%
13M581431711431710.00%0.00%
14F59134378118521-13.50%-11.80%
15M59134378137021-13.50%-11.80%
16M59134378137021-13.50%-11.80%
17M59134378137021-13.50%-11.80%
18M59134378137021-13.50%-11.80%
19M59134378137021-13.50%-11.80%
20M59134378137021-13.50%-11.80%
21F601431731431730.00%0.00%
22F601431731431730.00%0.00%
Sheet4
Cell Formulas
RangeFormula
E2:E22E2=IF(ROWS(UNIQUE(FILTER(A$2:A$22,B$2:B$22=B2)))=1,0,MAXIFS(D$2:D$22,B$2:B$22,B2,A$2:A$22,"F")/MAXIFS(D$2:D$22,B$2:B$22,B2,A$2:A$22,"M")-1)
F2:F22F2=IF(E2=0,0,MAXIFS(D$2:D$22,B$2:B$22,B2,A$2:A$22,"F")/C2-1)
 
Upvote 0
Hi Sir, the formula E2 do not work for me
 
Upvote 0
Sorry; it works; Thanks for the help
 
Upvote 0
Hi Sir
Could you please help me get the expected averages which is the FEMALE + MALE /2 for each country, example (5.80%+0.14%/2)
Eviosys Gender GAP - Copie.xlsx
ABCDE
1GenderCountry/RegionPCFEMALE AVG ON MALEExpected result
2FBelgium495,80%2,97%
3FBelgium520,14%2,97%
4FBelgium520,14%2,97%
5MBelgium495,80%2,97%
6MBelgium520,14%2,97%
7FUK495,00%5,50%
8FUK525,00%5,50%
9FUK525,00%5,50%
10MUK496,00%5,50%
11MUK526,00%5,50%
Sheet3
 
Upvote 0
Surely the possibilities are always that a PC Country group might contain ...
  1. Both M and F entries
  2. Only F entries
  3. Only M entries
.. so any sample data should also contain each of those possibilities.
 
Upvote 0

Forum statistics

Threads
1,215,153
Messages
6,123,325
Members
449,097
Latest member
gameover8

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