Google Sheets memiliki banyak kesamaan dengan Microsoft Excel. Begitu pun dengan fitur-fiturnya. Ada banyak fitur di Excel yang juga bisa kita temukan pada Google Sheets. Show
Salah satunya adalah formula atau rumus. Fitur formula di Google Sheets ini sama seperti pada Excel, yaitu bisa membantumu dalam melakukan penghitungan pada spreadsheet. Dengan menggunakan formula, maka Google Sheets dapat menghitung angka secara otomatis. Formula pada Google Sheets pun bisa digunakan baik untuk penghitungan dasar seperti penjumlahan dan perkalian hingga penghitungan yang lebih rumit. Salah satu keuntungan menggunakan formula adalah rumusnya dinamis. Jadi, jika kamu mengubah angka di salah satu cell, maka jawabannya pun akan dihitung ulang secara otomatis. Baca Juga:
Sampai di sini, mungkin kamu masih bingung dengan apa yang saya katakan. Agar lebih jelas, mari kita bahas mengenai cara menggunakan formula di Google Sheets. Dengan begitu, kamu akan paham apa yang saya katakan dan lebih paham mengenai penggunaan formula di Google Sheets. Membuat Formula Dasar Di Google SheetsUntuk menggunakan formula, maka kita harus belajar penggunaan formula dasar terlebih dahulu. Formula pada Google Sheets selalu dimulai dengan sama dengan (=). Selanjutnya, kamu bisa menambahkan cell lalu diikuti dengan simbol matematika dasar seperti simbol (+) untuk melakukan penjumlahan dan (–) untuk melakukan pengurangan. Sebagai contoh, kami akan memakai rumus seperti ini. = A1 – A2 + A3 Rumus tersebut diletakan pada cell dimana jawaban akan muncul. Di contoh ini, saya ingin menampilkan jawaban di cell A4. Jadi saya akan menaruh formula tersebut di A4. Maka tampilan formula di Google Sheets akan seperti ini. Agar dapat melakukan penghitungan, maka kita perlu memasukan angka ke cell yang telah ditentukan. Misalnya, saya memasukan angka sebagai berikut.
Maka akan terlihat seperti ini. Selanjutnya, masukan rumus tadi di A4. Maka hasilnya, akan seperti ini. Tekan Enter, maka Google Sheet pun akan melakukan penghitungan angka secara otomatis. Menggunakan Mouse Untuk Mengklik Referensi cellUntuk menggunakan formula, maka kamu bisa melakukannya dengan cara memasukan sama dengan (=) lalu diikuti dengan memasukan nama cell tempat angka yang akan dijumlahkan berada. Misalnya, kita tekan tombol (=), lalu diikuti dengan mengetik A1. Nah, hal ini akan membuat kamu merasa kesulitan saat ada cukup banyak data yang harus dimasukan di spreadsheet. Cara termudah untuk menambahkan referensi cell setelah icon sama dengan atau icon penghitungan adalah dengan mengklik referensi cell. Jadi, lebih baik gunakan tombol kiri mouse untuk menambahkan referensi cell pada formula. Misalnya, pada contoh di atas kamu bisa melakukan hal ini.
Melakukan hal ini akan jauh lebih mudah dibanding mengetik satu per satu referensi cell yang harus dimasukan pada formula. Simbol Matematika Dasar yang Dapat Digunakan Pada Formula Google SheetsRumus matematika untuk Excel dan Google Sheets terbilang sama, yaitu menggunakan simbol-simbol berikut. Google Sheets offers hundreds of built-in functions like Getting startedCustom functions are created using standard JavaScript. If you're new to JavaScript, Codecademy offers a great course for beginners. (Note: this course wasn't developed by and isn't associated with Google.) Here's a simple custom function, named
If you don't know how to write JavaScript and don't have time to learn, to see whether someone else has already built the custom function you need. Creating a custom functionTo write a custom function:
Now you can . Getting a custom function from the Google Workspace MarketplaceThe Google Workspace Marketplace offers several custom functions as add-ons for Google Sheets. To use or explore these add-ons:
Using a custom functionOnce you've written a custom function or installed one from the Google Workspace Marketplace, it's as easy to use as a built-in function:
Guidelines for custom functionsBefore writing your own custom function, there are a few guidelines to know. NamingIn addition to the standard conventions for naming JavaScript functions, be aware of the following:
ArgumentsLike a built-in function, a custom function can take arguments as input values:
Return valuesEvery custom function must return a value to display, such that:
Data typesGoogle Sheets stores data in different formats depending on the nature of the data. When these values are used in custom functions, Apps Script treats them as the appropriate data type in JavaScript. These are the most common areas of confusion:
AutocompleteGoogle Sheets supports autocomplete for custom functions much like for built-in functions. As you type a function name in a cell, you will see a list of built-in and custom functions that matches what you enter. Custom functions will appear in this list if their script includes a JsDoc 8 tag, as in the 9 example below.
AdvancedUsing Apps Script servicesCustom functions can call certain Apps Script services to perform more complex tasks. For example, a custom function can call the Language service to translate an English phrase into Spanish. Unlike most other types of Apps Scripts, custom functions never ask users to authorize access to personal data. Consequently, they can only call services that do not have access to personal data, specifically the following: Supported servicesNotesCacheWorks, but not particularly useful in custom functionsHTMLCan generate HTML, but cannot display it (rarely useful)JDBCLanguageLockWorks, but not particularly useful in custom functionsMapsCan calculate directions, but not display mapsProperties 0 only gets the properties of the spreadsheet owner. Spreadsheet editors can't set user properties in a custom function.SpreadsheetRead only (can use most 1 methods, but not 2).Cannot open other spreadsheets ( 3 or 4).URL FetchUtilitiesXMLIf your custom function throws the error message 5, the service requires user authorization and thus cannot be used in a custom function.To use a service other than those listed above, create a custom menu that runs an Apps Script function instead of writing a custom function. A function that is triggered from a menu will ask the user for authorization if necessary and can consequently use all Apps Script services. SharingCustom functions start out bound to the spreadsheet they were created in. This means that a custom function written in one spreadsheet can't be used in other spreadsheets unless you use one of the following methods:
OptimizationEach time a custom function is used in a spreadsheet, Google Sheets makes a separate call to the Apps Script server. If your spreadsheet contains dozens (or hundreds, or thousands!) of custom function calls, this process can be quite slow. Consequently, if you plan to use a custom function multiple times on a large range of data, consider modifying the function so that it accepts a range as input in the form of a two-dimensional array, then returns a two-dimensional array that can overflow into the appropriate cells. For example, the 9 function shown above can be rewritten to accept a single cell or range of cells as follows:
The above approach uses the map method of JavaScript's 7 object to recursively call DOUBLE on every value in the two-dimensional array of cells. It returns a two-dimensional array that contains the results. This way, you can call DOUBLE just once but have it calculate for a large number of cells at once, as shown in the screenshot below. (You could accomplish the same thing with nested AVERAGE 0 statements instead of the AVERAGE 1 call.)Similarly, the custom function below efficiently fetches live content from the Internet and uses a two-dimensional array to display two columns of results with just a single function call. If each cell required its own function call, the operation would take considerably more time, since the Apps Script server would have to download and parse the XML feed each time.
These techniques can be applied to nearly any custom function that is used repeatedly throughout a spreadsheet, although the implementation details will vary depending on the function's behavior. Bagaimana cara menggunakan Google sheet?Berikut adalah cara membuat spreadsheet di Google Sheets dengan mudah:. Buka Google Sheets melalui alamat sheets.google.com. ... . Klik tombol '+' bertuliskan Blank yang ada di bagian atas kiri. ... . 3. Edit dan format spreadsheet. ... . 4. Simpan ke komputer, print atau bagikan.. Apakah spreadsheet bisa pakai rumus?Spreadsheet Google mendukung formula sel yang biasa ditemukan di sebagian besar paket spreadsheet desktop. Formula tersebut dapat digunakan untuk membuat fungsi yang melakukan pengolahan data dan kalkulasi string dan angka.
Apa saja yang bisa dilakukan dengan Google sheet?Dengan Google Spreadsheet, Anda dapat membuat dan mengedit spreadsheet secara langsung di browser web—tanpa memerlukan software khusus. Beberapa orang dapat bekerja secara bersamaan, Anda dapat melihat saat orang lain membuat perubahan, dan setiap perubahan disimpan secara otomatis.
Rumus di Google Sheet dapat ditambahkan dari menu apa?Dilansir dari Tutsplus, untuk mulai membuat formula di dalam Google Sheets kamu bisa mengetikkan tanda “=” di dalam cell. Nantinya, Google Sheets akan menyediakan berbagai macam formula/rumus yang bisa kamu gunakan sesuai dengan kebutuhan.
|