I have a list of data and use sumproduct to return me various data based on fixed criteria.
I have now been asked to do the same thing but looking for a bunch of text strings that are contained in cell.
Is there a way to use someproduct to return a 1 in an array position based on whether a cell contains one of many text strings
something like
=someproduct(--(A1:A25="2011"),--(B1:B25contains(Text1, or text 2 or text 3)))
I can do this with multiple someproducts however the formula gets too long as there are 20 text variables I need to search for individually it would be great if I could use an OR and get it all into one.
Any help would be greatly appreciated
I have now been asked to do the same thing but looking for a bunch of text strings that are contained in cell.
Is there a way to use someproduct to return a 1 in an array position based on whether a cell contains one of many text strings
something like
=someproduct(--(A1:A25="2011"),--(B1:B25contains(Text1, or text 2 or text 3)))
I can do this with multiple someproducts however the formula gets too long as there are 20 text variables I need to search for individually it would be great if I could use an OR and get it all into one.
Any help would be greatly appreciated