Adding a tab in between text and number

dmb41

Board Regular
Joined
Nov 10, 2010
Messages
75
I have two rows of data:

Parts Qty
234TV 2
541B 2
568WQ 5
049A 7
314YY 8

I need to input this into a .txt file and I need a tab in-between the part and qty (for the input it is going into).

I was going to use the function =CONCATENATE(A1," ",B1). Is there a way to input tab into functions?
 

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.
I think this is what I am looking for but when I copy and paste into notebook it puts quotes around it. Is there anyway to prevent this?
 
Upvote 0
That only puts a few spaces in between and doesn't align when put in notepad (like a tab would do)
 
Upvote 0
Hi dmb41

The quotes are automatically inserted. They tell you that the tab inside is not a separator, it's a character of the string.

If you want to copy the text in the cells with a tab between them you can select them and copy them directly, like select A1:B1, copy, paste in notpad.


If you really want to copy the result of the formula to the notepad without the quotes I think you cannot do it directly, but you can write a small vba snippet to copy the text to the clipboard using a DataObject. This way you should have no problem when pasting it in the notepad.
 
Upvote 0
The problem is the program I am reading the .txt file into will not read in with the quotes.

It needs to be: part (then a tab) qty
e.g.: P205 9
Y908 10
... where all the numbers are lined up.

I tried to save as a tab deliminated form in excel. That will not work either.
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,877
Members
452,949
Latest member
Dupuhini

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