Home

Issue with Textjoin, multiple criteria. IF/AND function

%3CLINGO-SUB%20id%3D%22lingo-sub-962524%22%20slang%3D%22en-US%22%3EIssue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962524%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20attached%20an%20example%20workbook%20with%20some%20example%20data.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20goal%20is%20for%20someone%20to%20type%20in%20the%20product%20and%20the%20company%20category%20and%20be%20given%20a%20list%20of%20companies%20that%20match%20those%20two%20criteria.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20needs%20to%20be%20exact.%20I%20don't%20want%20it%20to%20show%20companies%20that%20have%20the%20right%20category%20but%20not%20the%20product.%20It%20needs%20to%20be%20both.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20working%20TEXTJOIN%20function%20in%20the%20example%20work%20book%20that%20successfully%20works%20at%20listing%20the%20companies%20that%20match%20the%20desired%20product.%20But%20I%20cannot%20find%20a%20way%20to%20integrate%20an%20IF(AND%20or%20INDEX%2FMATCH%20to%20also%20include%20the%20second%20required%20field%20(Category%20K15)%20as%20an%20'AND'%20function.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20know%20if%20you%20need%20more%20sample%20data.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-962524%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ETEXTJOIN%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-962625%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962625%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F435577%22%20target%3D%22_blank%22%3E%40MrRAMMount%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETranspose%20the%20category%20table%20to%20B12%3AE13.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%7B%3DTEXTJOIN(%22%2C%20%22%2CTRUE%3BIF(MMULT(%7B1%3B1%3B1%3B1%7D%2C(B6%3AE9%3DK14)*(B13%3AE13%3DK15))%2CB5%3AE5%2C%22%22))%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EI%20hope%20%3B%20is%20correct%20column%20separator.%20IF%20not%20you%20have%20to%20change%20it.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-962638%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962638%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1639%22%20target%3D%22_blank%22%3E%40Detlef%20Lewin%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20quick%20response.%20I%20am%20happy%20to%20reorganise%20the%20data%20however%20will%20work.%20I%20am%20unsure%20which%20orientation%20you%20mean%20when%20transposing%20the%20company%2Fcategory%20to%20B12-E13.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20mean%20along%20row%2012%20the%20company%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20along%20row%2013%20the%20category%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20the%20company%20labels%20are%20already%20along%20row%205%2C%20do%20we%20need%20to%20add%20them%20again%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20would%20your%20suggested%20formula%20change%20if%20I%20add%20the%20categories%20above%20the%20Company%20names%20(row%204)%3F%20I%20attached%20the%20updated%20workbook%20to%20show%20what%20I%20mean.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-962705%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962705%22%20slang%3D%22en-US%22%3EHi%3CBR%20%2F%3E%3CBR%20%2F%3EI%20tested%20it%20and%20it%20works%20great%20on%20the%20sample%20workbook%20I%20attached.%3CBR%20%2F%3E%3CBR%20%2F%3EHowever%20I%20cannot%20get%20it%20to%20work%20on%20my%20main%20workbook.%20On%20my%20main%20workbook%20I%20have%20different%20worksheets%20with%20the%20different%20data.%20Is%20there%20an%20issue%20with%20the%20functions%20you%20suggested%20when%20taking%20data%20from%20different%20sheets%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-962722%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962722%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F435577%22%20target%3D%22_blank%22%3E%40MrRAMMount%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDifferent%20worksheet%20it%20not%20a%20problem.%20Most%20likely%20you%20have%20more%20than%20four%20companies.%20Then%20you%20have%20to%20adjust%20this%20part%3A%26nbsp%3B%7B1.1.1.1%7D%20-%20which%20is%20for%20four%20companies%20(or%20four%20columns).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-962741%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962741%22%20slang%3D%22en-US%22%3EI%20have%2030%20companies%20(30%20columns)%20and%20thousands%20of%20products.%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20are%20only%20around%205%20categories%20spread%20over%20the%20companies.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-962747%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962747%22%20slang%3D%22en-US%22%3EDoes%20the%20position%20of%20the%20Categories%20matter.%20I%20can't%20understand%20why%20it%20works%20every%20time%20in%20the%20example%20workbook%2C%20but%20I%20get%20%23value%20everytime%20I%20try%20in%20my%20main%20one.%3CBR%20%2F%3E%3CBR%20%2F%3E%3DTEXTJOIN(%22%2C%20%22%2CTRUE%2CIF(MMULT(%7B1%2C1%2C1%2C1%7D%2C(A37%3AAD584%3DA4)*(A35%3AAD35%3DC2))%2CA36%3AAD36%2C%22%22))%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20is%20what%20I%20am%20trying%20to%20do.%20Assuming%20the%20data%20is%20where%20the%20formula%20says%2C%20is%20there%20any%20reason%20this%20shouldn't%20work%3F%20I%20tried%20it%20with%2030%20x%20%2C1%20but%20that%20didn't%20help.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20again%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-962770%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962770%22%20slang%3D%22en-US%22%3EI%20also%20tried%20it%20on%20my%20main%20worksheet%20(copy%20pasted%20all%20data%20into%20one%20work%20sheet%20to%20test).%3CBR%20%2F%3E%3CBR%20%2F%3EI%20selected%20the%20first%204%20columns%20so%20the%20%7B1%2C1%2C1%2C1%7D%20should%20be%20correct%20and%20it%20still%20returns%23VALUE!%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20there%20a%20formatting%20issue%20with%20these%20functions%3F%20Is%20there%20anything%20else%20I%20need%20ensure%20is%20a%20certain%20way%20to%20use%20MMULT%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-962866%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962866%22%20slang%3D%22en-US%22%3EI%20have%20tried%20it%20selecting%20only%20the%20first%204%20Companies%20and%204%20rows%20of%20products%20and%20it%20works%20fine.%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20do%20I%20modify%20the%20function%20to%20allow%20for%2030%20columns%20and%20between%205%20and%20550%20rows%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-963253%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-963253%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F435577%22%20target%3D%22_blank%22%3E%40MrRAMMount%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESorry%2C%20my%20fault.%3C%2FP%3E%3CP%3E%7B1%3B1%3B1%3B1%7D%20is%20for%20four%20product%20rows.%20More%20rows%20more%201's.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20can%20change%20you%20whole%20layout%20it%20would%20be%20easier%20with%20Power%20Query.%3C%2FP%3E%3CP%3EOne%20table%3A%20Company%20-%20Product%3C%2FP%3E%3CP%3EAnd%20the%20other%20table%3A%20Company%20-%20Category%3C%2FP%3E%3CP%3EAnd%20one%20table%20for%20the%20search%20criteria.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJoin%20the%20first%20two%20tables%20and%20filter%20with%20the%20third%20table.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-965159%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-965159%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1639%22%20target%3D%22_blank%22%3E%40Detlef%20Lewin%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again%20for%20your%20help.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20not%20very%20savvy%20with%20more%20complex%20functions%20in%20excel%20like%20MMULT%20and%20power%20querys.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20you%20suggest%20how%20the%20scaled%20up%20formula%20might%20look%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20the%20minute%20I%20have%20about%2030%20columns.%20Each%20column%201st%20row%20is%20a%20Company%2C%20each%20column%20second%20row%20is%20that%20company's%20category%20and%20each%20company%20has%20between%205%20and%20550%20products%20in%20that%20column.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20put%20the%20search%20criteria%20anywhere.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConsidering%20this%2C%20is%20there%20a%20way%20to%20still%20use%20the%20formula%20you%20suggested%20before%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-965452%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-965452%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20seem%20to%20have%20sorted%20it%20out.%20It%20works%20mostly%20as%20I%20intend.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20a%20link%20to%20an%20example%20workbook%20where%20it%20functions%20properly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1AKp5Ajg77tpwvCYECbnkg9fSls6SrdbYANrIA305trg%2Fedit%23gid%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1AKp5Ajg77tpwvCYECbnkg9fSls6SrdbYANrIA305trg%2Fedit%23gid%3D0%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20last%20question%20is%20what%20can%20I%20add%20to%20the%20working%20formula%20in%20the%20doc%20above%20that%20will%20not%20return%20any%20values%20if%20either%20of%20the%20search%20criteria%20are%20empty%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-965499%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-965499%22%20slang%3D%22en-US%22%3EHi%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20sorted%20it%20out%20finally%20now.%20I%20added%20an%20IF(OR%20with%20ISEMPTY%20to%20only%20start%20the%20TEXTJOIN%20function%20if%20both%20search%20cells%20are%20not%20empty.%3CBR%20%2F%3E%3CBR%20%2F%3E%3DIF(OR(ISBLANK(B5)%2CISBLANK(%24C%2412))%2C%22%20%22%2CTEXTJOIN(%22%2C%20%22%2CTRUE%2CIF((%24A%2452%3A%24AD%24604%3DB5)*(%24A%2450%3A%24AD%2450%3D%24C%2412)%2C%24A%2451%3A%24AD%2451%2C%22%22)))%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20for%20the%20help.%3CBR%20%2F%3E%3CBR%20%2F%3EJon%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-965530%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Textjoin%2C%20multiple%20criteria.%20IF%2FAND%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-965530%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F435577%22%20target%3D%22_blank%22%3E%40MrRAMMount%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3EThanks%20for%20the%20help.%3CBR%20%2F%3E%3CBR%20%2F%3EJon%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EYou're%20welcom%20Jon.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
MrRAMMount
Occasional Contributor

Hi

 

I have attached an example workbook with some example data.

 

My goal is for someone to type in the product and the company category and be given a list of companies that match those two criteria.

 

It needs to be exact. I don't want it to show companies that have the right category but not the product. It needs to be both.

 

I have a working TEXTJOIN function in the example work book that successfully works at listing the companies that match the desired product. But I cannot find a way to integrate an IF(AND or INDEX/MATCH to also include the second required field (Category K15) as an 'AND' function.

 

Let me know if you need more sample data.

 

Any help would be appreciated.

 

 

 

 

13 Replies

@MrRAMMount 

Transpose the category table to B12:E13.

{=TEXTJOIN(", ",TRUE;IF(MMULT({1;1;1;1},(B6:E9=K14)*(B13:E13=K15)),B5:E5,""))}

I hope ; is correct column separator. IF not you have to change it. 

@Detlef Lewin 

 

Hi

 

Thanks for the quick response. I am happy to reorganise the data however will work. I am unsure which orientation you mean when transposing the company/category to B12-E13.

 

You mean along row 12 the company 

and along row 13 the category?

 

If the company labels are already along row 5, do we need to add them again?

 

How would your suggested formula change if I add the categories above the Company names (row 4)? I attached the updated workbook to show what I mean.

 

Thanks

Hi

I tested it and it works great on the sample workbook I attached.

However I cannot get it to work on my main workbook. On my main workbook I have different worksheets with the different data. Is there an issue with the functions you suggested when taking data from different sheets?

Thanks

@MrRAMMount 

Different worksheet it not a problem. Most likely you have more than four companies. Then you have to adjust this part: {1.1.1.1} - which is for four companies (or four columns).

I have 30 companies (30 columns) and thousands of products.

There are only around 5 categories spread over the companies.
Does the position of the Categories matter. I can't understand why it works every time in the example workbook, but I get #value everytime I try in my main one.

=TEXTJOIN(", ",TRUE,IF(MMULT({1,1,1,1},(A37:AD584=A4)*(A35:AD35=C2)),A36:AD36,""))

This is what I am trying to do. Assuming the data is where the formula says, is there any reason this shouldn't work? I tried it with 30 x ,1 but that didn't help.

Thanks again
I also tried it on my main worksheet (copy pasted all data into one work sheet to test).

I selected the first 4 columns so the {1,1,1,1} should be correct and it still returns#VALUE!

Is there a formatting issue with these functions? Is there anything else I need ensure is a certain way to use MMULT?

Thanks
I have tried it selecting only the first 4 Companies and 4 rows of products and it works fine.

How do I modify the function to allow for 30 columns and between 5 and 550 rows?

@MrRAMMount 

Sorry, my fault.

{1;1;1;1} is for four product rows. More rows more 1's.

 

If you can change you whole layout it would be easier with Power Query.

One table: Company - Product

And the other table: Company - Category

And one table for the search criteria.

 

Join the first two tables and filter with the third table.

 

@Detlef Lewin 

 

Hi

 

Thanks again for your help. 

 

I am not very savvy with more complex functions in excel like MMULT and power querys.

 

Could you suggest how the scaled up formula might look?

 

At the minute I have about 30 columns. Each column 1st row is a Company, each column second row is that company's category and each company has between 5 and 550 products in that column.

 

I can put the search criteria anywhere.

 

Considering this, is there a way to still use the formula you suggested before?

 

Thanks

 

Hi

 

I seem to have sorted it out. It works mostly as I intend.

 

Here is a link to an example workbook where it functions properly.

 

https://docs.google.com/spreadsheets/d/1AKp5Ajg77tpwvCYECbnkg9fSls6SrdbYANrIA305trg/edit#gid=0

 

My last question is what can I add to the working formula in the doc above that will not return any values if either of the search criteria are empty?

 

Thanks

Hi

I have sorted it out finally now. I added an IF(OR with ISEMPTY to only start the TEXTJOIN function if both search cells are not empty.

=IF(OR(ISBLANK(B5),ISBLANK($C$12))," ",TEXTJOIN(", ",TRUE,IF(($A$52:$AD$604=B5)*($A$50:$AD$50=$C$12),$A$51:$AD$51,"")))

Thanks for the help.

Jon

 


@MrRAMMount wrote:
Thanks for the help.

Jon

You're welcom Jon.

 

 

Related Conversations
Removing duplicates when using TEXTJOIN
Kirsty Lowe in Excel on
6 Replies
Problem downloading Edge insider browser
HotCakeX in Discussions on
13 Replies
Help with an IF AND formula
aanaya6 in Excel on
3 Replies
IF FUNCTION ISN'T WORKING NO MATTER HOW SIMPLE THE COMMAND IS
thomasea in Excel on
6 Replies