How to add text to the beginning or end of all cells in Excel?

 How to add text to the beginning or end of all cells in Excel?

Sometimes you may need to add same specific text to the beginning or end of all cells in a selection. If you added the text to each cell manually one by one, it must be time-consuming. Are there easier ways? Yes, there are many easy tricks to add same text to the beginning or end of all cells in a selection.

Suppose you have a name roll as following screenshot shows, and the follow methods will guide you add specified text at the beginning and end of each cell in A1:C5.


There are two formulas to add specified text to the beginning or end of all selected cells in Microsoft Excel. 

Method 1: & formula
Enter the ="Class A: "&A1 in Cell E1, and copy this formula to other cells with dragging the bottom right corner of the Cell E1.


Method 2: Concatenate formula
Enter the =Concatenate ("Class A: ", A1) in Cell E1, and copy this formula to other cells with with dragging the bottom right corner of the Cell E1.


Notes
1. If you want to add specified text in each cell, just replace the Class A: with your text in both formulas.
2. The formulas of =A1 & "Class A: " and =Concatenate (A1, "Class A: ") will add Class A: at the end of Cell A1.
3. Both formulas will not modify the contents in selection directly.

  • Add specified text to the beginning / end of all cells with VBA



If you want to add specified text in each cells of a selection directly, the following VBA Macro will ease your work.
Step 1: Select the range in which you will add specified text;
Step 2: Hold down the Alt + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.
Step 3: Click Insert > Module, and paste the following VBA code in the Module Window.
VBA for adding specified text at the beginning of each cell
Sub AppendToExistingOnLeft()
Dim c As Range
For Each c In Selection
If c.Value <> "" Then c.Value = "LSB " & c.Value
Next
End Sub
VBA for adding specified text at the end of each cell
Sub AppendToExistingOnRight()
Dim c as range
For each c in Selection
If c.value <> "" Then c.value = c.value & " LSB"
Next
End Sub
you can change the variable "LSB" of the above codeas. 
Step 4: Press the F5 key to run this macro. And all of the cells will be added the value LSB before or after the cell contents. 


  •  Add specified text to the beginning / end of all cells with Kutools for Excel

Kutools for Excel's Add Text tool will help you quickly add specified text to the beginning or end of each cell in a selection.
Kutools for Excel includes more than 120 handy Excel tools. Free to try with no limitation in 30 days. Get it Now.
Step 1: Select the range in which you will add specified text.
Step 2: Click the Kutools > Text Tools > Add Text…. See screenshot:
Step 3: In Add Text dialog box, enter the specified text in the Text box, and check the right option in Position section, such as Before first characterAfter last character, etc.
Step 4: Click OK or Apply. The specified value will be added before or after the cell contents. See screenshots:
Add the specific text before the cell content..


Add the specific text after the cell content..


Notes:
1. Kutools for Excel's Add Text tool allows you to preview the changes in selection in Preview section.
2. If you check the Skip non-text cells option, this tool won't add the specified text in cells with non-text content.

