Soldato
		
		- Joined
- 17 Oct 2005
- Posts
- 6,243
- Location
- North of Watford Gap
Hey guys,
This is a first for me - I'm trying to concoct an Excel formula which will present a percentage based on two matching values.
	
	
	
		
I've simplified this somewhat, but what I want to get is what percentage of boys are 'working below' and how many are working above.
COUNTIFS(B1:B8,"M") returns the correct number (4 in this case) and COUNTIFS(C1:C8,"X") returns 4 too, but combine them into =COUNTIFS(B1:B8,"M")/COUNTIFS(C1:C8,"X") and the value returned is way off (it should be 50% for both boys and girls).
Am I doing something spectacularly stupid here or am I just going the wrong way?
	
		
			
		
		
	
				
			This is a first for me - I'm trying to concoct an Excel formula which will present a percentage based on two matching values.
		Code:
	
	      A            B             C                D
    Name        Gender     Working Below    Working Above
-------------------------------------------------------------
1  Bob             M             X
2  Fred            M             X
3  Will            M                              X
4  Bill            M                              X
5  Jill            F             X
6  Jen             F             X                   
7  Jess            F                              X
8  Sally           F                              X
-------------------------------------------------------------
9  Boys                         50%              50%
10 Girls                        50%              50%I've simplified this somewhat, but what I want to get is what percentage of boys are 'working below' and how many are working above.
COUNTIFS(B1:B8,"M") returns the correct number (4 in this case) and COUNTIFS(C1:C8,"X") returns 4 too, but combine them into =COUNTIFS(B1:B8,"M")/COUNTIFS(C1:C8,"X") and the value returned is way off (it should be 50% for both boys and girls).
Am I doing something spectacularly stupid here or am I just going the wrong way?
 
	 
  
 
		