10 Useful Google Spreadsheet Formulas You Must Know

Google Spreadsheet is a powerful and free tool to manage complex spreadsheets. This tutorial illustrates ten useful formulas you must know to help you simplify the way you work in Google Spreadsheet.

Vertical Look Up

This formula searches for value in the left-most column of array and returns the value in the same row based on the index.

=vlookup(search_criterion, array, index, sort_order)

For example, if you want to find the population of the value contained in the cell C2, from all values contained in the range A2:B4, copy and paste the following formula into the cell D2:
=vlookup(C2;A2:B4;2;false)

Filter

This formula returns a filtered version of the given source array.

=filter(range; condition1, condition2,...)

In this example I filtered all values contained in the column A (range A2:A12) greater than 37.

Copy and paste the following formula into the cell B2:
=filter(A2:A12;A2:A12>37)

You can also use multiple conditions to filter a source array:
=filter(A2:A12;A2:A12>37; A2:A12<60)

In this case the formula returns all values contained in the range A2:A12 greater than 37 AND less than 60.

Concatenate

This function concatenates several text strings, contained in different cells, into one string.

=concatenate(text1, text2, text3,...)

If you want to concatenate all values contained in the cells A2, A3, A4 into one string, copy and paste this formula into the cell B2:
=concatenate(A2,A3,A4)

If you want to separate each single value with a space (cell B3), use this formula:
=concatenate(A2," ", A3," ", A4)

Find

This formula looks for a string of text within another string and returns an integer.

=find(find_text, text, position)

For example, if you want to find the "space" within the string contained in the cell C2 (which contains this text: Jack Bauer), copy and paste the following formula into the cell B2:
=find(" ", A2, 1)

This formula returns "5" that means the "space" is found within the source string after 4 characters.

Left and Right

Left extracts a substring from a string, starting from the left-most character.

=left(text, number)

Right extracts a substring from a string, starting from the right-most character.

=right(text, number)

If you want to extract the name "Jack" from the cell A2, copy and paste the following formula into the cell B2:
=left(A2;4)

If you want to extract the surname "Bauer" from the cell A3, copy and paste the following formula into the cell B3:
=right(A3;5)

You can also use the following formula to extract dynamically the name from an array of multiple values (Jack Bauer, Gregory House, Christian Troy, ...):
=left(A2; find(" ", A2, 1)-1)

Split

This formula splits text based on the given delimiter, putting each section into a separate column in the row.

=split(string, delimiter)

For example, if you want to split the values contained in the column A, using the delimiter " " (space), copy the following formula into the column B (the column C will be populated automatically):
=split(A2," ")

Substitute

This formula substitutes new text for old text in a string.

=substitute(text, search_text, new text, occurrence)

If you want to substitute "Jack" with "Mike" from the text contained in the cell A2, copy and paste this formula into the cell B2:
=substitute(A2, "Jack", "Mike",1)

Occurrence (optional, in this case "1") indicates how many occurrences of the search text are to be replaced.

Unique

This formula returns only the unique values in the source array, discarding duplicates.

=unique(array)

If you want to obtain an array of unique values from the values contained in the column A, copy and paste the following formula into the cell B2:
=unique(A2;A9)

As you can see, this formula returns only unique values in the column A, discarding all duplicates.

Google Finance

This function returns market information from Google Finance related to a specific company.

=GoogleFinance(symbol, attribute)

For example, if you want to know the Google stock price, copy and paste the following formula into the cell B2: =GoogleFinance(A2,"price")

You can use the same formula for the other companies in this example (NVidia, Intel, Cisco,...). Other attributes are volume, earning per share, opening price and so on (take a look at the official documentation for a full list).

GoogleLookup

This formula attempts to find the values for straightforward facts about specific things.

=GoogleLookup(entity, attribute)

For example if you want to find the countries of cities listed in the column A, copy and paste the following formula into the column B:

=googleLookup(A2;"country")

You can access some types of entities such as countries and territories (population, largest city), rivers (origin, length), actors and musicians (date of birth, nationality), planets and so on. For a full list of popular entities, take a look at the official documentation.

24
Comments
  • Edie Reply

    Thanks for the heads up.
    There’s more to Google Spreadsheets than meets the eye!

  • Richard Reply

    Gj Antonio… May be some comparison between MS live docs and Google Spreadsheet will be nice.. Or some other services….

  • Yigit Ozdamar Reply

    Most of them are comes from Ms Office Excel. I think we should respect to Microsoft in this case.

  • omagus Reply

    i’m not yet trying this..!

  • Geert Reply

    Quite some functions Excel doesn’t know about. I was amazed to find out the filter function is unknown to Excel and Numbers. Seems to be quite useful, though.

  • Professional SEO Company Reply

    wow..
    very good post. GoogleLookup and GoogleFinance were new to me. Thanx specially these 2 formulas as they can very useful. I know other formulas u have describe in post as I use them frequently.

    Thanx.

  • Aero Reply

    I don’t know much about Google spreadsheet. After reading your post I thought that I should try it. Thanks

  • Tom Reply

    That’s good stuff. But I’m still trying to figure out how to make row backgrounds alternate colors white and grey
    in Excel I do that with conditional formatting and the mod function
    =MOD(ROW(),2)=1

    • Ben W

      Ooh, I’d like to know the Google equiv of =MOD(ROW(),2)=1 as well!

    • Kevin Webster

      That formula works in exactly the same in gSpreadsheet. But, Google has yet to allow formulas to change style properties of cells.

  • Jim c Reply

    Fantastic I have been looking for these power features for ages. Thank you!

  • Julian Reply

    I think HYPERLINK is also a great one. Gives you the ability to have URLs with labels.

  • Matthew Lux Reply

    Good stuff guys. I will be using this in the future for sure.

    Check out my site if you get a chance.. All about CMS’s, web development and other crap.
    http://www.graphiclux.com

    Thanks.

  • midbach Reply

    I had no idea that there was this much complexity available in Google Docs . Thanks for the headsup!

  • Eddie Thieda Reply

    Thanks for the information, it’s a great reference to have available!

  • Szetolf Reply

    wow… i never knew that google docs have so much other functions…. i thought they only have excel functions… thanks for the info!
    but what happen if i export it to excel???

  • Amberly | Web Designer Reply

    thanks for this vital Information

  • Kunal Reply

    Neat stuff.. never knew they embedded such power in docs.

  • Nikolaos Dimopoulos Reply

    Thank you for this information. I must confess that I knew about the VLOOKUP from Excel but never used it and have used CONCATENATE heavily but none of the other ones that you mention.

    One last thing to note is that Google now allows Google Script on Google Apps Standard (as well as the rest of the Google App versions). With Google Script you can create a lot more functions to allow you to get the most out of your data.

    http://www.google.com/google-d-s/scripts/scripts.html

    Thanks again for the information.

  • Joomla Expert Reply

    Thanks really its very useful information.I never knew that Google docs has so much power.I applied these in my personal google doc & the results were really nice.

  • Amjad Iqbal Khan Reply

    very useful for the office people

  • Houston emergency room Reply

    Great article, some very helpful short cuts in this post. Thanks for the resource.

  • Cook Reply

    good article……..

  • Yaz Lawsuit Reply

    Thanks for the Spreadsheet formulas. They are good to know and extremely useful.

Leave a Reply

RSS Feeds
Do you like this post? Digg it on Digg.com!
Popular Posts
Sponsored Links
Authors