Hi everyone, 
 
Here is what I need to do:
 
If cells AS2:AS4 are either blank or filled with zeros, I want cell AS6 to display #N/A. I can do this using this function: =IF(SUM(AS2:AS4),0,"#N/A")
 
however, if cells AS2:AS4 are not blank, I want to count the cells that contain a value of 2 and display the total in cell AS6, which I can do using this function: =COUNTIF(AS2:AS4,"2")
 
What I don't know is how to get both functions to work simultaneously. Can anyone help?
 
Thanks!
Amanda
				
			Here is what I need to do:
If cells AS2:AS4 are either blank or filled with zeros, I want cell AS6 to display #N/A. I can do this using this function: =IF(SUM(AS2:AS4),0,"#N/A")
however, if cells AS2:AS4 are not blank, I want to count the cells that contain a value of 2 and display the total in cell AS6, which I can do using this function: =COUNTIF(AS2:AS4,"2")
What I don't know is how to get both functions to work simultaneously. Can anyone help?
Thanks!
Amanda
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							