Sum of Adjacent Lookup Values in a Cell

Travis22

New Member
Joined
Apr 25, 2016
Messages
2
I'm using the lookup formula below to search user comments in cell B1 to find individual words listed in column C, and return the adjacent number value found in column D.

=LOOKUP(9999,SEARCH($C$1:$C$837,B1),$D$1:$D$837)

The problem I'm running into is that excel only returns the number value for the first word that it finds, when I really want it to return the sum of the adjacent number values of all of the words it finds in the cell.

Example: the comment: "The stores should stock more makes and more current styles and colors", should give me a comment sum of 24 - 10 for "styles" and 14 for "colors", but excel is only returning a 10 for "styles".


Please help!


Thank you!!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi Travis
Welcome to the board

Try:

=SUMPRODUCT(--ISNUMBER(SEARCH($C$1:$C$837,B1)),$D$1:$D$837)
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,114
Members
452,302
Latest member
TaMere

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