Add number in the text

sachin483

Board Regular
Joined
Mar 31, 2015
Messages
163
Office Version
  1. 2019
Platform
  1. Windows
required formula or macro for joining column2 with column 1


1.if + sign is not there then join as it is with _


2. if + sign is there then join after first + sign length is not fix

[TABLE="width: 541"]
<tbody>[TR]
[TD]column 1[/TD]
[TD]column 2[/TD]
[TD]required[/TD]
[/TR]
[TR]
[TD]AAAAAAA[/TD]
[TD]6[/TD]
[TD]AAAAAAA_6[/TD]
[/TR]
[TR]
[TD]AAAAAAA+BBBBBBBBBBBB[/TD]
[TD]2[/TD]
[TD]AAAAAAA_2+BBBBBBBBBBBB[/TD]
[/TR]
[TR]
[TD]AAAAAAA+HHHHHH[/TD]
[TD]3[/TD]
[TD]AAAAAAA_3+HHHHHH[/TD]
[/TR]
[TR]
[TD]DDDDD[/TD]
[TD]10[/TD]
[TD]DDDDD_10[/TD]
[/TR]
[TR]
[TD]DDDDD+GGGGGGG[/TD]
[TD]4[/TD]
[TD]DDDDD_4+GGGGGGG[/TD]
[/TR]
[TR]
[TD]MMMMMM[/TD]
[TD]13[/TD]
[TD]MMMMMM_13[/TD]
[/TR]
[TR]
[TD]TTTTT[/TD]
[TD]1[/TD]
[TD]TTTTT_1[/TD]
[/TR]
[TR]
[TD]HHHHHHHH+KKKKKKKKKK[/TD]
[TD]4[/TD]
[TD]HHHHHHHH_4+KKKKKKKKKK[/TD]
[/TR]
[TR]
[TD]HHHHHHHH+KKKKKKK+NNNNNNN[/TD]
[TD]3[/TD]
[TD]HHHHHHHH_3+KKKKKKK+NNNNNNN[/TD]
[/TR]
[TR]
[TD]HHHHHHHH+WWWWWW[/TD]
[TD]3[/TD]
[TD]HHHHHHHH_3+WWWWWW[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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