SUMPRODUCT Problem

  • Thread starter Thread starter Freshman
  • Start date Start date
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.
 
Try
=SUMPRODUCT((LEFT(B2:B70,3)="HK1")*(C2:C70="L13"))

If this post helps click Yes
 
Back
Top