{"id":2688,"date":"2022-04-28T10:00:00","date_gmt":"2022-04-28T08:00:00","guid":{"rendered":"https:\/\/importsheet.com\/?p=2688"},"modified":"2026-10-21T16:26:01","modified_gmt":"2026-10-21T14:26:01","slug":"arrayformula-google-sheets-exemples","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/fr\/blog\/google-sheets-formulas\/arrayformula-google-sheets\/","title":{"rendered":"Comment utiliser ARRAYFORMULA dans Google Sheets (exemples de formules matricielles)"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221; da_disable_devices=&#8221;off|off|off&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>As its name suggests, <a href=\"https:\/\/support.google.com\/docs\/answer\/3093275?hl=en-GB\" target=\"_blank\" rel=\"noopener\">ARRAYFORMULA<\/a> turns a regular formula into an array formula in Google Sheets. It allows you to <b>add formulas that expand automatically<\/b>; they are applied as new data is introduced into the spreadsheet. That means you won\u2019t have to copy and paste formulas manually as new rows of data appear.<\/p>\n<p>At a fundamental level, it takes the values from a cell range and outputs them into multiple rows and columns. This means it lets you <b>use arrays in formulas that usually don\u2019t accept them, <\/b>including SUMIF, VLOOKUP, or FILTER.<\/p>\n<p>This guide covers how ARRAYFORMULA works, why you&#8217;d use it, nine array formula examples (including IF, SUMIF, VLOOKUP, and FILTER) and the errors you&#8217;re most likely to hit.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>What is the ARRAYFORMULA?<\/h2>\n<p>The ARRAYFORMULA is an expandable array function. This means that you only need to insert the function into one cell, and then the function is automatically applied to the subsequent rows throughout the length of a whole column.<\/p>\n<p>As a result, you can return multiple values from a range of cells with just one ARRAYFORMULA, rather than returning a single value from a non-array formula.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-1.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 a separate formula in each Total row compared with one ARRAYFORMULA for the whole column&#8221; title_text=&#8221;A separate formula in each Total row compared with one ARRAYFORMULA for the whole column&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Let\u2019s take a look at the syntax to understand how it works and how to combine it with other functions.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Syntax<\/h3>\n<p>The syntax for the ARRAYFORMULA is as follows:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.16&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]=ARRAYFORMULA(array_formula)[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><b>array_formula<\/b> \u2013 this parameter can be:<\/p>\n<ul>\n<li>a range<\/li>\n<li>a mathematical expression using one cell range or multiple ranges of the same size<\/li>\n<li>a function that returns a result greater than one cell<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>You can also add the ARRAYFORMULA to an existing non-array function in your spreadsheet too. Simply press the keyboard shortcut Ctrl\/Cmd + Shift + Enter, and Google Sheets will automatically wrap ARRAYFORMULA() around your formula.<\/p>\n<p>As you can see, the ARRAYFORMULA syntax is simpler than expected. Let\u2019s explore more benefits of this function.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Why use ARRAYFORMULA in Google Sheets?<\/h2>\n<p>As well as saving time and manual effort by offering an alternative to manual calculations, the ARRAYFORMULA also offers other benefits.<\/p>\n<p>Let\u2019s take a look at just a few:<\/p>\n<ul>\n<li><b>Batch size calculations:<\/b> Instead of having to use similar functions that calculate values individually, you can use one single formula to your whole dataset, regardless of the size. This avoids the risk of heavy spreadsheets that contain multiple formulas in a single calculation.<\/li>\n<li><b>Flexibility:<\/b> A single change or modification to any cells will automatically affect the value of the ARRAYFORMULA calculation. This means that you can easily edit cell values, and any values relying on these cells will automatically adjust accordingly.<\/li>\n<li><b>Dynamic:<\/b> When you add a new row within your cell range, the ARRAYFORMULA will automatically be applied to it, so you don\u2019t have to manually input another function.<\/li>\n<\/ul>\n<p>Although Google Sheets may offer \u201cSuggested autofill\u201d to apply the function to the rest of your rows, the autofill will not be able to provide the same benefits as above. For example, If you alter your values, there is the risk that the autofill will not be able to update all of your cell data correctly. This would leave you with out-of-date, inaccurate information.<\/p>\n<p>Now that you understand the many benefits of using the ARRAYFORMULA in mass calculations, Let\u2019s explore how to use the Google Sheets ARRAYFORMULA in the following examples.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to use Google Sheets ARRAYFORMULA<\/h2>\n<p>Let\u2019s say I\u2019m a teacher and have a dataset with a list of students and their notes on different projects. I want to calculate the average score for each student across all projects.<\/p>\n<p>Usually, I would add up the cell values individually, as shown below:<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-2.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 student grades tracker with a separate addition formula in each Total cell&#8221; title_text=&#8221;Student grades tracker with a separate addition formula in each Total cell&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>However, this method would soon be problematic in two recurrent circumstances:<\/p>\n<ul>\n<li><b>Increase in data and formulas:<\/b> If I decide to increase the size of data or use more formulas, my spreadsheet wouldn\u2019t run as smoothly.<\/li>\n<li><b>Regular updates:<\/b> Any modification to my data means having to change every formula used in it.<\/li>\n<\/ul>\n<p>By using the ARRAYFORMULA, I can quickly add up results for all students, regardless of the dataset size or the number of formulas used. I can add, remove, or edit content as I wish, and the formula will apply to the data automatically.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Example 1: Basic ARRAYFORMULA<\/h3>\n<p>Building on the previous example, in order to calculate the totals, you can use the ARRAYFORMULA as shown below. Notice that I am now adding the ranges, whereas before I added individual cells.<\/p>\n<p>This new formula should look something like this:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=ARRAYFORMULA(D2:D + E2:E + F2:F + G2:G)<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>In order for the ARRAYFORMULA to function properly, make sure all the cells below it are empty.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-3.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 one ARRAYFORMULA in I2 fills the whole Total column&#8221; title_text=&#8221;One ARRAYFORMULA in I2 fills the whole Total column&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><b>Please note:<\/b> By ending the range of each column with the letter, (D2:D) you can add the entire column as the array. This means that if you add any new rows of data in the columns, the ARRAYFORMULA function will automatically be applied.<\/p>\n<p>As you can see, using the basic formula is very straightforward.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Example 2: IF with ARRAYFORMULA<\/h3>\n<p>You\u2019ve probably noticed a sequence of zeroes at the end of the column after applying the formula in the previous example. You can avoid this by adding an IF function to the formula.<\/p>\n<p>This IF statement tells the formula to leave the \u2018Total\u2019 column blank if there is no name in column A.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=ARRAYFORMULA(IF(A2:A&lt;&gt;\u201d\u201d, D2:D + E2:E + F2:F + G2:G, \u201d\u201d))<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-4.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 IF keeps the Total column blank where column A is empty&#8221; title_text=&#8221;IF keeps the Total column blank where column A is empty&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Now there are only blank cells, without zeroes, after the last row of data in column A. Let\u2019s include a row for another student after row 50 to test its expandable nature.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-5.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 Total shows 0 as soon as a new student is added in row 52&#8243; title_text=&#8221;Total shows 0 as soon as a new student is added in row 52&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>As soon as you start typing in content, the last column will automatically include a zero. This is a significant benefit of using ARRAYFORMULA. When working with a dataset that changes often, ARRAYFORMULA allows you to make changes without constantly adjusting the spreadsheet.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Example 3: SUMIF with ARRAYFORMULA<\/h3>\n<p>Let\u2019s say I\u2019ve grouped the students into 3 different groups, and I want to find the group total on \u2018Project D\u2019. I can use the ARRAYFORMULA in conjunction with the SUMIF function to get the total from these 3 groups.<\/p>\n<p>The syntax for SUMIF and ARRAYFORMULA is:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.16&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]=ARRAYFORMULA(SUMIF(range, criteria, sum_range))[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]For this example, I\u2019d use the formula:[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=ARRAYFORMULA(SUMIF(B2:B, I2:I, H2:H))<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-6.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 SUMIF returns the Project D total for groups A, B and C&#8221; title_text=&#8221;SUMIF returns the Project D total for groups A, B and C&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>As you can see, I now have the total points per group for Project D, as shown in column J. I can use this new output to calculate any other evaluation metric in a quick and efficient way.<\/p>\n<p>As before, zeroes appear sequenced after the last content cell in the \u2018Total\u2019 column. To hide them, wrap the SUMIF in the same IF test used in Example 2:<\/p>\n<p>=ARRAYFORMULA(IF(I2:I&lt;&gt;&quot;&quot;, SUMIF(B2:B, I2:I, H2:H), &quot;&quot;))<\/p>\n<p>For more information on how the SUMIF function works, take a look at this blog post on <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/sumif-google-sheets\/\" target=\"_blank\" rel=\"noopener\">How to use SUMIF in Google Sheets<\/a>.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3><b>Example 4: VLOOKUP with ARRAYFORMULA<\/b><\/h3>\n<p>Let\u2019s say I want to look for specific performance data from a specific student. Usually, I could use the VLOOKUP function to do this. However, I would have to input the function multiple times for each criterion, as VLOOKUP only returns a single value. However, when I combine this with the ARRAYFORMULA, I can find multiple values at the same time.<\/p>\n<p>The syntax for VLOOKUP with ARRAYFORMULA is:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.16&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]=ARRAYFORMULA(VLOOKUP({search-key#1;search-key#2;&#8230;}, range, column-index,[sorted\/not-sorted])[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>In this example, I want to find the first name, last name and results for project A and B of student number 10. With \u2018Student ID\u2019 as the key, I would use the following formula:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=ARRAYFORMULA(VLOOKUP($A$11, $A$1:$I$52, {1,3,4,5,6}, FALSE))<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-7.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 VLOOKUP returns the name and Project A and B scores of student 10&#8243; title_text=&#8221;VLOOKUP returns the name and Project A and B scores of student 10&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>To look up several keys at once, give VLOOKUP a range of search keys instead of one cell. With the student IDs you want in K2:K4, this formula returns one row of results for each ID:<\/p>\n<p>=ARRAYFORMULA(VLOOKUP(K2:K4, $A$1:$I$52, {1,3,4,5,6}, FALSE))<\/p>\n<p>For more information on how the VLOOKUP function works, check out this article on <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/vlookup-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener\">How the VLOOKUP function works in Google Sheets<\/a>.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Example 5: FILTER with ARRAYFORMULA<\/h3>\n<p>One of the most common uses when combining FILTER and ARRAYFORMULA is to identify duplicates. In order for it to function, you need to incorporate two basic formulas: COUNTIF and UNIQUE.<\/p>\n<p>Let\u2019s say I want to find duplicate content for student last names to search for possible relatives. I would need to type in the following formula:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=FILTER(UNIQUE(D2:D), ARRAYFORMULA(COUNTIF(D2:D, UNIQUE(D2:D))&gt;1))<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]Any duplicate values should appear in the cell.[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-8.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 FILTER, UNIQUE and COUNTIF return the duplicate last name Dimmer&#8221; title_text=&#8221;FILTER, UNIQUE and COUNTIF return the duplicate last name Dimmer&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>As you can see, \u2018Dimmer\u2019 has appeared in the cell. This means that the formula found more than one cell in the \u2018Last Name\u2019 column containing the name Dimmer. This means that I have two students with that same last name.<\/p>\n<p>You can also use this function to help find and remove duplicate data. To find out more about how these functions work individually, read these blog posts on the <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/unique-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener\">UNIQUE<\/a>, <a href=\"https:\/\/www.sheetgo.com\/blog\/excel-functions\/countif-function-in-excel\/\" target=\"_blank\" rel=\"noopener\">COUNTIF<\/a> and <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/filter-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener\">FILTER<\/a> functions.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Example 6: Horizontal arrays<\/h3>\n<p>So far, the examples have all been applied to vertical arrays. Just as easily the ARRAYFORMULA can be used for horizontal arrays, which allows you to use it no matter the structure of your data.<\/p>\n<p>Let\u2019s calculate the \u2018Total\u2019 for all projects for each student, but in a horizontal format. I can do this by inputting the following formula:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=ARRAYFORMULA(B5:5 + B6:6 + B7:7 + B8:8)<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-9.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 horizontal array adds rows 5 to 8 into the Total row&#8221; title_text=&#8221;Horizontal array adds rows 5 to 8 into the Total row&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Instead of telling the function to go down the list (e.g., from A2:A, which means starting at A2 and going down through column A), I\u2019ve told it to go across the data (e.g., from B5:5, which means starting at B5 and going across row 5).<\/p>\n<p>By making this simple change, the ARRAYFORMULA now works horizontally. And just like in the previous example,\u00a0 I can add an IF statement to get rid of the zeroes in the blank columns:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=ARRAYFORMULA(IF(B1:1&lt;&gt;\u201d\u201d, B5:5 + B6:6 + B7:7 + B8:8, \u201d\u201d))<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-10.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 horizontal array with IF, blank where row 1 is empty&#8221; title_text=&#8221;Horizontal array with IF, blank where row 1 is empty&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Example 7: Multidimensional Arrays<\/h3>\n<p>You\u2019ve now seen the ARRAYFORMULA used in both vertical and horizontal orientations. But what about a table that includes both of these array types? You can use the ARRAYFORMULA for these tables too!<\/p>\n<p>Here, I\u2019ve created a multiplication table that multiples column A by row 1, by simply typing the following:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=ARRAYFORMULA(B1:M1 * A2:A13)<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-11.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 multiplication table from row 1 times column A&#8221; title_text=&#8221;Multiplication table from row 1 times column A&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Example 8: Using ARRAYFORMULA to combine columns<\/h3>\n<p>The ARRAYFORMULA not only helps to calculate numeric data, but it can also help to combine text from different columns.<\/p>\n<p>Let\u2019s say I want to combine the \u2018First Name\u2019 and \u2018Last Name\u2019 columns to create a \u2018Full Name\u2019 column. I\u2019ve inserted a column for \u2018Full Name\u2019 to include the following formula:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=ARRAYFORMULA(C2:C52 &amp; \u201d \u201c &amp; D2:D52)<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/06\/ARRAY-\u2013-12.png&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 First Name and Last Name combined into a Full Name column&#8221; title_text=&#8221;First Name and Last Name combined into a Full Name column&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]As you can see, I have obtained values from two different columns and combined them into one without the need to do manual work.<\/p>\n<p><b>Please note:<\/b> This formula will only work if the two arrays are the same size (e.g.<b>\u2018C2:C52&amp;&#8221; &#8220;&amp;D2:D52\u2019<\/b>). If not, Google Sheets won\u2019t be able to perform the calculation.[\/et_pb_text][et_pb_text module_id=&#8221;how-to-build-an-array-formula-step-by-st&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to build an array formula step by step<\/h2>\n<p>The examples above show finished formulas. This one builds an array formula from the first cell and adds ARRAYFORMULA at the end with the keyboard shortcut. The table lists sales agents and the sales amount each one made in the month. If the amount is larger than or equal to $4000, the agent will receive a 5% bonus. I want to calculate and return the bonus amount for sales equal to or larger than $4000, but I want to return a blank if the amount is below $4000.<\/p>\n<p><strong>1.<\/strong> Open the spreadsheet with your data in Google Sheets.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/google-sheets-array-formula-open-google-sheets-2.webp&#8221; alt=&#8221;Array formula in Google Sheets \u2014 Agent and Amount table with an empty 5% Bonus column&#8221; title_text=&#8221;Agent and Amount table with an empty 5% Bonus column&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>2. In the first row of the column where you want the results, type the <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/if-formula-google-sheets\/\">IF function<\/a>.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/google-sheets-array-formula-add-if-function.webp&#8221; alt=&#8221;Array formula in Google Sheets \u2014 IF function typed in cell C2&#8243; title_text=&#8221;IF function typed in cell C2&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>3. Add the condition: the amount in column B should be $4000 or more (B2:B6&gt;=4000).<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/google-sheets-array-formula-add-condition.webp&#8221; alt=&#8221;Array formula in Google Sheets \u2014 condition B2:B6 greater than or equal to 4000 in the IF function&#8221; title_text=&#8221;Condition B2:B6 greater than or equal to 4000 in the IF function&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>4. After the comma, add the calculation you want to return if the condition is TRUE.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/google-sheets-array-formula-add-calculation-if-true.webp&#8221; alt=&#8221;Array formula in Google Sheets \u2014 B2:B6*0.05 added as the value if true&#8221; title_text=&#8221;B2:B6*0.05 added as the value if true&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>5. Add another comma, followed by the value you want to return if the condition is FALSE.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/google-sheets-array-formula-add-value-if-false.webp&#8221; alt=&#8221;Array formula in Google Sheets \u2014 empty text added as the value if false&#8221; title_text=&#8221;Empty text added as the value if false&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>6. Close the parenthesis and use the ARRAYFORMULA shortcut to add the function: press Ctrl + Shift + Enter on Windows or Cmd + Shift + Enter on Mac.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/google-sheets-array-formula-add-arrayformula.webp&#8221; alt=&#8221;Array formula in Google Sheets \u2014 ArrayFormula wrapped around the IF formula with the shortcut&#8221; title_text=&#8221;ArrayFormula wrapped around the IF formula with the shortcut&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>7. Press \u2018Enter\u2019 to see the resulting array.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/google-sheets-array-formula-results-array-3.webp&#8221; alt=&#8221;Array formula in Google Sheets \u2014 5% bonus for Bob, Janet, and Sarah, blank for Jane and Tim&#8221; title_text=&#8221;5% bonus for Bob, Janet, and Sarah, blank for Jane and Tim&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>The finished formula is =ARRAYFORMULA(IF(B2:B6&gt;=4000,B2:B6*0.05,&#8221;&#8221;)). Bob, Janet, and Sarah get their 5% bonus, and the cells for Jane and Tim stay blank.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to add a column name even if there&#8217;s an ARRAYFORMULA in it<\/h2>\n<p>Sometimes you may need to add a column name above data processed by an ARRAYFORMULA function. Naming columns properly is key for clarity and collaboration. Fortunately, you can do this without altering the existing data structure.<\/p>\n<p>For instance, suppose you have two lists of numerical values in columns A and B, and you want to add them together while including a column name. To do this, you can use the following formula:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>={&#8220;COLUMN NAME&#8221;; ARRAYFORMULA(A2:A11 + B2:B11)}<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>There\u2019s a few things to keep in mind when doing this:<\/p>\n<ul>\n<li>Make sure to offset the cell ranges in ARRAYFORMULA to the row below. Otherwise it will try to apply the formula to the column headers.<\/li>\n<li>Curly brackets hold arrays within them, items separated by semicolons will expand vertically. In this example if you use a comma instead of a semicolon, the formula will break.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/04\/ARRAY-\u2013-13.webp&#8221; alt=&#8221;Google Sheets ARRAYFORMULA \u2014 COLUMN NAME header above the sum of List 1 and List 2&#8243; title_text=&#8221;COLUMN NAME header above the sum of List 1 and List 2&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; custom_margin=&#8221;30px||30px||true|false&#8221; border_radii=&#8221;on|12px|12px|12px|12px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_text][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Common ARRAYFORMULA errors and how to fix them<\/h2>\n<p>When an array formula stops working, the cause is usually one of these.<\/p>\n<ul>\n<li><b>#REF! Array result was not expanded because it would overwrite data:<\/b> a cell in the output range already holds a value. Clear the cells below or beside the formula and it expands again.<\/li>\n<li><b>Array arguments to ADD are of different size:<\/b> the ranges in the formula cover different rows, such as A2:A10 + B2:B11. Make every range start and end on the same rows.<\/li>\n<li><b>One result instead of a column:<\/b> functions that summarize a range, such as SUM, AND and OR, return a single value even inside ARRAYFORMULA. For a row-by-row test, use * in place of AND and + in place of OR: =ARRAYFORMULA(IF((B2:B&gt;=4000)*(C2:C=&quot;Yes&quot;), &quot;Bonus&quot;, &quot;&quot;))<\/li>\n<li><b>#N\/A in some rows:<\/b> a lookup that finds no match returns #N\/A in that row. Wrap the lookup in <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/iferror-formula-google-sheets\/\">IFERROR<\/a> to show a blank instead: =ARRAYFORMULA(IFERROR(VLOOKUP(K2:K4, $A$1:$I$52, {1,3,4,5,6}, FALSE), &quot;&quot;))<\/li>\n<li><b>A slow spreadsheet:<\/b> open-ended ranges such as D2:D cover every row in the sheet. On large files, end the range at the last row you need, or skip blank rows with IF as in Example 2.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How do I create an ARRAYFORMULA in Google Sheets?<\/h2>\n<p>And there you have it! The ARRAYFORMULA is an extremely powerful, versatile tool that can help significantly streamline your spreadsheet data.<\/p>\n<p>Use it to return multiple values with just a single function. Also combine it with other functions such as IF, VLOOKUP, and SUMIF in order to create advanced formulas.<\/p>\n<p>Are you looking to constrain an array result to a specific size? Learn <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/array_constrain-formula-google-sheets\/\">How to use the ARRAY_CONSTRAIN formula in Google Sheets<\/a>.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.22.2&#8243; background_color=&#8221;#f9f9ff&#8221; custom_margin=&#8221;40px||40px||false|false&#8221; custom_padding=&#8221;15px|25px|15px|25px|true|true&#8221; border_width_left=&#8221;3px&#8221; border_color_left=&#8221;#808e95&#8243; global_module=&#8221;26540&#8243; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><em><strong>Editor\u2019s note<\/strong>: This is a revised version of a previous post that has been updated for accuracy and comprehensiveness.<\/em><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As its name suggests, ARRAYFORMULA turns a regular formula into an array formula in Google Sheets. It allows you to add formulas that expand automatically; they are applied as new data is introduced into the spreadsheet. That means you won\u2019t have to copy and paste formulas manually as new rows of data appear. At a [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":27681,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"To understand the importance and utility of the ARRAYFORMULA in Google Sheets, let us first go through a fundamental concept we already know.\n\nMany a time, We tend to use structurally similar formulas across the length of a column in a data range. In doing so, we take the advantage of 'relative referencing'. Meaning, the Google Sheets automatically adjusts the formula if we copy and paste it in the subsequent rows. Let us consider a basic example. The data set is a list of students along with their test scores. We should now calculate the totals in column F.\n\n<img class=\"aligncenter size-full wp-image-2691\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/array1.png\" alt=\"ARRAYFORMULA - Illustration 1\" width=\"656\" height=\"390\" \/>\n\nThe total score, for Alfred, is calculated using a simple formula \"=B2+C2+D2+F2\". We copy and paste this formula in the cells below to repeat such calculations for all the students. So, for Angela, the formula automatically becomes \"=B3+C3+D3+F3\". For Bob it is \"=B4+C4+D4+F4\", and so on and so forth. Though this approach is seemingly convenient, there are inherent problems to doing this.\n<ul>\n \t<li>If in the above case the data set is huge, we end up with a lot of formulas. This could bloat the spreadsheet and make it a tad slower.<\/li>\n \t<li>If we need to make any changes to the formula, this has to be repeated across all the formulas.<\/li>\n \t<li>What if a new student by name Charlotte joins the class? When we include a new row for her below row # 7, the formula isn't copied automatically. In a sense, this approach is not dynamic enough.<\/li>\n<\/ul>\nThe ARRAYFORMULA solves all the above mentioned problems.\n<ul>\n \t<li>As opposed to a bunch of similar formulas that individually calculate values, we can have one single ARRAYFORMULA that processes the data in a batch.<\/li>\n \t<li>Since this is a single formula, we can make changes in just one place and the effect takes place across the data range.<\/li>\n \t<li>We can induce the dynamism that was missing with a bunch of individual formulas, in that the ARRAYFORMULA got us covered even if a new row is introduced that needs similar formula calculations.<\/li>\n<\/ul>\n<h3>Syntax<\/h3>\n<span style=\"font-family: courier new,courier,monospace; font-size: 14pt;\"><strong>ARRAYFORMULA(array_formula)<\/strong><\/span>\n<ul>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>array_formula<\/strong><\/span> - this parameter can either be\n<ul>\n \t<li>a range,<\/li>\n \t<li>a mathematical expression using one cell range or multiple ranges of the same size, or<\/li>\n \t<li>a function that returns a result greater than one cell.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Usage: ARRAYFORMULA<\/h3>\nBuilding on the previous example, in order to calculate the totals, we can use the ARRAYFORMULA as shown below. Notice that, unlike before where we've added individual cells, we are now adding the ranges. And we key this in the very first total cell, F2. All the following Total cells should be clear of any values or formulas, so that ARRAYFORMULA can show us the results without any errors.\n\n<img class=\"aligncenter size-full wp-image-2693\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/array2.png\" alt=\"ARRAYFORMULA - Illustration 2\" width=\"654\" height=\"560\" \/>\n\nTo quickly fix the zeroes at the end, we change the formula in just one place (i.e. cell F2). Yet, it affects the calculations across the range, as shown below. Notice that even the expression used in the condition within the IF formula is a range A2:A.\n\n<img class=\"aligncenter size-full wp-image-2694\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/array3.png\" alt=\"ARRAYFORMULA - Illustration 3\" width=\"654\" height=\"410\" \/>\n\nNow, We'll include a row for Charlotte below row # 7. Let's find out whether the ARRAYFORMULA automatically calculates the Total for her.\n\n<img class=\"aligncenter size-full wp-image-2695\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/array4.png\" alt=\"ARRAYFORMULA - Illustration 4\" width=\"654\" height=\"413\" \/>\n\nWell, not surprisingly, it does. For more information on ARRAYFORMULA, please check out this <a href=\"https:\/\/support.google.com\/docs\/answer\/3093275?hl=en\">link<\/a>.\n\n\u00a0\n\n\u00a0","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-2688","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-formulas","tag-connections-t","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/2688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/comments?post=2688"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/2688\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media\/27681"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media?parent=2688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/categories?post=2688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/tags?post=2688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}