help on sumproduct() - sum by searching for a common sub strin
I think you are missing the point. I wasn't really trying to get the
shortest version, such formula pyrotechnics is largely pointless IMO, the
technically inverse equivalent of logorrhoea. TM made an 'improvement' on
mine, making the point that it was shorter, and included a superfluous --,
so I was ribbing him!
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"T. Valko" wrote in message
...
Even shorter:
Assuming DREGION and MISDUE are vertical arrays...
A1:C1 = FREIGHT; TRANSPORT; HQ BLNG
=SUMPRODUCT((ISNUMBER(SEARCH(A1:C1,DREGION)))*MISD UE)
--
Biff
Microsoft Excel MVP
"Bob Phillips" wrote in message
...
even shorter
=SUMPRODUCT((ISNUMBER(SEARCH({"HQ
BLNG","TRANSPORT","FREIGHT"},DREGION)))*MISDUE)
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my
addy)
"Teethless mama" wrote in
message ...
Shorter version:
=SUMPRODUCT(--(ISNUMBER(SEARCH({"HQ
BLNG","TRANSPORT","FREIGHT"},DREGION)))*MISDUE)
"Bob Phillips" wrote:
=SUMPRODUCT(--(ISNUMBER(SEARCH("HQ BLNG",DREGION)))+
(ISNUMBER(SEARCH("TRANSPORT",DREGION)))+
(ISNUMBER(SEARCH("FREIGHT",DREGION))),MISDUE)
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my
addy)
"Eddy Stan" wrote in message
...
Hi
Can anyone help me on this. thanks in advance.
I am getting answer required by the following formula
=SUMPRODUCT(--(DREGION="HQ BLNG EAST")+(DREGION="HQ BLNG
WEST")+(DREGION="HQ
BLNG NORTH")+(DREGION="HQ BLNG SOUTH"),MISDUE)
Where the first part is constant "HQ BLNG".
Is there any way to search the string in range DREGION and find the
sum.
Like "HQ BLNG xxxx", "xxxx TRANSPORT xxxx", "xxxxx xxxxx FREIGHT"
xxxx i mean to say that it could be any string.
Thank you
|