Comments

  1. Hello,this sites gives very interesting information about this software,really i like this information about kutools which is so much beneficial to us,keep sharing such kind of information,Thanks for sharing this type of information.

    kutools crack

    ReplyDelete
  2. Wow, amazing block structure! How long
    Have you written a blog before? Working on a blog seems easy.
    The overview of your website is pretty good, not to mention what it does.
    In the content!
    3DP Net crack
    CyberGhost VPN crack
    CCleaner Pro crack
    PGWARE GameGain crack
    Nitro Pro crack

    ReplyDelete
  3. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Download Cracked Pro Softwares But thankfully, I recently visited a website named vstfull.com
    TweakBit PCSpeedUp Crack
    iBoysoft Data Recovery Crack
    Komodo IDE Crack

    ReplyDelete
  4. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. wahabtech.net I hope to have many more entries or so from you.
    Very interesting blog.
    iPadian Premium Crack

    ReplyDelete
  5. I guess I am the only one who comes here to share my very own experience guess what? I am using my laptop for almost the post 2 years.

    Kutools for Word Crack

    AVS Audio Editor Crack

    Muvizu Play Crack

    Betternet VPN Premium Crack

    ReplyDelete

  6. Is this a paid topic or do you change it yourself?
    However, stopping by with great quality writing, it's hard to see any good blog today.

    ReplyDelete
  7. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. wahabtech.net I hope to have many more entries or so from you.
    Very interesting blog.
    Device Doctor Pro Crack

    ReplyDelete
  8. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Download Cracked Pro Softwares But thankfully, I recently visited a website named wahabtech.net
    Windows 11 Activator Crack
    Windows 10 Activator Crack
    Adobe After Effects CC Crack

    ReplyDelete
  9. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. Getcrack.co I hope to have many more entries or so from you.
    Very interesting blog.
    IObit Malware Fighter Pro Crack
    Movavi Video Converter Crack
    Letasoft Sound Booster Crack

    ReplyDelete



  10. Very good article! We will be linking to this particularly great post on our website. Keep up the good writing.
    Videopad Video Editor Crack
    AVS Video Editor Crack

    ReplyDelete

  11. SkinFiner
    I am very impressed with your post because this post is very beneficial for me

    ReplyDelete
  12. After reviewing numerous blog posts on the site,
    We really appreciate how your blog works.
    We've added it to your list of favorite sites, and we'll review it soon.
    Future. Also, check out my website and let us know what you think.
    You have done a great job. I appreciate your work, thank you for sharing.
    CrackBins Full Version Softwares Free Download
    Kutools for Word Crack

    ReplyDelete
  13. After reviewing some of the ads on the site,
    We really appreciate the way you write your blog.
    We've added it to our bookmarks list and will be back soon.
    The future. Also, check out my site and let us know what you think.
    You did a good job and you worked hard. I appreciate your work, thanks for sharing.
    CrackBins Full Version Softwares Free Download
    CrackBins Full Version Softwares Free Download
    UniPDF PRO Crack
    MediaMonkey Gold Crack
    Varicad Crack
    FinePrint Crack
    VueScan Pro Crack
    Renee PassNow Crack
    Kutools for Word Crack

    ReplyDelete
  14. After looking through a few blog articles on your website,
    we sincerely appreciate the way you blogged.
    We've added it to our list of bookmarked web pages and will be checking back in the near
    future. Please also visit my website and tell us what you think.
    Great work with hard work you have done I appreciate your work thanks for sharing it.
    CrackBins Full Version Softwares Free Download
    windows8ny Full Version Softwares Free Download
    PTE AV Studio Pro Crack
    Wondershare PDFelement key
    Adobe Animate Crack
    iPubsoft Android Crack
    Topaz Mask AI Crack
    SUMO Pro Crack
    Coral Painter Crack
    Kutools for Word Crack

    ReplyDelete
  15. After reviewing some of the ads on your site,
    We really appreciate the way you write your blog.
    We've added it to our Bookmarks website list and we'll check back soon.
    Future. Also., check out my website and let us know what you think.
    You did a good job and worked hard. I appreciate your work, thanks for sharing.
    crackbins Full Version Softwares Free Download
    Kutools for Word Crack

    ReplyDelete
  16. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 year! but I had no idea of solving some basic issues. I do not know how to crack2pc.org But thankfully, I recently visited a website named.

    Freemake Video Converter Crack
    iMyFone LockWiper Crack
    WinToUSB Enterprise Crack

    ReplyDelete
  17. After looking through a few blog articles on your website,
    we sincerely appreciate the way you blogged.
    We've added it to our list of bookmarked web pages and will be checking back in the near
    future. Please also visit my website and tell us what you think.
    Great work with hard work you have done I appreciate your work thanks for sharing it..
    Kutools for Word Crack

    ReplyDelete
  18. After looking through a few blog articles on your website,
    we sincerely appreciate the way you blogged.
    We've added it to our list of bookmarked web pages and will be checking back in the near
    future. Please also visit my website and tell us what you think.
    Great work with hard work you have done I appreciate your work thanks for sharing it.
    Kutools for Word Crack

    ReplyDelete
  19. After looking through a few blog articles on your website,
    we sincerely appreciate the way you blogged.
    We've added it to our list of bookmarked web pages and will be checking back in the near
    future. Please also visit my website and tell us what you think.
    Great work with hard work you have done I appreciate your work thanks for sharing it.
    crackbins.com Full Version Softwares Free Download
    Kutools for Word Crack

    ReplyDelete
  20. Then check the number of blog posts on your site.
    Thank you for your blog.
    We've added it to your favorites list and we're reviewing it now.
    Also, visit our Burrito page and let us know what you think.
    Thank you very much for your work and thank you for sharing.
    Kutools for Word Crack

    ReplyDelete


  21. I like your all post.You have done really good work. Thank you for the information you provide,it helped me a lot. I hope to have many more
    entries or so from you.Very interesting blog.
    Turnitin Software Crack
    Ulead Video Studio Crack
    Edit Plus Crack

    ReplyDelete
  22. My name is Wahab and I have been working in the WEB Blogging industry since 2010 and I have web research & Admin support tasks. I have worked with hundreds of clients all around the GLOBE. My core goal is to provide Quality Premium Software to my clients. So, Visit my website link is given below! https://wahabpc.com/
    jr typing tutor crack
    clion crack
    phpstorm crack
    nero burning rom crack
    360 total security crack

    ReplyDelete

Post a Comment

Popular posts from this blog

BackTrack5(linux) how to crack wep network password (only for studying purpose)

MeeGo os for Nokia mobiles