Table of Contents
Formulas to add text in Google Sheets
1. Insert text at the beginning of Google Sheets cells
How to add text in Google Sheets cells using an ampersand (&)
Add text at the beginning with the CONCATENATE function
2. Insert text at the end of Google Sheets cells
Use ampersand to add text in Google Sheets
How the CONCATENATE function adds text to the end of cells
3. How to add text in Google Sheets before/after characters
4. Add text in Google Sheets after the N-th character
Formula-free way to add text in Google Sheets
Home Topics excel How to add the same text to multiple cells in Google Sheets: efficient techniques

How to add the same text to multiple cells in Google Sheets: efficient techniques

Mar 31, 2025 am 09:25 AM

This tutorial will teach you to add text in Google Sheets cells at the same position. You will insert symbols and text strings at the beginning & the end of Google Sheets cells, after any N-th character, and even before or after specified characters.

You see, Google Sheets doesn't have an easy way to insert text and characters precisely where needed in Google Sheets cells. And it's even more challenging when you need to do it for a bunch of cells at once. But here are a few clever tricks to add text to the desired spots. Among them are some standard functions and a special Add text add-on.

Formulas to add text in Google Sheets

While it takes some time to get the hang of spreadsheet formulas, they're handy for a bunch of different tasks. Inserting text in Google Sheets cells is not an exception.

1. Insert text at the beginning of Google Sheets cells

Concatenation in spreadsheets means combining two (or more) records into one string, e.g. 'Solar' from A1 and 'Opposites' from B1 will become 'Solar Opposites' in C1.

But how is it supposed to help when you need to add new text to Google Sheets cells that already contain some data? Pretty easy: concatenate the 'new' part with the 'old' part.

How to add text in Google Sheets cells using an ampersand (&)

Ampersand is a special concatenation character that joins values in spreadsheets. When you use it in cells, it looks like this:

="John "&"Doe"

or

=A2&B2

The result will be literally 'John Doe' or any other combo of whatever lies in A2 and B2.

I'm going to take advantage of this to insert new text at the beginning and the end of my cells.

  1. Let's suppose I have a list of phone numbers belonging to customers in the US:

    How to add the same text to multiple cells in Google Sheets: efficient techniques

  2. I'm going to use the ampersand to insert a country code — 1 — at the beginning of those cells. Since I'm going to write formulas, I will do it in the neighboring column. Here's what I enter to B2:

    =" 1 "&A2

    How to add the same text to multiple cells in Google Sheets: efficient techniques

    Note. I add space after 1 inside the same double-quotes because the formula won't automatically put a space between items on its own.

  3. I could drag that formula down the column to fill in the other cells, but I have a better idea. I will wrap the formula in B2 in ArrayFormula and change the A2 reference to the range for the entire column:

    =ArrayFormula(" 1 "&A2:A7)

    How to add the same text to multiple cells in Google Sheets: efficient techniques

Add text at the beginning with the CONCATENATE function

Google Sheets also has the CONCATENATE function to combine different text strings. But unlike the ampersand, the function makes you list the units to merge as its arguments:

CONCATENATE(string1, [string2, ...])

Tip. Check out this comprehensive article devoted to CONCATENATE to learn it inside out.

And that's what I'm going to do: use the new text that I want to add as one of those arguments. Look how I use the function to add the same country codes to the beginning of the phone numbers:

=CONCATENATE(" 1"," ",A2)

Tip. I mention space as an individual argument — the second one in my case.

Then you just copy the formula down the column and you will have that country code added at the beginning of all cells:

How to add the same text to multiple cells in Google Sheets: efficient techniques

2. Insert text at the end of Google Sheets cells

To add text in Google Sheets at the end of cells, use the same joining way I showed for inserting text at the beginning of cells. I mean the CONCATENATE function that uses an ampersand (&).

Use ampersand to add text in Google Sheets

