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/182198-sumproduct-problem.html)

nada

sumproduct problem
 
hi all,
i entered in B2 =if(LEN A2=0,"",A2) so if A2 is blank B2 will appear blank
but for example if i tried to enter in another cell the following:
sumproduct((C1:C7<"")*B1:B7) it returns error value as it sees B2 not blank,
can anyone help me?

Dave Peterson

sumproduct problem
 
Maybe a small variation that avoids text in column B:

=sumproduct(--(C1:C7<""),B1:B7)



nada wrote:

hi all,
i entered in B2 =if(LEN A2=0,"",A2) so if A2 is blank B2 will appear blank
but for example if i tried to enter in another cell the following:
sumproduct((C1:C7<"")*B1:B7) it returns error value as it sees B2 not blank,
can anyone help me?


--

Dave Peterson

Bob Phillips

sumproduct problem
 
=SUMIF(C1:C7,"<",B1:B7)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"nada" wrote in message
...
hi all,
i entered in B2 =if(LEN A2=0,"",A2) so if A2 is blank B2 will appear blank
but for example if i tried to enter in another cell the following:
sumproduct((C1:C7<"")*B1:B7) it returns error value as it sees B2 not
blank,
can anyone help me?




nada

sumproduct problem
 
thank u so much.

"Bob Phillips" wrote:

=SUMIF(C1:C7,"<",B1:B7)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"nada" wrote in message
...
hi all,
i entered in B2 =if(LEN A2=0,"",A2) so if A2 is blank B2 will appear blank
but for example if i tried to enter in another cell the following:
sumproduct((C1:C7<"")*B1:B7) it returns error value as it sees B2 not
blank,
can anyone help me?





nada

sumproduct problem
 
it did work, thanks a lot.

"Dave Peterson" wrote:

Maybe a small variation that avoids text in column B:

=sumproduct(--(C1:C7<""),B1:B7)



nada wrote:

hi all,
i entered in B2 =if(LEN A2=0,"",A2) so if A2 is blank B2 will appear blank
but for example if i tried to enter in another cell the following:
sumproduct((C1:C7<"")*B1:B7) it returns error value as it sees B2 not blank,
can anyone help me?


--

Dave Peterson



All times are GMT +1. The time now is 12:37 AM.

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