Hello!
I'm stuck with a problem, hope someone can help!
In column G of Sheet1 I have a list of text, within each cell there can be from 2 to 8 letters, containing many abbreviations divided by slash signs ("/") (i.e "CA/LF").
Column N is the number I want to add (quantity of products made).
In A1 of Sheet2 I have abbreviations of two letters for which I want to make the calculation (i.e "CA")
In Cell B1 of Sheet2 I have the following formula:
=SUMPRODUCT(--('Sheet1'!$G$2:$G$9682=($A1&"/"&"*"));'Sheet1'!$N$2:$N$9682)
For some reason the "*" part doesn't work and the formula always returns 0. Any ideas on how can I get this formula to work?
Please note that using "search" or "find" would consider "WCA/SD" in the calculation for the "CA" search.
Thank you in advance for any help!
P.S: The actual formula in order to check if the abbreviation is in any part of the cell is: "=SUMPRODUCT(--('Sheet1'!$G$2:$G$9682=($A1&"/"&"*"));'Sheet1'!$N$2:$N$9682)+SUMPRODUCT(--('Sheet1'!$G$2:$G$9682=("*"&"/"&$A1);'Sheet1'!$N$2:$N$9682)+SUMPRODUCT(--('Sheet1'!$G$2:$G$9682=($A1));'Sheet1'!$N$2:$N$9682)+SUMPRODUCT(--('Sheet1'!$G$2:$G$9682=("*"&"/"&$A1&"/"&"*"));'Sheet1'!$N$2:$N$9682)
I'm stuck with a problem, hope someone can help!
In column G of Sheet1 I have a list of text, within each cell there can be from 2 to 8 letters, containing many abbreviations divided by slash signs ("/") (i.e "CA/LF").
Column N is the number I want to add (quantity of products made).
In A1 of Sheet2 I have abbreviations of two letters for which I want to make the calculation (i.e "CA")
In Cell B1 of Sheet2 I have the following formula:
=SUMPRODUCT(--('Sheet1'!$G$2:$G$9682=($A1&"/"&"*"));'Sheet1'!$N$2:$N$9682)
For some reason the "*" part doesn't work and the formula always returns 0. Any ideas on how can I get this formula to work?
Please note that using "search" or "find" would consider "WCA/SD" in the calculation for the "CA" search.
Thank you in advance for any help!
P.S: The actual formula in order to check if the abbreviation is in any part of the cell is: "=SUMPRODUCT(--('Sheet1'!$G$2:$G$9682=($A1&"/"&"*"));'Sheet1'!$N$2:$N$9682)+SUMPRODUCT(--('Sheet1'!$G$2:$G$9682=("*"&"/"&$A1);'Sheet1'!$N$2:$N$9682)+SUMPRODUCT(--('Sheet1'!$G$2:$G$9682=($A1));'Sheet1'!$N$2:$N$9682)+SUMPRODUCT(--('Sheet1'!$G$2:$G$9682=("*"&"/"&$A1&"/"&"*"));'Sheet1'!$N$2:$N$9682)