SUMPRODUCT Problem

F

Freshman

Dear experts,

I've a table with 5 columns. Column B is for Departments and column E is for
floor levels.

HK1-P L13
QGE L13
HK1-H L13
HK1-T L13
PPD L13
HK1-Z L14

My question is, I want to find out how many records of Department with
prefix HK1 and located in L13. I set the function as below but it is not
working:

=SUMPRODUCT((B2:B70="HK1*")*(C2:C70="L13"))

I use "*" wildcard for HK1 but the function cannot work. Please advise what
should be the correct function for my question.

Thanks in advance.
 
J

Jacob Skaria

Try
=SUMPRODUCT((LEFT(B2:B70,3)="HK1")*(C2:C70="L13"))

If this post helps click Yes
 

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