Merge Cells in one cell

Matinmusleh

New Member
Joined
Aug 15, 2024
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hello,
Need Help on my task,
I need to merge the OEM number in the attached without losing the TYPID.
 

Attachments

  • Screenshot 2024-08-15 100959.png
    Screenshot 2024-08-15 100959.png
    94.5 KB · Views: 20

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hello, please test this if it suits your cause:

Excel Formula:
=LET(
TYPID,B2:B28,
PRODUCT,C2:C28,
OEM,D2:D28,
a,UNIQUE(HSTACK(TYPID,PRODUCT)),
b,DROP(REDUCE("",UNIQUE(TYPID&PRODUCT),LAMBDA(a,b,VSTACK(a,TEXTJOIN(", ",,FILTER(OEM,TYPID&PRODUCT=b))))),1),
HSTACK(a,b))
 
Upvote 0
Hello, please test this if it suits your cause:

Excel Formula:
=LET(
TYPID,B2:B28,
PRODUCT,C2:C28,
OEM,D2:D28,
a,UNIQUE(HSTACK(TYPID,PRODUCT)),
b,DROP(REDUCE("",UNIQUE(TYPID&PRODUCT),LAMBDA(a,b,VSTACK(a,TEXTJOIN(", ",,FILTER(OEM,TYPID&PRODUCT=b))))),1),
HSTACK(a,b))
Hello hagia_sofia,
Thank you for reply, but it gives Error in "FILTER(OEM,TYPID&PRODUCT=b"
Kindly check
 
Upvote 0
Hello, what type of error is it (could you probably upload a screenshot)?
 
Upvote 0
try

Excel Formula:
=LET(
aol,E3:E12,
bol,D3:D12,
col,F3:F12,

coun,COUNTIF(aol,UNIQUE(aol)),
un,FILTER(UNIQUE(aol),coun>1),

HSTACK(XLOOKUP(un,aol,bol),un,DROP(REDUCE("",un,LAMBDA(a,b,VSTACK(a,TEXTJOIN(", ",,FILTER(col,E3:E12=b))))),1)))

1723715691659.png
 
Upvote 0
Hi Matinmusleh,
try this one.
=TEXTJOIN(", ",,FILTER($D$1:$D$18,($C$1:$C$18=H2)*($B$1:$B$18=G2)))
 

Attachments

  • TextJoin.JPG
    TextJoin.JPG
    109.4 KB · Views: 13
Upvote 0
It is hard to tell what is the problem: a) do you really have Excel 365? b) What language version of Excel are you using?
 
Upvote 0
@hagia_sofia ignore_empty parameter in TEXTJOIN is required. A Boolean is required between the two commas in front of the FILTER in OPs picture.
 
Upvote 0

Forum statistics

Threads
1,224,166
Messages
6,176,846
Members
452,745
Latest member
CommonManCrypto

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