Excel Formula - Comine text with formula ignoring duplicates

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,494
Office Version
  1. 2016
Platform
  1. Windows
Hello Friends,

Please have a look at the below sample data. I would appreciate if someone can provide a formula for this if possible
Currently I am using a UDF concatenateif which works fine but takes a long time to calculate as the actual data is very huge

VBA Working.xlsm
ABCD
1REF #ArticleArticle Join
2123Bed SetBed SetCASE 1
3123Bed SetBed Set
4123Bed SetBed Set
5123Side PillowBed Set - Side Pillow
6125Bed SetBed SetCASE 2
7125Fitted SheetBed Set - Fitted Sheet
8125Bed SetBed Set - Fitted Sheet - Bed Set
9125Side PillowBed Set - Fitted Sheet - Bed Set - Side Pillow
10
11Required in Cell C9Bed Set - Fitted Sheet - Side Pillowignore_duplicate
concat_if-experiment
Cell Formulas
RangeFormula
C2:C9C2=IF(OR(A2<>A1,B2=B1),B2,C1&" - "&B2)
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
How about
Excel Formula:
=IF(A2<>A1,B2,IF(ISNUMBER(SEARCH(B2,C1)),C1,C1&" - "&B2))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,619
Messages
6,120,550
Members
448,970
Latest member
kennimack

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