Assuming you have a space before the - like your example and that there are no dashes in your company names
=SUMPRODUCT(--(MID($A$2:$A$500,1, SEARCH("-",$A$2:$A$500)-2)=$D$1),$H$2:$H$500) where D1 contains the company name
Does that work for you?
Assuming you have a space before the - like your example and that there are no dashes in your company names
=SUMPRODUCT(--(MID($A$2:$A$500,1, SEARCH("-",$A$2:$A$500)-2)=$D$1),$H$2:$H$500) where D1 contains the company name
Does that work for you?
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks