Support Excel Macro to hide Concatenated cell & line break

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

MHELTech

Thread Starter
Joined
Nov 12, 2018
Messages
1
Dear experts,

I am struggling with an Excel macro or formula, that must be able to handle the following tasks:
Concatenate the values in Sheet1, from Colum T, Row 11 to Row 15
Then give the output in Sheet2, in a merged cell (H22).
Then organize the input in the merged cell so the output is appearing as separate lines.

This I have solved by the following formula:
=CONCATENATE(Summary!T11,CHAR(10),Summary!T12,CHAR(10),Summary!T13,CHAR(10),Summary!T14,CHAR(10),Summary!T15,CHAR(10))

Unfortunately I am getting duplicates in the output cell, which I don't want, and I don't want to use the Remove duplicates function in Sheet1, as the raw data must remain.

I will highly appreciate if anybody can propose a Macro or formula that can solve the issue.
 

cwwozniak

Chuck
Moderator
Joined
Nov 28, 2005
Messages
67,168
Hi, and welcome to TSG.

One way to prevent duplicates using a formula might be to use the COUNTIF() function to determine if the content of the current cell being considered for concatenation is repeated in any of the cells above it. That would then go inside of an IF() function to concatenate a line break and cell content if the count is zero or skip the line break and cell content if the count is greater than zero.
 

Keebellah

Hans
Trusted Advisor
Joined
Mar 27, 2008
Messages
6,612
Hi, welcome to the forum.
It would help if you included the Office version and a non-private data sample file.
Makes it easier to see what you run into than just giving an answer based on assumptions.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top