A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
[ Edited:] It only works for 365, not 2019. Sorry.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a list of data with long text that excel split into separate rows. I want a formula to combine each text to a single cell without duplicating the previous cell data above. Would really appreciate the help. Example shown in the table below :-
| Data | Result |
|---|---|
| Apple | Apple Orange Lemon 123 |
| Orange | |
| Lemon | |
| 123 | |
| Orange | Orange Orange Lemon |
| Orange | |
| Lemon | |
| Apple | Apple Apple Apple 1 2 |
| Apple | |
| Apple | |
| 1 | |
| 2 |
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
[ Edited:] It only works for 365, not 2019. Sorry.
Hi Andyosk4567,
Thanks for your post in Microsoft Community.
There are several ways to concatenate text:
If you don't need spaces as separators, you can remove them (" ").
[
This is a very convenient and quick method for concatenation, but the downside is that you cannot choose a separator.
[
With TEXTJOIN, you can freely choose the separator you need; you just need to enter it in the first parameter.
[ over () is null or lag(f01) over () like '' or unicode(lag(f01)
over()) =160,rowid,'')) grp,* from Sheet1 ;
//select * from aa;
select f01 Data,iif(row_number() over ( partition by grp)=1,group_concat(f01,' ') over (partition by grp),'') Result from aa;
Are you hoping to merge the entire column A into one single cell? Or do you still need to differentiate between various sections, such as merging A2 to A5 as one part, and A7 to A9 as another part?
Please share more context with me, or alternatively, I have enabled private messaging for you. You can share a screenshot of your worksheet or the file with me so that I can better understand and provide you with a more tailored solution.
Thomas
Thanks for responding Thomas, however my issue isn't just a few rows. I know these formula's you mentioned but for my scenario I have thousands of columns to combine each with different number of rows of text. So what I want is a formula where I can paste through the whole sheet so i wouldn't need go manually go through each item. Hope that helps.