Let's see how you can use the ampersand to add text or insert symbols to the end of Google Sheets cells.

  1. This time, you need to start with a reference to a cell with the existing record.
  2. Then append the new text:

    =A2&", US"

    How to add the same text to multiple cells in Google Sheets: efficient techniques

  3. To insert the same to all other cells, ArrayFormula will also help:

    =ARRAYFORMULA(A2:A7&", US")

    How to add the same text to multiple cells in Google Sheets: efficient techniques

Tip. Of course, you can add the text at both positions in all cells at the same time:

=ArrayFormula(" 1 "&A2:A7&", US")

How to add the same text to multiple cells in Google Sheets: efficient techniques

How the CONCATENATE function adds text to the end of cells

The CONCATENATE function inserts text to the end of Google Sheets cells just like it does to the beginning. Only this time mention your new text string as the last argument:

=CONCATENATE(A2,", ","US")

How to add the same text to multiple cells in Google Sheets: efficient techniques

3. How to add text in Google Sheets before/after characters

REGEXREPLACE is a Google Sheets function that swaps out a section of text in a cell with something different.

Its name actually comes from regular expression replace — that's what the acronym stands for. The formula takes your regular expressions, searches for their matches in your Google Sheets cell, and then replaces them with the text you need.

I'll show you how to use that and replace one string with the other while inserting new symbols in Google Sheets cells simultaneously.

Tip. If regular expressions are the last thing you want to spend your time on, I have good news. Below I describe one user-friendly tool that will add text almost in an instant. Feel free to jump to it right away.

REGEXREPLACE needs 3 arguments:

REGEXREPLACE(text, regular_expression, replacement)
  • text — a text (or a reference to a cell with the text) that you want to change.
  • regular_expression — a combination of characters that represents a search pattern. You'll be looking for all strings that match this pattern.
  • replacement — a string to insert instead of text.

The 2nd argument is the tricky one and takes a bit of learning to get it right. Let me show you.

I have the same list of randomly generated US phone numbers:

How to add the same text to multiple cells in Google Sheets: efficient techniques

I'm going to tidy up these numbers a bit. First, wrap the country code into brackets, then – add a couple of whitespaces: 1 (202) 5550158.

Here's the formula I should use:

=REGEXREPLACE(A2,"(.*)202(.*)","$1 (202) $2")

How to add the same text to multiple cells in Google Sheets: efficient techniques

Let me break it down into pieces for you:

  1. A2 is a cell where I want to make the changes — this one is easy :)
  2. "(.*)202(.*)" is my search mask. Let's dig deeper into this one.

    First, whatever you enter here, you should always enclose it in double-quotes.

    Then I tell the function to find the code — 202 — no matter what stands before or after it — (.*)

    The combination of a period and an asterisk inside brackets — that's the regular_expression I'm using. A period stands for any character, while an asterisk — for any number of such special characters in Google Sheets. The brackets group those characters together.

    Note. There is a whole bunch of regular expressions out there that will help you find text in various spots inside your cells. Since many people use regular expressions daily, there are special pages dedicated to the right way of using them.

  3. "$1 (202) $2" is what I want to get instead.

    As you can see, I've already added brackets around 202. That is my main goal.

    $1 and $2 stand for those 2 groups of characters — (.*) — that I mentioned in the previous argument. So the formula will return everything before and after 202 from that cell just as they are.

Phew!

Don't worry if it still looks difficult — this is not the easiest thing to understand. Jump ahead to the easiest solution right away if you'd like, or stick with me as I show you how to insert symbols in Google Sheets. I'm going to add dashes in between numbers :)

4. Add text in Google Sheets after the N-th character

Tip. I prepare my data and convert all my REGEXREPLACE formulas from above to values to continue:

How to add the same text to multiple cells in Google Sheets: efficient techniques

I will just add a dash after 555: 1 (202) 555-0158. If you count the characters, you will see that the dash will take the same position in all cells — after the 12th character.

So for this example, I will show you the mask required to add text after the N-th character in a cell:

=REGEXREPLACE(B2,"(.{12})(.*)","$1-$2")

