Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2020, 07:46 AM
p45cal's Avatar
p45cal p45cal is offline Help required: Combining multiple matches in to a single cell Windows 10 Help required: Combining multiple matches in to a single cell Office 2019
Expert
 
Join Date: Apr 2014
Posts: 962
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Try, in B2, array-entering this formula:


Code:
=TEXTJOIN(", ",TRUE,IF(MATCH(IF(ISNUMBER(SEARCH(Varieties!$A$2:$A$20,$A2)),Varieties!$B$2:$B$20,""),IF(ISNUMBER(SEARCH(Varieties!$A$2:$A$20,$A2)),Varieties!$B$2:$B$20,""),0)=ROW(Varieties!$A$1:$A$19),IF(ISNUMBER(SEARCH(Varieties!$A$2:$A$20,$A2)),Varieties!$B$2:$B$20,""),""))
and copy down.

Not forgetting to add Rose to the list of Varieties on the Varieties sheet.

The simpler array-entered:
Code:
=TEXTJOIN(",",TRUE,IF(ISNUMBER(SEARCH(Varieties!$A$2:$A$20,$A2)),Varieties!$B$2:$B$20,""))
works but because you sometimes have multiple finds (eg. in row 7 you have HA HA MARL PINOT NOIR where both Pinot and Noir are found so the result shows as Pinot Noir,Pinot Noir, the more complex formula eliminateas those.


I'll leave you to envelop that formula in an IF statement to show Other when none are found.

Last edited by p45cal; 01-29-2020 at 04:43 AM. Reason: spelling
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help required: Combining multiple matches in to a single cell Help with some VBA code Required dmcg9760 Excel Programming 9 03-01-2016 03:59 PM
Help required: Combining multiple matches in to a single cell What IF statement required dr4ke Excel 8 09-01-2011 07:41 AM
Formula Help Required OTPM Excel 6 08-31-2011 02:58 AM
Help required: Combining multiple matches in to a single cell Help required with spacing rohanmalhotra Word VBA 3 08-11-2011 04:06 AM
Suggestion required domex Word 0 10-06-2010 05:35 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft