SOLVED

SEARCH AND REPLACE

Copper Contributor

I have text on multiple lines in a column and I want to add a word to the front of each line of text.

 

example

COLUMN

time to sleep

go to work

you can play

I want to add the word "STUART" to each line in the column giving 

STUART time to sleep

STUART go to work

STUART you can play

4 Replies
You can use Flash Fill
Assume you have
time to sleep in cell A1
go to work in cell A2
you can play in cell A3

And you want to add STUART as your prefix

In cell B1, type:
STUART time to sleep
Click Enter
Press CTRL + E.

STUART will be prefixed
That's all.

If this answers your question easily, do accept as the Best Response.
best response confirmed by STUART_1955 (Copper Contributor)
Solution
You can also use a formula to make it dynamic

="STUART"&" "&A1. Click Enter. This will return STUART time to sleep in cell B1

Then you can use Fill Handle to copy down the formula

I only looked at this today as I worked all of Easter. It work really well after I got the hang of it. Many thanks.

I have another question if that is ok.

When I export stock from Account Right to excel and include a Barcode that begins with a Zero it drops the Zero off.

I have used the same formula you gave me and it corrects it. Just had to remove the space between ""

My question is - Can I change the export or the cell features so the zero is there when I do the export rather than have to fix it each time?

Hello,

I wrote a blog on adding leading zeros. Kindly check the blog post below which answers the question

https://www.exceljetconsult.com.ng/home/blog/how-to-add-leading-zero-to-nigerias-mobile-number/
1 best response

Accepted Solutions
best response confirmed by STUART_1955 (Copper Contributor)
Solution
You can also use a formula to make it dynamic

="STUART"&" "&A1. Click Enter. This will return STUART time to sleep in cell B1

Then you can use Fill Handle to copy down the formula

View solution in original post