ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUMPRODUCT with text cells, returns #VALUE (https://www.excelbanter.com/excel-worksheet-functions/453589-sumproduct-text-cells-returns-value.html)

GijsKijlstra

SUMPRODUCT with text cells, returns #VALUE
 
INTRODUCTION: based criteria in columns A through H, matching column M, numbers in column Q need to be multiplied with numbers in column i, and the result added

=SUMPRODUCT(($A$3:$H$93=$M107)*(Q$3:Q$93)*($I$3:$I $93))

ISSUE: column Q contains besides numbers, also text. (without text in column Q, the formula works like a charm. However with the text in columns Q, it returns #VALUE)

I HAVE TRIED =SUMPRODUCT(($A$3:$H$93=$M107)*ISNUMBER(Q$3:Q$93)* ($I$3:$I$93)) but to no avail: it returns a number that looks like counting the number of cells that match the criteria iso adding them.

Can anyone help me, please!

Claus Busch

SUMPRODUCT with text cells, returns #VALUE
 
Hi Gijs,

Am Fri, 7 Jul 2017 05:01:35 +0100 schrieb GijsKijlstra:

INTRODUCTION: based criteria in columns A through H, matching column M,
numbers in column Q need to be multiplied with numbers in column i, and
the result added

=SUMPRODUCT(($A$3:$H$93=$M107)*(Q$3:Q$93)*($I$3:$I $93))

ISSUE: column Q contains besides numbers, also text. (without text in
column Q, the formula works like a charm. However with the text in
columns Q, it returns #VALUE)


try it with SUM. SUM ignores text and errors:
=SUM(IF($A$3:$H$93=$M$107;$Q$3:$Q$93*$I$3:$I$93))
and enter the formula with CTRL+Shift+Enter


Regards
Claus B.
--
Windows10
Office 2016

Claus Busch

SUMPRODUCT with text cells, returns #VALUE
 
Hi Gijs,

Am Fri, 7 Jul 2017 08:04:51 +0200 schrieb Claus Busch:

try it with SUM. SUM ignores text and errors:
=SUM(IF($A$3:$H$93=$M$107;$Q$3:$Q$93*$I$3:$I$93))
and enter the formula with CTRL+Shift+Enter


sorry, the formula is incomplete:
=SUM(IF(($A$3:$H$93=$M$107)*ISNUMBER($Q$3:$Q$93),$ I$3:$I$93*$Q$3:$Q$93))


Regards
Claus B.
--
Windows10
Office 2016

GijsKijlstra

It works like a charm! Herzlichen dank

Gijs

Claus Busch

SUMPRODUCT with text cells, returns #VALUE
 
Hi Gijs,

Am Fri, 7 Jul 2017 08:33:37 +0100 schrieb GijsKijlstra:

It works like a charm! Herzlichen dank


you are welcome.

Without array:
=SUMPRODUCT((($A$3:$A$93=$M$107)+ISNUMBER($Q$3:$Q$ 93)),$I$3:$I$93,$Q$3:$Q$93)


Regards
Claus B.
--
Windows10
Office 2016


All times are GMT +1. The time now is 05:24 PM.

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