View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_] Ashish Mathur[_2_] is offline
external usenet poster
 
Posts: 1,766
Default sumif - if the text has LCI in it

Hi,

you may also try this.

=SUMPRODUCT((ISNUMBER(SEARCH("LCI",A2:A1000,1))*(B 2:B1000)))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Jay" wrote in message
...
I have long texts in rows of column A and values in Column B. The
sheet has 1000 rows.
I want to add values in column B if the texts has "LCI" in it. I
tried sumif(A1:A1000,"LCI",B1:B1000), but gives value 0.