{"id":1366,"date":"2018-07-04T10:41:37","date_gmt":"2018-07-04T10:41:37","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=1366"},"modified":"2023-11-02T19:13:46","modified_gmt":"2023-11-02T19:13:46","slug":"averageif","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/functions\/averageif\/","title":{"rendered":"AVERAGEIF function"},"content":{"rendered":"\n

The AVERAGEIF function in Excel is a useful tool for finding the average of a range of numbers that meet a specific condition. It allows you to specify a criterion and calculate the average of only those numbers that satisfy that condition.<\/p>\n\n\n\n

Syntax<\/h2>\n\n\n\n

AVERAGEIF(range, criteria, [average_range])<\/strong><\/p>\n\n\n\n

Arguments<\/h2>\n\n\n\n
range<\/strong><\/td>The range of cells to be evaluated against the given criteria.<\/td><\/tr>
criteria<\/strong><\/td>The condition that determines which cells in the range are included in the average. You can use logical operators (e.g., “>, <, =”) or expressions (e.g., “>5”, “Red”).<\/td><\/tr>
[average_range]<\/strong><\/td>(Optional) The range of cells containing the numbers to be averaged. If not provided, the function uses the “range” for averaging.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

How to Use<\/h2>\n\n\n\n

Here’s how to use the AVERAGEIF function with examples:<\/p>\n\n\n\n

Example 1:<\/strong> Find the average of test scores that are greater than 80 in the range A1:A10.<\/p>\n\n\n\n

=AVERAGEIF(A1:A10, \">80\")<\/code><\/pre>\n\n\n\n

Example 2:<\/strong> Calculate the average of sales in the “West” region from the range A1:A20, where column B contains the region names.<\/p>\n\n\n\n

=AVERAGEIF(B1:B20, \"West\", A1:A20)<\/code><\/pre>\n\n\n\n

Example 3:<\/strong> Compute the average of values in the range C1:C15, which corresponds to dates falling in the month of January.<\/p>\n\n\n\n

=AVERAGEIF(C1:C15, \">=01\/01\/2023\", C1:C15)<\/code><\/pre>\n\n\n\n

Example 4:<\/strong> To find the average of all values that are not empty in the range D1:D30.<\/p>\n\n\n\n

=AVERAGEIF(D1:D30, \"<>\", D1:D30)<\/code><\/pre>\n\n\n\n

The AVERAGEIF function is a powerful tool to quickly calculate averages based on specific criteria, making it an essential part of Excel’s functionality for data analysis.<\/p>\n","protected":false},"excerpt":{"rendered":"

The AVERAGEIF function in Excel is a useful tool for finding the average of a range of numbers that meet a specific condition….<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[180],"yoast_head":"\nAVERAGEIF function<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/functions\/averageif\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AVERAGEIF function\" \/>\n<meta property=\"og:description\" content=\"The AVERAGEIF function in Excel is a useful tool for finding the average of a range of numbers that meet a specific condition....\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/functions\/averageif\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-04T10:41:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-02T19:13:46+00:00\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/averageif\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/averageif\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"AVERAGEIF function\",\"datePublished\":\"2018-07-04T10:41:37+00:00\",\"dateModified\":\"2023-11-02T19:13:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/averageif\/\"},\"wordCount\":232,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"keywords\":[\"done\"],\"articleSection\":[\"functions\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/averageif\/\",\"url\":\"https:\/\/officetuts.net\/excel\/functions\/averageif\/\",\"name\":\"AVERAGEIF function\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"datePublished\":\"2018-07-04T10:41:37+00:00\",\"dateModified\":\"2023-11-02T19:13:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/averageif\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/functions\/averageif\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/averageif\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AVERAGEIF function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AVERAGEIF function","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:\/\/officetuts.net\/excel\/functions\/averageif\/","og_locale":"en_US","og_type":"article","og_title":"AVERAGEIF function","og_description":"The AVERAGEIF function in Excel is a useful tool for finding the average of a range of numbers that meet a specific condition....","og_url":"https:\/\/officetuts.net\/excel\/functions\/averageif\/","article_published_time":"2018-07-04T10:41:37+00:00","article_modified_time":"2023-11-02T19:13:46+00:00","author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/functions\/averageif\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/functions\/averageif\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"AVERAGEIF function","datePublished":"2018-07-04T10:41:37+00:00","dateModified":"2023-11-02T19:13:46+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/functions\/averageif\/"},"wordCount":232,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"keywords":["done"],"articleSection":["functions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/functions\/averageif\/","url":"https:\/\/officetuts.net\/excel\/functions\/averageif\/","name":"AVERAGEIF function","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"datePublished":"2018-07-04T10:41:37+00:00","dateModified":"2023-11-02T19:13:46+00:00","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/functions\/averageif\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/functions\/averageif\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/functions\/averageif\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"AVERAGEIF function"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1366"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=1366"}],"version-history":[{"count":4,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1366\/revisions"}],"predecessor-version":[{"id":16353,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1366\/revisions\/16353"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=1366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=1366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=1366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}