X
Xxeno Cide
I am trying to have Excel count the number of cells that contain "10" in them within a given range. If every item in that given range has a 10 in it, I want it to say "You Win!" and if it doesn't I want it to display the number of cells with 10 in them out of the total number of cells.
This is the formula that should work:
=IF(COUNTIF((E4:E128,H4:H169,K4:K156,N4:N175,Q4:Q111,T4:T109,W4:W57,Z4:Z55,AC4:AC30,AF4:AF8,AI4:AI82),10)=1047,"You Win!",TEXT(COUNTIF((E4:E128,H4:H169,K4:K156,N4:N175,Q4:Q111,T4:T109,W4:W57,Z4:Z55,AC4:AC30,AF4:AF8,AI4:AI82),10),"0")&"/1047")
However, it returns a #VALUE! Error. I don't know why this formula won't work, because it works when I change the range to just a single column, but when I add multiple columns it no longer works.
This is the formula that should work:
=IF(COUNTIF((E4:E128,H4:H169,K4:K156,N4:N175,Q4:Q111,T4:T109,W4:W57,Z4:Z55,AC4:AC30,AF4:AF8,AI4:AI82),10)=1047,"You Win!",TEXT(COUNTIF((E4:E128,H4:H169,K4:K156,N4:N175,Q4:Q111,T4:T109,W4:W57,Z4:Z55,AC4:AC30,AF4:AF8,AI4:AI82),10),"0")&"/1047")
However, it returns a #VALUE! Error. I don't know why this formula won't work, because it works when I change the range to just a single column, but when I add multiple columns it no longer works.