String match multiple concatinated word lists?

JJenkx

New Member
Joined
Sep 19, 2019
Messages
13
I have been building word lists to use for "smart" color coding. My previous word list formula works well (Doesn't match below table) "SUMPRODUCT(--(NOT(ISERR(SEARCH($J$4:$J$120,'Work Orders'!$E1)))))>0".

I tried adding concatenate function into my formula "SUMPRODUCT(--(NOT(ISERR(SEARCH(****CONCATINATE(------LIST1------$J$4:$J$120------LIST2****..........." but I am getting bad results. I am new to excel and no other coding experience. Is there a formula to search string matches using string concatenation?


Below is an example and I have color coded the answers that I want to return true. See Column H for formulas. H2 is: "=AND(NOT(ISBLANK($C2)),SUMPRODUCT(--(NOT(ISERR(SEARCH(CONCATENATE($F$2:$F$7,$C2,$G$2:$G$6),$D2)))))>0,SUMPRODUCT(--(NOT(ISERR(SEARCH($J$2:$J$5,$D2)))))=0)"

I added spaces to the words to provide proper spacing with concatenation.



Help Needed - Sumproduct search multiple concatnated strings in array.xlsx
BCDEFGHIJ
1User Data SampleActual Customer Name between these data1Actual Customer Name between these data2FormulaAnd does not contain
2WOCUSTOMER PARTS STATUS / JOB COMPLETEfrom inventoryFALSEPARTS STATUS / JOB COMPLETE
3101842RandCOFrom RandCo inventoryParts are at stockTRUERM/WH
4101843RandCON/AParts at WHTRUE02/WH
5101844RandCORandoCo has parts GB/WHUse WarehouseFALSEGB/WH
6101845AcompanyParts are in Acompany WarehouseUsing PartsTRUE
7101846RandCOLeft Warehouse 02/27/2020Parts are in TRUE
8101847RandCOCompleted 04/22/2020^^ Note - I want Sumproduct to search $D for matched string from Concat F2:F7&C2&G2:G6^^===>>TRUE
Sumproduct Search
Cell Formulas
RangeFormula
H2:H8H2=AND(NOT(ISBLANK($C2)),SUMPRODUCT(--(NOT(ISERR(SEARCH(CONCATENATE($F$2:$F$7,$C2,$G$2:$G$6),$D2)))))>0,SUMPRODUCT(--(NOT(ISERR(SEARCH($J$2:$J$5,$D2)))))=0)



In case I am being confusing. Goal is:
Search $D for string match from "any string in $F2:$F7, concated with $C2, concated with any string in $G2:$G6.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
"SUMPRODUCT(--(NOT(ISERR(SEARCH(****CONCATINATE(------LIST1------$J$4:$J$120------LIST2****..........."

This should give you an error because CONCATENATE is misspelled and CONCATENATE doesn't take range as argument.
 
Last edited:
Upvote 0
I have managed to get a working formula but It is longer than I hoped for. Does anyone have any suggestions?

On google docs here

Help Needed - 2ND From Work Sumproduct search multiple concatnated strings in array.xlsx
ABCDE
1User Data SampleActual Customer Name between these data1Actual Customer Name between these data2
2WOCUSTOMER PARTS STATUS / JOB COMPLETEfrom inventory
3101842RandCOFrom RandCo inventoryParts are at stock
4101843RandCON/AParts at WH
5101844RandCORandoCo has parts GB/WHUse Warehouse
6101845AcompanyParts are in Acompany WarehouseUsing Parts
7101846RandCOFrom RandCos' inventoryParts are in
8101847RandCOCompleted 04/22/2020
9
10New formula works but is so long ========>>FALSEAlmost settled for this ===========>>FALSE
11Is there a way to coerce Index intoFALSEbut It is not the perfect word logic I wantFALSE
12returning all of the concatinated string sets fromTRUETRUE
13 the 5 OR formulas at one time? ======>>>FALSEFALSE
14#VALUE!<<<===== When evaluating excel sees all of theFALSEFALSE
15#VALUE!strings I am trying to return to the search formulaTRUETRUE
161but I can't figure out how to return more than 6FALSEFALSE
17#VALUE!I am invested 24 hours into this one formula so farFALSEFALSE
18
Sumproduct Search
Cell Formulas
RangeFormula
A14:A17A14=SEARCH(INDEX($D$2:D$7&INDEX($B1&$E$2:E$6,N(IF(1,{1,2,3,4,5}))),N(IF(1,{1,2,3,4,5,6}))),$C1)
C10:C17C10=OR(ISNUMBER(SEARCH(INDEX($D$2:D$7&INDEX($B1&$E$2:E$6,N(IF(1,{1,2,3,4,5}))),N(IF(1,{1,2,3,4,5,6}))),$C1)),ISNUMBER(SEARCH(INDEX($D$2:D$7&INDEX($B1&$E$2:E$6,N(IF(1,{2,3,4,5}))),N(IF(1,{1,2,3,4,5,6}))),$C1)),ISNUMBER(SEARCH(INDEX($D$2:D$7&INDEX($B1&$E$2:E$6,N(IF(1,{3,4,5}))),N(IF(1,{1,2,3,4,5,6}))),$C1)),ISNUMBER(SEARCH(INDEX($D$2:D$7&INDEX($B1&$E$2:E$6,N(IF(1,{4,5}))),N(IF(1,{1,2,3,4,5,6}))),$C1)),ISNUMBER(SEARCH(INDEX($D$2:D$7&INDEX($B1&$E$2:E$6,N(IF(1,{5}))),N(IF(1,{1,2,3,4,5,6}))),$C1)))
E10E10=AND(SUMPRODUCT(--(NOT(ISERR(SEARCH($D$2:D$7&$B1,$C1)))))>0,SUMPRODUCT(--(NOT(ISERR(SEARCH($B1&$E$2:E$6,$C1)))))>0)
E11:E17E11=AND(SUMPRODUCT(--(NOT(ISERR(SEARCH($D$2:D$7&$B2,$C2)))))>0,SUMPRODUCT(--(NOT(ISERR(SEARCH($B2&$E$2:E$6,$C2)))))>0)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,283
Members
449,075
Latest member
staticfluids

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