Match formula question?

M

Michael168

Can the below formula be shorten by using "Match"?


Formula=COUNTIF(J2:p2,"=1")+COUNTIF(J2:p2,"=7")+COUNTIF(J2:p2,"=11")+COUNTIF(J2:p2,"=17")+COUNTIF(J2:p2,"=21")+COUNTIF(J2:p2,"=27")

Thanks for helping.

Michael16
 
A

Aladin Akyurek

=SUMPRODUCT(--ISNUMBER(MATCH($J$2:$P$2,{1,7,11,17,21,27},0)))

=SUM(COUNTIF($J$2:$P$2,{1,7,11,17,21,27}))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top