askvity

How to Write the Same Thing in Multiple Cells in Google Sheets?

Published in Google Sheets Formulas 3 mins read

To write the same thing or apply the same operation to multiple cells in Google Sheets, you can utilize formulas, including the powerful ARRAYFORMULA function, as demonstrated in the provided reference.

Putting the exact same value or applying the same formatting, calculation, or text manipulation across multiple cells efficiently is a common task in Google Sheets. Based on the reference, one common method involves using formulas to append text to existing data across a range of cells.

Here are the approaches derived from the reference:

1. Appending Text Using a Formula Applied to Individual Cells

This method involves creating a formula that references an existing cell and appends the desired text. You can then apply this formula to other cells to achieve the same outcome relative to their corresponding source cells.

  • Step 1: Start by referencing a cell with the existing data you want to modify. For instance, if your data is in cell A2, your formula will reference A2.
  • Step 2: Append the new text using the concatenate operator (&). According to the reference, to append ", US" to the value in cell A2, you would use a formula like this in another cell (e.g., B2):
    =A2 & ", US"
  • Applying to Multiple Cells: Once this formula is in one cell (like B2), you can easily apply it to a range of cells (like B3, B4, etc.) corresponding to your source data (like A3, A4, etc.). Google Sheets will automatically adjust the cell reference (A2 becomes A3, A4, etc.) when the formula is copied or dragged down.

2. Appending Text Using ARRAYFORMULA for a Range

For a more direct and efficient way to apply the same formula to an entire range of cells without dragging, you can use the ARRAYFORMULA function. This function allows a single formula in one cell to output results into multiple cells.

  • Step 1: Identify the range of cells containing the data you want to modify. The reference uses the range A2:A7 as an example.
  • Step 2: Wrap your appending formula within ARRAYFORMULA. To append ", US" to the values in the range A2:A7 and display the results in a corresponding range (e.g., starting in cell B2), you would use the following formula in only one cell (e.g., B2):
    =ARRAYFORMULA(A2:A7 & ", US")
  • Result: This single formula in B2 will populate cells B2 through B7 with the content of A2 through A7 respectively, each followed by ", US". This is explicitly mentioned in the reference: "To insert the same to all other cells, ArrayFormula will also help".
Original Data (Column A) Formula Output (Column B)
New York New York, US
Los Angeles Los Angeles, US
Chicago Chicago, US
Houston Houston, US
Phoenix Phoenix, US
Philadelphia Philadelphia, US

Example using =ARRAYFORMULA(A2:A7 & ", US") placed in cell B2.

These methods, derived from the provided reference, show how you can apply a consistent text modification across multiple cells in your Google Sheet using formulas.

Related Articles