{"id":1058,"date":"2019-05-03T16:22:47","date_gmt":"2019-05-03T13:22:47","guid":{"rendered":"https:\/\/www.test4u.eu\/excelpedia\/?p=1058"},"modified":"2019-05-03T16:55:10","modified_gmt":"2019-05-03T13:55:10","slug":"the-averageif-function","status":"publish","type":"post","link":"https:\/\/www.test4u.eu\/excelpedia\/the-averageif-function\/","title":{"rendered":"The AVERAGEIF Function"},"content":{"rendered":"\n<p>It returns the arithmetic mean (average) of all the cells in a given range that meet a specific criterion. <\/p>\n\n\n\n<p>The syntax of the function is the following: <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-large is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>AVERAGEIF<\/strong><em>(<\/em><strong>range, criterion, [average_range]<\/strong>) <\/p><cite><strong>range<\/strong>: The cells or range of cells we want to calculate the average for, unless the average_range argument is defined. If the optional attribute average_range is defined then range is the range to which we apply the criterion.<br><strong>criterion<\/strong>: It is the criterion that defines which cells of the range should be included in the calculation of the average.<br><strong>[average_range]<\/strong>: Optional. The actual set of cells to average. If this argument is omitted the range attribute is used.<\/cite><\/blockquote>\n\n\n\n<p>If the cells in range are empty or contain logical or text values they are ignored.<\/p>\n\n\n\n<p>If range is blank the function throws the #DIV\/0! error.<\/p>\n\n\n\n<p>If no cells meet the criterion the function throws the #DIV\/0! error.<\/p>\n\n\n\n<p>If a criterion cell is empty, it is treated as a zero.<\/p>\n\n\n\n<p>You can use the wildcard characters, question mark (?) and asterisk (*), in criteria. A question mark matches any single character; an asterisk matches any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) before the character.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Click on the button to practice using this function, with the help of our <strong>Online Assessment Tool<\/strong>:<\/p>\n\n\n<p class=\"button-practice-container\" ><a class=\"button button-primary button-practice\" style=\"height:auto\"  href=\"https:\/\/www.test4u.eu\/excelpedia\/wp-content\/plugins\/unlimited-integration\/run.php?id=TEtRR0xBWndwbHVha2w5WmRTaFNmNzFid0dYaFFwazRzNWo1QmdqelhzTGhnTXY5RVZmYnNXaFhXRC8zNWpqSw==&b=RTRVMG1SWktoUFEvbis5OE56bG9FUWxjSnBBdVdsTU9yZlYydVhqbzR1UjFuZWRpYlcwS2szQzM1ZXgxdk9oY3pNeExxVEhsbU54dlJQV0p2TUliVXc0eFJkRUQxRHJGYlZwUzVweXZqY1E9\">Practice<\/a><\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n<p class=\"has-medium-font-size\"><strong>Here is an example of how to use the AVERAGEIF function:<\/strong><\/p>\n\n\n\n<p>At the cell area B8:G8 of Sheet3 show the average grade of the lessons with grades greater than or equal to 5.<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe class=\"youtube-player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/v4u-a4_X5Xo?version=3&#038;rel=0&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>It returns the arithmetic mean (average) of all the cells in a given range that meet a specific criterion. <\/p>\n","protected":false},"author":2,"featured_media":1059,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[160,14],"class_list":["post-1058","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-functions","tag-averageif","tag-statistical"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.test4u.eu\/excelpedia\/wp-content\/uploads\/2019\/05\/averageif.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paRnIz-h4","_links":{"self":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/1058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/comments?post=1058"}],"version-history":[{"count":0,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/1058\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media\/1059"}],"wp:attachment":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media?parent=1058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/categories?post=1058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/tags?post=1058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}