Questions tagged [google-sheets]

For questions about Google's web application to create and edit spreadsheets on a web browser or app. Don't use it for the Google Drive Excel files editor. Please consider adding data as markdown table to your question; this will greatly increase the chance that you get a satisfactory answer.

Overview

One of the applications of the Google Docs editors to create and work on Google's own spreadsheet format. It can be accessed from Google Drive or from http://sheets.google.com.

NOTE: On the official documentation "spreadsheet" is used instead of "workbook" and "sheet" instead of "worksheet". The app's name has changed and was previously Google Spreadsheets.

Within the spreadsheet, all basic functions (see complete list) and more are present to accomplish many goals. Do not expect Sheets to mimic Excel exactly. For user-specific features, Google Apps Script can create custom functions and allows for extra flexibility inside and outside the spreadsheet.

General asking guidance

Before posting a question:

  • Check the Official Documentation and make use of Sheet's inbuilt Help, in particular for the syntax required by functions.
  • Search for related questions & answers tagged .
  • If you get "#ERROR! > Error: Parse error on formula", check that your formula is using the correct argument separator. Some locales use a comma, others a semicolon (set at sheet level).
  • Mention if you are using a version other than English.
  • If your question is about a complex formula that is not working, (1) check that each part works correctly and (2) mention which specific part is not working and (3) in what way/where it fails.
  • Be certain to provide cell references where relevant (eg avoid cropping the Headings [A, B, C etc across the top, 1, 2, 3 etc. down the side] when uploading an image).
  • Where values that are expected to be the same are not, check for surplus spaces (especially trailing ones).
  • Share your data preferably as a markdown table or link to a testsheet, following the guidelines here: How to share a Google Sheets demo spreadsheet

Do's
The tag can be used by itself or in combination with other tags:

( to indicate that you want to convert the spreadsheet to PDF in Google Drive.)

Others tags that may be relevant include:

If the question is about a formula:

  • Include the formula
  • Include a representative sample of the source data, preferably in text format
  • Include exactly what results are required from the source data, and where
  • Include, where appropriate, a link to a demo spreadsheet shared with anyone with the link is able to view but do not rely on the sheet or images to clarify what should be stated in words

Dont's
Without good reason, do not use the tag in combination with the tag, to point to the Google Sheets. This will make both tags contaminated.

Automating tasks / add custom functions and features

We can use macros to record recurring steps as far as the procedure is simple. For complex automation, adding custom functions and features we could use Google Apps Script. Before asking a question that involves macros and scripts, please read Extending Google Sheets.

How to get more specific guidance on asking questions about Google Sheets

Request for help about how to ask a question on Meta Web Applications.

References

9068 questions
204
votes
8 answers

How do I link a cell in Google Spreadsheets to a cell in another document?

Each month, I create a new Google spreadsheet that relies on figures from the previous month's file. I'd like to import these values using a formula rather than manually cutting and pasting them. How can this be done? Example Sheet1 of…
Jeff Yates
  • 2,575
  • 2
  • 19
  • 23
192
votes
3 answers

How to group data in a Google Spreadsheet?

I have the following table in a Google Spreadsheet: Name | Value A | 10 B | 100 A | 20 B | 200 C | 1000 How can I create another table based on a query: select name, sum(value), count(value) from table group by name so it looks like…
serg555
  • 2,295
  • 3
  • 17
  • 12
166
votes
4 answers

How to paste a comma separated string over multiple cells in Google Sheets?

Say I have a string of: l,f,x,a,s,f I would want to paste this every comma-separated value over 6 adjacent cells. How would I do it?
user3046061
  • 1,777
  • 2
  • 10
  • 5
164
votes
2 answers

How does one add a new line in a cell in a Google Spreadsheet?

I pressed return to make a new line in a cell of my Google Spreadsheet. That just moved the cursor to the next cell. How does one add a new line in a cell?
David Faux
  • 8,099
  • 16
  • 37
  • 44
158
votes
10 answers

Google Sheets formula for "if contains"

I'm trying to figure out how to identify IF a list of items in one cell containing a value or string. EXAMPLE Cell A1 contains sites, sheets, docs, slides. I want cell B1 to display a 1 'if' cell A1 contains the string sites. FORMULA =if(A1 ??????…
Mr. B
  • 2,967
  • 11
  • 38
  • 46
126
votes
4 answers

How to check if value is in range of cells?

In a Google Sheets spreadsheet, I want to check if the value of a cell exists in a range of cells. How can I do this? Just like you would be able to do "if value in list_of_values" in Python for example.
Javaaaa
  • 1,415
  • 2
  • 10
  • 9
119
votes
3 answers

How can I create a fixed column header in Google Spreadsheet like the first sheet?

How can I create a fixed column header in Google Spreadsheet like the first sheet?
eureka
115
votes
2 answers

How to convert rows into columns in Google Spreadsheets?

I have a spreadsheet in Google Docs with two data rows and lots of columns like so: Is it possible to easily convert these rows into two columns and lots of rows (obviously retaining all information and formulas)? In other words, to something like…
Jonik
  • 3,838
  • 7
  • 31
  • 43
112
votes
14 answers

How do I calculate a time delta in my Google Spreadsheets?

I've got a Google Spreadsheet that looks roughly like this: Date | Start time | End time | Minutes ------------+-------------+-------------+----------- 1/11/2012 | 11:39 | 12:41 | ?! …
Stefano Palazzo
  • 2,057
  • 2
  • 14
  • 15
98
votes
10 answers

How can I make some data on a Google Sheets auto-sorting?

Let's say I want Google Sheets to automagically sort some data, for example column C. How do I do that? I know that I can manually sort data by right-clicking and selecting Sort data, but this is not what I'm looking for.
Diego Petrucci
98
votes
20 answers

How to prevent cut and paste data changing references in formulas?

Google Sheets has a feature where if you have a reference to a data cell in a formula, and you cut the data from that cell and paste it in a new location, the reference in the formula is updated to point to the new cell location. I'd like to be able…
grahamparks
  • 1,096
  • 1
  • 7
  • 7
92
votes
6 answers

How to add days to a date

I'm using a Google Spreadsheet to perform calculations and I'd like to do some simple date math. For example, TODAY() add 7 days. I don't see any functions to do it and some quick stabs in the dark didn't pan out. Does anyone know if this is…
Sam Bisbee
  • 1,053
  • 1
  • 8
  • 7
84
votes
5 answers

Embed Google Spreadsheet in Google Document

Is it possible to embed a Google Spreadsheet into a Google Document à la Microsoft Excel and Microsoft Word? How about a chart from a Spreadsheet?
ale
  • 52,972
  • 42
  • 165
  • 314
80
votes
2 answers

Summing a column, filtered based on another column in Google Spreadsheet

I have the following data in a Google Spreadsheet: +------+---------+ | Time | Include | +------+---------+ | 0:30 | No | | 1:00 | Yes | | 0:30 | Yes | | 0:30 | No | | 0:30 | Yes | +------+---------+ I would like to add up the…
xylar
  • 1,915
  • 1
  • 14
  • 12
80
votes
7 answers

Is it possible to add a checkbox/button equivalent?

What I'm looking for is a one click enable/disable or toggle in some form. The closest I've come is manually editing a cell to enter a 0 or 1, but I'm hoping there's a nicer pattern. I know there's no checkbox functionality in a Google Sheets but is…
dlanod
  • 1,068
  • 1
  • 9
  • 14
1
2 3
99 100