SOLVED

count functions

Copper Contributor

Hi, I want to count a row of cells, but I only want to count them when another row of cells have numbers in them.

I've tried this but I don't get the result I want. =COUNTIFS(Medal!$E$19:$Z$19,"<>"&"*",Medal!$E$7:$Z$7,"<>"&"*")

Any help would be nice.

Thanks

3 Replies
best response confirmed by ronniesteel (Copper Contributor)
Solution

@ronniesteel 

As variant

=SUMPRODUCT( (LEN(Medal!$E$19:$Z$19)>0)*(LEN(Medal!$E$7:$Z$7)>0))

@Sergei Baklan 

 

Thanks for your help.

Works great. 

 

Cheers,

Ronnie.

@ronniesteel 

Ronnie, you are welcome

1 best response

Accepted Solutions
best response confirmed by ronniesteel (Copper Contributor)
Solution

@ronniesteel 

As variant

=SUMPRODUCT( (LEN(Medal!$E$19:$Z$19)>0)*(LEN(Medal!$E$7:$Z$7)>0))

View solution in original post