Inserting TAB character into a text string inside a cell?

teachman

Active Member
Joined
Aug 31, 2011
Messages
321
Hello, I would like to find a way to concatenate two tab characters to the beginning of a string in a cell. Example: A4 = "Alpha" A5 = "Zeta" A6 has =A4&" "&A5 Which displays as Alpha Zeta I would like to see TABTABAlpha Zeta I then copy that cell and paste into another document. Without the two TAB characters I have to manually insert the Tabs before I paste the cell contents that were copied. Can this be done? Thanks, George
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Try this...

=CHAR(9)&CHAR(9)&A4&" "&A5

We're getting closer, Rick. But, when the situation is like this:

A4 = <column name="observation_date" column="C"
A5 = />
[TABLE="width: 293"]
<TBODY>[TR]
[TD]Then CHAR(9)&CHAR(9)&A4&A5 results in:
TABTAB<column name="observation_date" column="C"/>[/TD]
[/TR]
[TR]
[TD]
And when I copy this cell and paste it into Notepad the resut is:
[TABLE="width: 293"]
<TBODY>[TR]
[TD]"TABTAB<column name=""observation_date"" column=""C""/>"[/TD]
[/TR]
[TR]
[TD]
The extra quotes in the above are added somehow during the paste. They are NOT in the cell.

Thanks,
George[/TD]
[/TR]
</TBODY>[/TABLE]


[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
 
Upvote 0
Try this...

=CHAR(9)&CHAR(9)&A4&" "&A5

We're getting closer, Rick. But, when the situation is like this:

A4 = <COLUMN
A5 = />
[TABLE="width: 293"]
<TBODY>[TR]
[TD]Then CHAR(9)&CHAR(9)&A4&A5 results in:
TABTAB<COLUMN column="C" name="observation_date" />
[/TD]
[/TR]
[TR]
[TD]And when I copy this cell and paste it into Notepad the resut is:


[TABLE="width: 293"]
<TBODY>[TR]
[TD]"TABTAB<COLUMN column="" name="" C?? observation_date?? />"
[/TD]
[/TR]
[TR]
[TD]The extra quotes in the above are added somehow during the paste. They are NOT in the cell.

Thanks,
George
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
</TBODY>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,643
Messages
6,173,520
Members
452,518
Latest member
SoerenB

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