View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default SUMPRODUCT with "Contains" criteria

If you change Find to Search, it will treat 1A and 1a the same.

Pete Rooney wrote:

Hi, Stefi,

This works too, as long as you want "1A" only and not "1A" OR "1a".

Thanks very much! :-)

Pete

"Stefi" wrote:

=SUMPRODUCT(--(NOT(ISERROR(FIND("1A",A1:A100)))),B1:B100)

Regards,
Stefi

€˛Pete Rooney€¯ ezt Ć*rta:

Good afternoon,
Is there any way in which SumProduct can be used with a "contains" criteria
- for instance, A1:100 contains product codes (for example) AZ1A1100,
ABCZ1A1200, 1A1300 and B1:B100 contains total sales for these products. I
want to extract values from column B for (for example) all products that
CONTAIN the string "1A".
I realise that I could use LEFT, RIGHT or MID as long as the "1A" appears in
the same place in the string, but I want something to cater for the times
when it doesn't.
Thanks in advance
Pete


--

Dave Peterson