ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumproduct (https://www.excelbanter.com/excel-worksheet-functions/32730-sumproduct.html)

rud

Sumproduct
 

Is there a way to do a SUMPRODUCT using regular expressions? I need to
do something like:

=SUMPRODUCT((B11:B39 = "QUA")*(I11:I39 = ".*1/.*))


But that doesn't want to work...


--
rudPosted from http://www.pcreview.co.uk/ newsgroup access


JE McGimpsey

Not using regexps, but here's one way to get what you want:

=SUMPRODUCT(--(B11:B39 = "QUA"),--ISNUMBER(SEARCH("1/",I11:I39)))

In article , rud <rud.1rauku@
wrote:

Is there a way to do a SUMPRODUCT using regular expressions? I need to
do something like:

=SUMPRODUCT((B11:B39 = "QUA")*(I11:I39 = ".*1/.*))



All times are GMT +1. The time now is 11:10 AM.

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