I'm trying to SUMIF numbers in one column if text strings in an adjoining column contain specific text. For instance, if Column A contains a series of text string like this:
COLUMN A
A2: some text etc. other text SEARCH-VALUE more text, even more text, etc.
A3: another string SEARCH-VALUE more string
A4: yet another string SEARCH-VALUE yet more string
[etc...]
COLUMN B
B2: 42
B3: 24
B4: 87
[etc...]
And cell C2 contains this:
C2: SEARCHING-VALUE
What I need is a formula that refers to C2 but ignores the "ING" in SEARCHING-VALUE. (The "ING" is just an example. In my real-world problem the reference cell contains a hyphenated number, e.g.: 12-345678. The value in the text strings is a truncated version of that number, e.g.: 12-5678.)
If the reference cell (C2) contained the exact value I need to search for in the text strings, I could just use a formula like =SUMIF(A:A,"*"&C2&"*",B:B). What I need is a formula that ignores the "ING" (or the "34" in the number example) found in the reference cell.
COLUMN A
A2: some text etc. other text SEARCH-VALUE more text, even more text, etc.
A3: another string SEARCH-VALUE more string
A4: yet another string SEARCH-VALUE yet more string
[etc...]
COLUMN B
B2: 42
B3: 24
B4: 87
[etc...]
And cell C2 contains this:
C2: SEARCHING-VALUE
What I need is a formula that refers to C2 but ignores the "ING" in SEARCHING-VALUE. (The "ING" is just an example. In my real-world problem the reference cell contains a hyphenated number, e.g.: 12-345678. The value in the text strings is a truncated version of that number, e.g.: 12-5678.)
If the reference cell (C2) contained the exact value I need to search for in the text strings, I could just use a formula like =SUMIF(A:A,"*"&C2&"*",B:B). What I need is a formula that ignores the "ING" (or the "34" in the number example) found in the reference cell.