
Suppose you are working in the excel and you came to the situation that you want to sum cell based on certain specific criteria.
So to solve this, you can use SUMIF function of excel so let’s explore that……..
What is Excel SUMIF Function
SUMIF function to sum the values in a range that meet criteria that you specify. . For example, suppose that in a column that contains multiple country, you want to sum only Country = USA, then you can use the SUMIF, for this you can see the above example.
Syntax
SUMIF(range, criteria, [sum_range])
The SUMIF function syntax has the following arguments:
- range Required. The range of cells that you want evaluated by criteria. Cells in each range must be numbers or names, arrays, or references that contain numbers. Blank and text values are ignored. The selected range may contain dates in standard Excel format (examples below).
- criteria Required. The criteria in the form of a number, expression, a cell reference, text, or a function that defines which cells will be added. Wildcard characters can be included – a question mark (?) to match any single character, an asterisk (*) to match any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) preceding the character. For example, criteria can be expressed as 32, “>32”, B5, “3?”, “apple*”, “*~?”, or TODAY().Important: Any text criteria or any criteria that includes logical or mathematical symbols must be enclosed in double quotation marks (“). If the criteria is numeric, double quotation marks are not required.
- sum_range Optional. The actual cells to add, if you want to add cells other than those specified in the range argument. If the sum_range argument is omitted, Excel adds the cells that are specified in the range argument (the same cells to which the criteria is applied).Sum_range should be the same size and shape as range. If it isn’t, performance may suffer, and the formula will sum a range of cells that starts with the first cell in sum_range but has the same dimensions as range.
Important: Any text criteria or any criteria that includes logical or mathematical symbols must be enclosed in double quotation marks ("). If the criteria is numeric, double quotation marks are not required.
SUMIF Examples
For e.g. in the below data you want first SUM of blank cells and after that SUM of non-blank cells.

You can use SUMIF formula – to sum blank you can use criteria as “” for non blank you can use “<>”. If you want to verify it then you can same above example to do it. Don’t forget to share it with others.
