SOLVED

Problem with Countif and And

%3CLINGO-SUB%20id%3D%22lingo-sub-2802710%22%20slang%3D%22en-US%22%3EProblem%20with%20Countif%20and%20And%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2802710%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20expected%20the%20result%20to%20be%204.%20Why%20is%20it%200%20instead%3F%20Thanks!%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Annotazione%202021-10-01%20151128.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F314202i7DF0F38CDE46EC19%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Annotazione%202021-10-01%20151128.png%22%20alt%3D%22Annotazione%202021-10-01%20151128.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2802710%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2802728%22%20slang%3D%22en-US%22%3ERE%3A%20Problem%20with%20Countif%20and%20And%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2802728%22%20slang%3D%22en-US%22%3Eyou%20can't%20write%20an%20AND%20condition%20like%20that%20inside%20the%20COUNTIF.%20Use%20COUNTIFS%20instead%3A%20COUNTIFS(A1%3AA10%3B%22%26gt%3B3%22%3BA1%3AA10%3B%22%26lt%3B8%22)%3C%2FLINGO-BODY%3E
New Contributor

Hi all,

 

I expected the result to be 4. Why is it 0 instead? Thanks!

Annotazione 2021-10-01 151128.png

2 Replies
best response confirmed by JohnTwo (New Contributor)
Solution
you can't write an AND condition like that inside the COUNTIF. Use COUNTIFS instead: COUNTIFS(A1:A10;">3";A1:A10;"<8")
Thank you!!