Hi,
I have struggled all day on this, in 1 column (B) I have a 10 rows of data containing initials then a number, like AAA8. I have a cell in A1 that contains the initials I want to query, like AAA.
How can I sum all the numbers together (B1-B10), they may be present multiple times in the list. In this example I want the Number 9.
A B
1 aaa aaa6
2 bbb3
3 aaa3
4 ccc1
5 ddd3
6 ggg5
7 hgh5
8 hsb2
9 sjs3
10 sns4
=SUMPRODUCT((0&SUBSTITUTE(B1:B10,A1,""))+0) This works if all the initals in B1-B10 start with AAA.
I have tried this =IF(LEFT(B1,3)=A1,((MID(B1,4,99))+0),0) but this only works for one row B1
If someone can take a look and advise that would be great.
Bookmarks