ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUMPRODUCT Problem (https://www.excelbanter.com/excel-worksheet-functions/239897-sumproduct-problem.html)

Freshman

SUMPRODUCT Problem
 
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.

p45cal[_27_]

SUMPRODUCT Problem
 

Try
=SUMPRODUCT((LEFT(B2:B70,3)="HK1")*(E2:E70="L13"))


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=125955


Jacob Skaria

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

If this post helps click Yes
---------------
Jacob Skaria


"Freshman" wrote:

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.



All times are GMT +1. The time now is 07:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com