Nested textjoin function without macro

avid.excel.user

New Member
Joined
Dec 29, 2010
Messages
23
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Dear Friends

Please help me with a solution without macro if possible.

My data looks like this :
Acc_NoText
123​
Today is Saturday
Tomm is Sunday
123​
Tomm it will rain
234​
- Today it is sunny
345​
Lets look at the watch and decide. Maybe it will be a good time to catch up.
345​
Hope this is great
345​
Wish you all the best
456​
This might work
456​
456​
May not work
456​
Not sure if it does
456​
Lets hope for it to work
456​
678​
All the best
789​
I pray it work
789​
Someone please help me

The result should be as follows:

Acc_NoText (By text join manually) - very time consumingResult - should be automated in this format
123​
Today is Saturday
Tomm is Sunday | Tomm it will rain
Today is Saturday | Tomm is Sunday | Tomm it will rain
234​
- Today it is sunnyToday it is sunny
345​
Lets look at the watch and decide. Maybe it will be a good time to catch up. | Hope this is greatLets look at the watch and decide | Maybe it will be a good time to catch up | Hope this is great
456​
This might work | May not work | Not sure if it does | Lets hope for it to workThis might work | May not work | Not sure if it does | Lets hope for it to work
678​
All the bestAll the best
789​
I pray it work | Someone please help meI pray it work | Someone please help me

I understand that the text clean up is a challenge, since, i am unable to do a conditional nested Text join I am struggling to copy paste the formulae and choose the rows individually.

Request if any solution be it with out or with macro should work.

Need urgent assistance. Will be grateful.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Please update your account details to show which version of excel you are using. Some newer versions contain functions that will allow you to do this without vba, older versions do not.
 
Upvote 0
With office 365 this should work
Book1
ABCD
1Acc_NoText
2123Today is Saturday Tomm is Sunday123Today is Saturday | Tomm is Sunday | Tomm it will rain
3123Tomm it will rain234- Today it is sunny
4234- Today it is sunny345Lets look at the watch and decide. Maybe it will be a good time to catch up. | Hope this is great | Wish you all the best
5345Lets look at the watch and decide. Maybe it will be a good time to catch up.456This might work | May not work | Not sure if it does | Lets hope for it to work
6345Hope this is great678All the best
7345Wish you all the best789I pray it work | Someone please help me
8456This might work 
9456 
10456May not work 
11456Not sure if it does 
12456Lets hope for it to work 
13456 
14678All the best 
15789I pray it work 
16789Someone please help me 
Sheet2
Cell Formulas
RangeFormula
C2:C7C2=UNIQUE(A2:A16)
D2:D16D2=SUBSTITUTE(TEXTJOIN(" | ",1,IF($A$2:$A$16=C2,$B$2:$B$16&"","")),CHAR(10)," | ")
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

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