{"id":45,"date":"2025-07-15T13:34:46","date_gmt":"2025-07-15T13:34:46","guid":{"rendered":"https:\/\/functiontranslator.com\/2021\/02\/12\/averageif\/"},"modified":"2021-02-13T11:32:40","modified_gmt":"2021-02-13T11:32:40","slug":"averageif","status":"publish","type":"post","link":"https:\/\/functiontranslator.com\/en\/averageif\/","title":{"rendered":"AVERAGEIF"},"content":{"rendered":"<p>Today, we will delve into the AVERAGEIF function in Microsoft Excel and Google Sheets, which is designed to compute the average of a range based on a specific criterion.<\/p>\n<h2>Overview<\/h2>\n<p>The AVERAGEIF function enables you to calculate the mean value of cells that satisfy a particular condition.<\/p>\n<h2>Syntax<\/h2>\n<p>The syntax for the AVERAGEIF function varies slightly between Excel and Google Sheets:<\/p>\n<p><strong>Excel:<\/strong><\/p>\n<pre><code>=AVERAGEIF(range, criteria, [average_range])<\/code><\/pre>\n<ul>\n<li><code>range<\/code>: The group of cells against which the criteria are evaluated.<\/li>\n<li><code>criteria<\/code>: The condition that must be fulfilled. This can be a number, expression, cell reference, or text that identifies which cells will contribute to the average.<\/li>\n<li><code>average_range<\/code>: [Optional] The cells from which the average is actually calculated. If not specified, the cells in the <code>range<\/code> are used by default.<\/li>\n<\/ul>\n<p><strong>Google Sheets:<\/strong><\/p>\n<pre><code>=AVERAGEIF(range, criterion, [average_range])<\/code><\/pre>\n<ul>\n<li><code>range<\/code>: The range of cells evaluated by the criterion.<\/li>\n<li><code>criterion<\/code>: The required condition to be met. Like in Excel, this may be a number, expression, reference, or text that defines the cells to be averaged.<\/li>\n<li><code>average_range<\/code>: [Optional] Specifies the range from which the values are averaged. If omitted, the range stipulated for evaluation is used instead.<\/li>\n<\/ul>\n<h2>Examples<\/h2>\n<p>Let&#8217;s examine some practical applications of the AVERAGEIF function in both Excel and Google Sheets.<\/p>\n<h3>Example 1: Simple AVERAGEIF<\/h3>\n<p>Consider a range of student test scores in cells A1 to A4, and you wish to determine the average score for all values greater than or equal to 80.<\/p>\n<table>\n<tr>\n<th>Student<\/th>\n<th>Score<\/th>\n<\/tr>\n<tr>\n<td>Student 1<\/td>\n<td>85<\/td>\n<\/tr>\n<tr>\n<td>Student 2<\/td>\n<td>70<\/td>\n<\/tr>\n<tr>\n<td>Student 3<\/td>\n<td>90<\/td>\n<\/tr>\n<tr>\n<td>Student 4<\/td>\n<td>80<\/td>\n<\/tr>\n<\/table>\n<p><strong>Excel:<\/strong><\/p>\n<pre><code>=AVERAGEIF(A1:A4, \">=80\")<\/code><\/pre>\n<p>This formula calculates the average of scores that are greater than or equal to 80 from cells A1 to A4.<\/p>\n<p><strong>Google Sheets:<\/strong><\/p>\n<pre><code>=AVERAGEIF(A1:A4, \">=80\")<\/code><\/pre>\n<h3>Example 2: AVERAGEIF with Specified Average Range<\/h3>\n<p>Imagine a scenario with a list of sales in column B and corresponding salespeople in column A. You want to compute the average sale amount for a specific salesperson, designated as &#8220;A&#8221;.<\/p>\n<table>\n<tr>\n<th>Salesperson<\/th>\n<th>Sales<\/th>\n<\/tr>\n<tr>\n<td>A<\/td>\n<td>100<\/td>\n<\/tr>\n<tr>\n<td>B<\/td>\n<td>150<\/td>\n<\/tr>\n<tr>\n<td>A<\/td>\n<td>200<\/td>\n<\/tr>\n<tr>\n<td>B<\/td>\n<td>120<\/td>\n<\/tr>\n<\/table>\n<p><strong>Excel:<\/strong><\/p>\n<pre><code>=AVERAGEIF(A1:A4, \"A\", B1:B4)<\/code><\/pre>\n<p>This formula computes the average sales where the salesperson is listed as &#8220;A&#8221; from the A1 to A4 range.<\/p>\n<p><strong>Google Sheets:<\/strong><\/p>\n<pre><code>=AVERAGEIF(A1:A4, \"A\", B1:B4)<\/code><\/pre>\n<p>The AVERAGEIF function is an incredibly useful tool for aggregating data based on specific conditions, streamlining the process of data analysis.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Returns the average (arithmetic mean) of all the cells in a range that meet a given criteria<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[203],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-statistical"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Excel AVERAGEIF Function \u2013 How It Works, Formula Examples and Syntax<\/title>\n<meta name=\"description\" content=\"Learn what the Excel AVERAGEIF function does. Clear syntax explanation and useful formula examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/functiontranslator.com\/en\/averageif\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Excel AVERAGEIF Function \u2013 How It Works, Formula Examples and Syntax\" \/>\n<meta property=\"og:description\" content=\"Learn what the Excel AVERAGEIF function does. Clear syntax explanation and useful formula examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/functiontranslator.com\/en\/averageif\/\" \/>\n<meta property=\"og:site_name\" content=\"Function Translator\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-15T13:34:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-13T11:32:40+00:00\" \/>\n<meta name=\"author\" content=\"glavadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Excel AVERAGEIF Function \u2013 How It Works, Formula Examples and Syntax\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"glavadmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/functiontranslator.com\/en\/averageif\/\",\"url\":\"https:\/\/functiontranslator.com\/en\/averageif\/\",\"name\":\"Excel AVERAGEIF Function \u2013 How It Works, Formula Examples and Syntax\",\"isPartOf\":{\"@id\":\"https:\/\/functiontranslator.com\/no\/#website\"},\"datePublished\":\"2025-07-15T13:34:46+00:00\",\"dateModified\":\"2021-02-13T11:32:40+00:00\",\"author\":{\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389\"},\"description\":\"Learn what the Excel AVERAGEIF function does. Clear syntax explanation and useful formula examples.\",\"breadcrumb\":{\"@id\":\"https:\/\/functiontranslator.com\/en\/averageif\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/functiontranslator.com\/en\/averageif\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/functiontranslator.com\/en\/averageif\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Function Excel\",\"item\":\"https:\/\/functiontranslator.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Statistical\",\"item\":\"https:\/\/functiontranslator.com\/en\/statistical\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AVERAGEIF\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#website\",\"url\":\"https:\/\/functiontranslator.com\/no\/\",\"name\":\"Function Translator\",\"description\":\"Excel function translator\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/functiontranslator.com\/no\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389\",\"name\":\"glavadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g\",\"caption\":\"glavadmin\"},\"sameAs\":[\"https:\/\/functiontranslator.com\"],\"url\":\"https:\/\/functiontranslator.com\/en\/author\/glavadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Excel AVERAGEIF Function \u2013 How It Works, Formula Examples and Syntax","description":"Learn what the Excel AVERAGEIF function does. Clear syntax explanation and useful formula examples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/functiontranslator.com\/en\/averageif\/","og_locale":"en_US","og_type":"article","og_title":"Excel AVERAGEIF Function \u2013 How It Works, Formula Examples and Syntax","og_description":"Learn what the Excel AVERAGEIF function does. Clear syntax explanation and useful formula examples.","og_url":"https:\/\/functiontranslator.com\/en\/averageif\/","og_site_name":"Function Translator","article_published_time":"2025-07-15T13:34:46+00:00","article_modified_time":"2021-02-13T11:32:40+00:00","author":"glavadmin","twitter_card":"summary_large_image","twitter_title":"Excel AVERAGEIF Function \u2013 How It Works, Formula Examples and Syntax","twitter_misc":{"Written by":"glavadmin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/functiontranslator.com\/en\/averageif\/","url":"https:\/\/functiontranslator.com\/en\/averageif\/","name":"Excel AVERAGEIF Function \u2013 How It Works, Formula Examples and Syntax","isPartOf":{"@id":"https:\/\/functiontranslator.com\/no\/#website"},"datePublished":"2025-07-15T13:34:46+00:00","dateModified":"2021-02-13T11:32:40+00:00","author":{"@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389"},"description":"Learn what the Excel AVERAGEIF function does. Clear syntax explanation and useful formula examples.","breadcrumb":{"@id":"https:\/\/functiontranslator.com\/en\/averageif\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/functiontranslator.com\/en\/averageif\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/functiontranslator.com\/en\/averageif\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Function Excel","item":"https:\/\/functiontranslator.com\/en\/"},{"@type":"ListItem","position":2,"name":"Statistical","item":"https:\/\/functiontranslator.com\/en\/statistical\/"},{"@type":"ListItem","position":3,"name":"AVERAGEIF"}]},{"@type":"WebSite","@id":"https:\/\/functiontranslator.com\/no\/#website","url":"https:\/\/functiontranslator.com\/no\/","name":"Function Translator","description":"Excel function translator","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/functiontranslator.com\/no\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389","name":"glavadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g","caption":"glavadmin"},"sameAs":["https:\/\/functiontranslator.com"],"url":"https:\/\/functiontranslator.com\/en\/author\/glavadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":3,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":2936,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/posts\/45\/revisions\/2936"}],"wp:attachment":[{"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}