{"id":1261,"date":"2018-07-02T17:23:48","date_gmt":"2018-07-02T17:23:48","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=1261"},"modified":"2023-11-03T14:40:50","modified_gmt":"2023-11-03T14:40:50","slug":"sumif","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/functions\/sumif\/","title":{"rendered":"SUMIF function"},"content":{"rendered":"\n
The Excel SUMIF function is a handy tool for adding up values based on a specific condition. It’s like a digital assistant that helps you calculate the total of numbers that meet certain criteria.<\/p>\n\n\n\n
=SUMIF(range, criteria, [sum_range])<\/strong><\/p>\n\n\n\n The SUMIF function is simple to use and can be a real time-saver. Here are some examples to illustrate how it works:<\/p>\n\n\n\n Let’s say you have a list of test scores in cells A1 to A5, and you want to find the sum of scores that are greater than or equal to 80:<\/p>\n\n\n\n This formula will add up all the scores in the range A1 to A5 that meet the condition (>=80).<\/p>\n\n\n\n Now, let’s take it up a notch. Suppose you have a list of products in column B (B1 to B10) and their respective sales in column C (C1 to C10). You want to find the total sales for a specific product, let’s say “Apples.” You can use SUMIF like this:<\/p>\n\n\n\n This formula will sum up the sales values in column C where the product name in column B matches “Apples.”<\/p>\n\n\n\n One more example: if you need to calculate the total sales of products with prices above $10, you can use SUMIF with a range of prices in column D (D1 to D10) and a condition:<\/p>\n\n\n\n This formula will add up the sales values from column C where the prices in column D are greater than $10.<\/p>\n\n\n\n So, whether you’re dealing with test scores, product sales, or any other data, the SUMIF function can help you efficiently calculate the sums you need based on specific criteria.<\/p>\n","protected":false},"excerpt":{"rendered":" The Excel SUMIF function is a handy tool for adding up values based on a specific condition. It’s like a digital assistant that…<\/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":"\nArguments<\/h2>\n\n\n\n
range<\/strong><\/td> The range of cells that you want to evaluate against the given criteria.<\/td><\/tr> criteria<\/strong><\/td> The condition or criteria that you want to apply to the cells in the range. For example, “>50” means values greater than 50.<\/td><\/tr> [sum_range]<\/strong><\/td> (Optional) The range of cells from which you want to sum values. If omitted, the function will sum the values in the ‘range’ itself.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n How to use<\/h2>\n\n\n\n
=SUMIF(A1:A5, \">=80\")<\/code><\/pre>\n\n\n\n
=SUMIF(B1:B10, \"Apples\", C1:C10)<\/code><\/pre>\n\n\n\n
=SUMIF(D1:D10, \">10\", C1:C10)<\/code><\/pre>\n\n\n\n