Tips to add & import data

Modified on Mon, 22 Sep at 1:11 PM

On this page

  • Use Forms for automatic data entry
  • Use BigQuery data
  • Compile data from separate spreadsheets
  • Create reports from Analytics data
  • Track stock prices or earnings
  • Find and update data
  • Protect data from being updated
  • Automate tasks with macros
  • Do more with add-ons and scripts

Use Forms for automatic data entry

Create a survey in Forms:

Send survey responses to a new spreadsheet:

  1. In Forms, on the Responses tab, click More and thenSelect response destination.
  2. Select Create a new spreadsheet.
  3. (Optional) To change the name, enter a new one.
  4. Click Create.

Send survey responses to an existing spreadsheet:

  1. In Forms, on the Responses tab, click More and thenSelect response destination.
  2. Select Select existing spreadsheetand thenSelect.
  3. Select your spreadsheet and click Select.

To open your spreadsheet from Forms, click View responses in Sheets . The spreadsheet opens in a new window. To go back to Forms, click Formand thenShow summary of responses or go back to the Forms window.

Use BigQuery data

Learn how

  1. On your computer, open the Google Sheets template gallery.
  2. Choose one of the connected sheet Examples.

Compile data from separate spreadsheets

Import data from another spreadsheet

  1. In Sheets, open a spreadsheet.
  2. In an empty cell, enter =IMPORTRANGE.
  3. In parenthesis, add the following specifications in quotation marks and separated by a comma*:
    • The URL of the spreadsheet in Sheets. Copy and paste the URL from the spreadsheet that contains the data you want to import.
    • The sheet name (optional) and the range of cells to import.*Note: If you are in a Spanish-speaking country, use the semicolon as a separator instead of the comma.
  4. Press Enter.
  5. Click Allow access to connect the 2 spreadsheets.

Create reports from Analytics data

Get the Analytics add-on

  1. If you haven’t already, sign up to start using Analytics.
  2. Open Sheets.
  3. Click Extensionsand thenAdd-onsand thenGet add-ons.
  4. Search for the Google Analytics add-on and click Install.
  5. Click Continue.

Create an Analytics report

  1. Open a spreadsheet in Sheets.
  2. Click Extensionsand thenGoogle Analyticsand thenCreate new report.
  3. Enter your information and click Create Report. Your analytics data appears in a new spreadsheet.

Track stock prices or earnings

  1. In Sheets, open a spreadsheet.
  2. In an empty cell, type =GOOGLEFINANCE.
  3. In parenthesis, add any of the following, separated by a comma:
    • A ticker symbol in quotation marks.
    • (Optional) The attribute you want to show, such as price, in quotation marks.
    • (Optional) A start and an end date preceded by DATE and followed with the numerical date in parenthesis.
    • (Optional) Daily or weekly frequency in quotation marks.
  4. Press Enter.

Find and update data

  1. In Sheets, open a spreadsheet and click Editand thenFind and replace.

  2. Next to Find, enter the text or numbers that you want to find.
  3. Next to Replace with, enter the new data.
  4. Next to Search, choose the sheets that you want to search.
  5. (Optional) To refine your search, select additional options.
    You can make your search case-sensitive, find exact matches, use regular expressions, or search within formulas.
  6. Choose an option to replace the data:
    • To replace instances one at a time, click Findand thenReplace.
    • To replace all instances, click Replace all.

Protect data from being updated

  1. Open a spreadsheet in Google Sheets.
  2. Click Data and then Protect sheets and ranges. A box will open on the right.
  3. Click Add a sheet or range or click an existing protection to edit it.
  4. To protect a range, click Range. To protect a sheet, click Sheet.
    • Range: To change or enter the range you’re protecting, click the spreadsheet icon and highlight the range in the spreadsheet.
    • Sheet: Choose a sheet to protect. If you want a set of cells to be unprotected in a sheet, check the box next to "Except certain cells."
  5. Click Set permissions or Change permissions.
  6. Choose how you want to limit editing:
  • To show a warning when anyone makes an edit: Select "Show a warning when editing this range." It doesn’t block people from editing, but they’ll see a message asking them to confirm if they really want to make an edit.
  • To choose who can edit the range or sheet: select "Restrict who can edit this range." Choose:
    • Only you: Only you (and the owner if you’re not the owner) can edit the range or sheet.
    • Only domain: If you use Google Sheets for work or school, only people in your domain can edit the range or sheet. This option is only available when everyone in your domain can edit the spreadsheet.
    • Custom: Only the people you choose can edit the range or sheet.
    • Copy permissions from another range: Reuse the same permissions you set up on a different set of cells or sheet.
  1. Click Save or Done.

Automate tasks with macros

  1. On your computer, open a spreadsheet at sheets.google.com.
  2. At the top, click Extensions and then Macros and then Record macro.
  3. At the bottom, choose which type of cell reference you want your macro to use:
  • Use absolute references: The macro will do tasks on the exact cell you record. For example, if you bold cell A1, the macro will only ever bold cell A1 regardless of which cell you clicked.
  • Use relative references: The macro will do tasks on the cell you select and its nearby cells. For example, if you record bolding cells A1 and B1, the macro can later be used to bold cells C1 and D1.
  1. Complete the task you want to record. When you’re done, click Save.
  2. Name the macro, create a custom shortcut, and click Save.
  • Note: When you create a macro in Google Sheets, an Apps Script is created. To edit this Apps Script, at the top, click Tools and then Script editor.

To perform a macro, click Extensions and then Macros and then the macro you want.

Do more with add-ons & scripts

Install an add-on

  1. On your computer, open a document, spreadsheet, or presentation.
  2. Click Extensions and then Add-ons and then Get add-ons.
  3. Point to an add-on to find a short description. To find a full description, click the add-on.
  4. To install the add-on, click Install and then Continue.
  5. For most add-ons, a message will appear requesting access to data that the add-on needs to work. Read the message, then click Allow.
  6. After the add-on installs, click Done.

Create a script

  1. In Docs, Sheets, Slides, or Forms, open a document, spreadsheet, presentation, or form.
  2. If you’re using Docs, Sheets, or Slides, click Extensionsand thenApps Script.
  3. If you’re using Forms, in the top-right corner, click Moreand thenScript editor.
  4. Create your script.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article