How to add the same text to multiple cells in Google Sheets: efficient techniques

  • This time, a cell I'm changing is B2.
  • What does "(.{12})(.*)" mean?

    I want to count characters starting from the left and stop on the 12th one — (.{12}) This is my first group, and I will insert my extra character right after. Then follows the second group — all remaining characters — (.*)

    Tip. Don't forget to wrap everything in double-quotes.

  • "$1-$2" — is how I add that extra dash.

    I mention the first group without changes here — $1. Then insert my character (-) and mention the second group to append it intact — $2.

And this is it :) Naturally, your situation might be unique and call for a different mask. Feel free to refer to this list of masks and their correct syntax.

Or, instead, give the next solution a try — no formulas, no masks. Just a simple add-on with 5 radio buttons to solve the task.

Formula-free way to add text in Google Sheets

Here it is: the simplest and most effective way to insert text in Google Sheets exactly where you need it.

Meet Add Text add-on — part of the Power Tools collection for Google Sheets.

Tip. Watch this video to get to know the tool better, ot feel free to read the short introduction right below it.

With this add-on, you are 4 steps away from the result:

  1. Select cells where you want to add text.
  2. Enter the text you want to add.
  3. Choose one of 5 positions where you'd like to insert your string.

    Tip. You can even skip empty cells and add text only to cells with data.

  4. Click Run.

How to add the same text to multiple cells in Google Sheets: efficient techniques

Apart from Add Text, Power Tools includes 40 more add-ons for spreadsheets, so it's definitely worth checking it out.

By now, I hope you've got a better handle on how to add text in Google Sheets, whether it's at the start, middle, or end of your cells. If you've got any more questions, just drop them in the comments section below. I'll be there to answer. See you in the next blog post!

The above is the detailed content of How to add the same text to multiple cells in Google Sheets: efficient techniques. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Excel formula to find top 3, 5, 10 values in column or row Excel formula to find top 3, 5, 10 values in column or row Apr 01, 2025 am 05:09 AM

This tutorial demonstrates how to efficiently locate the top N values within a dataset and retrieve associated data using Excel formulas. Whether you need the highest, lowest, or those meeting specific criteria, this guide provides solutions. Findi

Add a dropdown list to Outlook email template Add a dropdown list to Outlook email template Apr 01, 2025 am 05:13 AM

This tutorial shows you how to add dropdown lists to your Outlook email templates, including multiple selections and database population. While Outlook doesn't directly support dropdowns, this guide provides creative workarounds. Email templates sav

How to add calendar to Outlook: shared, Internet calendar, iCal file How to add calendar to Outlook: shared, Internet calendar, iCal file Apr 03, 2025 am 09:06 AM

This article explains how to access and utilize shared calendars within the Outlook desktop application, including importing iCalendar files. Previously, we covered sharing your Outlook calendar. Now, let's explore how to view calendars shared with

How to use Flash Fill in Excel with examples How to use Flash Fill in Excel with examples Apr 05, 2025 am 09:15 AM

This tutorial provides a comprehensive guide to Excel's Flash Fill feature, a powerful tool for automating data entry tasks. It covers various aspects, from its definition and location to advanced usage and troubleshooting. Understanding Excel's Fla

Regex to extract strings in Excel (one or all matches) Regex to extract strings in Excel (one or all matches) Mar 28, 2025 pm 12:19 PM

In this tutorial, you'll learn how to use regular expressions in Excel to find and extract substrings matching a given pattern. Microsoft Excel provides a number of functions to extract text from cells. Those functions can cope with most

MEDIAN formula in Excel - practical examples MEDIAN formula in Excel - practical examples Apr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

FV function in Excel to calculate future value FV function in Excel to calculate future value Apr 01, 2025 am 04:57 AM

This tutorial explains how to use Excel's FV function to determine the future value of investments, encompassing both regular payments and lump-sum deposits. Effective financial planning hinges on understanding investment growth, and this guide prov

How to remove / split text and numbers in Excel cell How to remove / split text and numbers in Excel cell Apr 01, 2025 am 05:07 AM

This tutorial demonstrates several methods for separating text and numbers within Excel cells, utilizing both built-in functions and custom VBA functions. You'll learn how to extract numbers while removing text, isolate text while discarding numbers

See all articles