Question regarding Sumproduct Formula

bluefish44

Board Regular
Joined
Apr 3, 2009
Messages
190
Hi All and Thanks in Advance for your help.

I have the following formula which is working as expected...It gives a TRUE or FALSE as to whether a string in cell b6 is contained in a list of cells (J2:J26).
Instead of the TRUE/FALSE, I am hoping for the formula to return the Actual value in cells J2:J26 that it found in B6 causing the result to be true.

SUMPRODUCT(--ISNUMBER(SEARCH($J$2:$J$26,B6)))>0
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
This would find the first:

=INDEX(J2:J26,MATCH(TRUE,INDEX(ISNUMBER(SEARCH(B6,J2:J26)),0),0))

This the last:

=LOOKUP(2,1/ISNUMBER(SEARCH(B6,J2:J26)),J2:J26)

If its just text you could use wildcard:

=INDEX(J2:J26,MATCH("*"&B6&"*",J2:J26,0))
 
Upvote 0
Steve the Fish - I tried your last formula as its really just the text 'm looking for but it didn't seem to work
 
Upvote 0
Steve the Fish - I tried your last formula as its really just the text 'm looking for but it didn't seem to work

Really? Whats in B6? It should find whatever is in B6 within any part of any cell within J2:J26 and return that cells value.
 
Upvote 0
see below - formula is in the far right column. The second one down should have returned S19MN because it is in the middle column but is giving an "N/A

CODES
MUG19CPS19MNMUG19CP
JEFELDMA,S19MNBZ19vFs27#N/A
CD19cPx77S19MN
40jwofyc,CALEE,S19MNCMN19CP#N/A
S19MNMUG19CPS19MN
S19MNFF19CPS19MN
S19MN19MNtfC40S19MN
S19MNM19ESDS19MN
S19MNM19FMRS19MN
S19MNPETHOMPSS19MN
CD19cPx77EE19MKCD19cPx77
CD19cPx77,S19MNM19SCLC#N/A
S19NPTM19MLG#N/A
M19ESES19MN
BUBICS19MN
S19MNANGIBSON
S19MNMABRY
S19MNGROWT
S19MNOSTROFF
x3wfgnt7SATAYLOR
S19MN,x3wfgnt7GROVE
x3wfgnt7KORN
BZ19vFs27HKILBY
BZ19vFs27M19SECP
S19MNLANDSTRO

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
I think you've got it backwards, steve the fish: the OP is looking for the which value in J2:J26 can be found within B6.

bluefish44, try using the Evaluate Formula tool to see how it works. If you still have questions, let us know. That formula uses some poorly documented tricks! :eek:
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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