How to combine a sumproduct formula with vlookup or index match

ripina

New Member
Joined
Nov 2, 2015
Messages
14
Using SUMPRODUCT I can test to see if a value (things) is found withing the Text cell (text column B).
I want to expand on that result and if TRUE, then fetch the value in the Other Things (column G) and place it in column D.

In the example I included the correct result or value that the formula should produce.


Excel 2010
ABCDEFGH
1
2
3
4TextResultResult 2ThingsOther Things
5Yellow dog on the grassTRUEspoonyellowspoon
6Warm gray sweaterFALSEFALSEorangecouch
7A red sun on the horizonFALSEFALSEgreencar
8Blue neon signs everywhereTRUEhousebluehouse
9Waves of color of TurquoisFALSEFALSEpinkbird
10Wearing hot pink socksTRUEbird
11Deep black eyesFALSEFALSE
12
13
14
Sheet3
Cell Formulas
RangeFormula
D8=G8
D10=G9
D5=G5
C5=SUMPRODUCT(--ISNUMBER(SEARCH($F$5:$F$9,B5)))>0
C6=SUMPRODUCT(--ISNUMBER(SEARCH($F$5:$F$9,B6)))>0
C7=SUMPRODUCT(--ISNUMBER(SEARCH($F$5:$F$9,B7)))>0
C8=SUMPRODUCT(--ISNUMBER(SEARCH($F$5:$F$9,B8)))>0
C9=SUMPRODUCT(--ISNUMBER(SEARCH($F$5:$F$9,B9)))>0
C10=SUMPRODUCT(--ISNUMBER(SEARCH($F$5:$F$9,B10)))>0
C11=SUMPRODUCT(--ISNUMBER(SEARCH($F$5:$F$9,B11)))>0
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Let's see if this will float the boat.

BCDEFG
4TextResultResult 2ThingsOther Things
5Yellow dog on the grassTRUEspoonyellowspoon
6Warm gray sweaterFALSEorangecouch
7A red sun on the horizonFALSEgreencar
8Blue neon signs everywhereTRUEhousebluehouse
9Waves of color of TurquoisFALSEpinkbird
10Wearing hot pink socksTRUEbird
11Deep black eyesFALSE

<colgroup><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet21

Worksheet Formulas
CellFormula
C5=SUMPRODUCT(--ISNUMBER(SEARCH($F$5:$F$9,B5)))>0
D5=IF(SUMPRODUCT(--ISNUMBER(SEARCH($F$5:$F$9,B5)))>0,INDEX($G$5:$G$9,SUMPRODUCT(ISNUMBER(SEARCH($F$5:$F$9,B5))*(ROW($G$5:$G$9)-ROW($G$4)))),"")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,387
Members
449,445
Latest member
JJFabEngineering

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top