I want a function that will add to a total number based on a partial text match.
Column B cells will have a quantity entered while column H cells will have text. If the text has "BED" in the string, then I want to multiply the number in column B (same row) by 2 and add to the total. If the text has "OED" in the string, then I want to multiply the number in column B by 1 and add to the total. My range is going to be rows 11:35.
Example:
Column A ......... Column H
.....3 .............. "Example BED"
.....7 .............. "Example BBB"
.....4 .............. "Example OED"
My Total would equal 10 (BED is a match so 2*3=6, and OED is a match so 1*4=4. 6+4=10)
I've tried to search other posts, and I think I need =SUMPRODUCT along with something like ISNUMBER(FIND("BED",H11:H35)) but I can't quite put it together.
Thanks for any help!
- Mark
Column B cells will have a quantity entered while column H cells will have text. If the text has "BED" in the string, then I want to multiply the number in column B (same row) by 2 and add to the total. If the text has "OED" in the string, then I want to multiply the number in column B by 1 and add to the total. My range is going to be rows 11:35.
Example:
Column A ......... Column H
.....3 .............. "Example BED"
.....7 .............. "Example BBB"
.....4 .............. "Example OED"
My Total would equal 10 (BED is a match so 2*3=6, and OED is a match so 1*4=4. 6+4=10)
I've tried to search other posts, and I think I need =SUMPRODUCT along with something like ISNUMBER(FIND("BED",H11:H35)) but I can't quite put it together.
Thanks for any help!
- Mark