Excel has no dedicated keyboard shortcut that inserts a SUMIF formula automatically. The quickest method is to type the formula in a cell; on Windows, press Shift+F3 to open Insert Function if you want Excel to help build it, or use Alt+= for AutoSum when a simple total—not a conditional total—is what you need.
Is there a dedicated SUMIF shortcut?
No single key combination runs SUMIF or fills in its arguments for you. A shortcut can open Excel’s function tools, but you still need to choose SUMIF, provide the cells to check, specify the condition, and identify the cells to add. For a straightforward task, typing the formula directly is usually faster than opening a dialog.
For example, if column A contains product names and column B contains sales, a SUMIF formula can total sales for one selected product. It adds only the values whose corresponding product name meets the condition. This makes SUMIF useful for quick summaries without rearranging or filtering the source table.
The fastest way to enter SUMIF
With product names in A2:A6 and sales amounts in B2:B6, enter the following in an empty cell to total sales for Tea:
=SUMIF(A2:A6,"Tea",B2:B6)
If the rows contain Tea, Coffee, Tea, Tea, and Coffee, with sales of 12, 18, 9, 14, and 11 respectively, the result is 35. The formula checks each cell in A2:A6 and adds the corresponding value from B2:B6 when the product is Tea.
To enter it, select a blank cell, type the formula, and press Enter. You can also start with =SUMIF( and use Excel’s function autocomplete to see the argument prompts. Type a comma between arguments, select the relevant ranges with the mouse or keyboard, close the parenthesis, and press Enter. In Excel’s usual Windows settings, formulas use commas as argument separators; some regional settings use semicolons instead.
What SUMIF does
SUMIF performs a conditional addition: it tests one range against one condition and adds corresponding values from a sum range. It is a single-condition function, so it works well for questions such as “How much did Tea sell?” or “What is the total for invoices above a threshold?”
The function has three arguments: the range Excel checks, the criterion that defines a match, and the optional range containing numbers to add. If you leave out the sum range, Excel adds the matching cells in the checked range itself. That is convenient when the values being tested are also the numbers being totaled.
For instance, with quantities in B2:B6, this formula adds only quantities that are at least 12:
=SUMIF(B2:B6,">=12",B2:B6)
For the values 12, 18, 9, 14, and 11, the result is 44: 12 + 18 + 14. The criterion includes the greater-than-or-equal operator and the threshold in quotation marks.
Choosing the right ranges and criterion
Range selection is the most important part of a reliable SUMIF formula. The checked range and sum range should cover corresponding rows and have the same dimensions. If A2:A6 holds product names, B2:B6 should hold the associated sales values—not B3:B7, which would offset every match by one row.
- Range: The cells Excel evaluates, such as the product-name column.
- Criterion: The value, text, comparison, or cell reference that determines which rows qualify.
- Sum range: The numeric cells Excel adds for qualifying rows. This argument is optional if the checked range is itself numeric.
A criterion can be text, a number, a comparison, a wildcard expression, or a reference to another cell. Text conditions and comparison expressions are commonly enclosed in quotation marks. If the condition comes from a cell, refer to the cell directly rather than typing its current contents into the formula. This makes the result easier to change without editing the formula.
With product names in A2:A6, sales in B2:B6, and the requested product typed in D2, use:
=SUMIF(A2:A6,D2,B2:B6)
If D2 contains Tea, the result is 35 using the example data above. Change D2 to Coffee and the result becomes 29 (18 + 11), while the formula stays the same.
Text, wildcards, and comparison criteria
SUMIF’s text matching is not case-sensitive: a criterion of Tea also matches tea or TEA. If capitalization must distinguish categories, SUMIF alone is not a case-sensitive matching tool. Extra spaces, however, can cause a value that looks similar to fail an exact text match, so check the source data if a total unexpectedly comes out as zero.
For partial text matching, Excel supports two wildcard characters in criteria: an asterisk represents any number of characters, and a question mark represents one character. A tilde can be used to treat a wildcard character literally. For example, an asterisk can match all product codes beginning with a shared prefix.
With codes in A2:A5 and their amounts in B2:B5—North-01 with 10, North-02 with 15, South-01 with 8, and North-03 with 12—this formula totals codes that start with North-:
=SUMIF(A2:A5,"North-*",B2:B5)
The result is 37 (10 + 15 + 12). For comparisons, criteria such as greater than, less than, or not equal to are written as text. If the threshold is stored in a cell, join the operator to the reference with an ampersand; for example, the criterion can be assembled from the text operator and that cell’s value.
When to use SUMIFS instead
SUMIF accepts one criterion. Use SUMIFS when a total must satisfy multiple conditions, such as a particular product in one column and a particular region in another. SUMIFS puts the sum range first, followed by pairs of criteria ranges and criteria; SUMIF puts the checked range first. Remembering this argument-order difference helps avoid confusing the two functions.
With product names in A2:A6, regions in B2:B6, sales in C2:C6, and the rows Tea/North/12, Coffee/North/18, Tea/South/9, Tea/North/14, and Coffee/South/11, this formula totals Tea sales in North:
=SUMIFS(C2:C6,A2:A6,"Tea",B2:B6,"North")
The result is 26 (12 + 14). If the question has just one condition, SUMIF is simpler; if it has two or more, SUMIFS is generally the function to reach for. Both functions are available in current desktop Excel versions.
Common SUMIF problems and fixes
A zero or unexpectedly small total usually points to a mismatch between the criterion and the source values, a misaligned range, or numbers stored as text. Check the following before rebuilding the formula:
- Confirm that the criterion range and sum range start and end on corresponding rows.
- Check for leading or trailing spaces in text labels and inconsistent spellings.
- Make sure the cells to add contain numeric values, not numbers imported or entered as text.
- For a comparison, include quotation marks around the operator and number, such as
">=12". - If the criterion is in a cell and includes an operator, join the operator and reference rather than expecting Excel to interpret them as one value.
Also check whether a formula has been copied down or across and whether its references should move. If a reference needs to stay fixed when copied, use dollar signs to make it absolute; if it should adjust for each row, leave it relative. A wrong reference can produce a plausible-looking but incorrect total, so compare the selected ranges with the table before relying on the result.
Keyboard and platform differences
On Excel for Microsoft 365 for Windows, Shift+F3 opens the Insert Function dialog, where you can search for SUMIF and follow the prompts. The ribbon alternative is Formulas > Insert Function. On some keyboards, you may need to hold Fn as well to send an F-key command, depending on the keyboard’s function-key settings.
Alt+= is Excel’s AutoSum shortcut on Windows. It is useful for inserting a basic SUM formula around a nearby block of numbers, but it does not create a SUMIF condition. If you need a conditional total, enter SUMIF directly or use Insert Function.
On Excel for Mac, function keys may require Fn, and keyboard behavior can vary with macOS and keyboard settings. The Formulas tab’s Insert Function control is a reliable alternative when Shift+F3 does not open the dialog. Excel for the web has its own keyboard-shortcut behavior and browser interactions, so typing the formula in a cell or using the ribbon is often the clearest route. The SUMIF formula itself works across these Excel versions.
Frequently Asked Questions
What is the shortcut for SUMIF in Excel?
There is no dedicated SUMIF shortcut. Type the formula into a cell, or press Shift+F3 on Windows to open Insert Function and select SUMIF. Alt+= inserts AutoSum, not SUMIF.
How do I quickly insert a SUMIF formula?
Select an empty cell, type =SUMIF(, choose the checked range, enter the criterion and sum range separated by commas, then close the parenthesis and press Enter. Excel’s autocomplete can help display the argument order while you type.
What is the difference between SUMIF and SUMIFS?
SUMIF applies one condition; SUMIFS can apply multiple conditions. Their argument order also differs: SUMIF starts with the checked range, while SUMIFS starts with the sum range.
Does SUMIF distinguish uppercase and lowercase text?
No. SUMIF text criteria are not case-sensitive, so Tea and TEA match the same text for this function. Use a different approach if case-sensitive matching is essential.
Why does SUMIF return zero?
Common causes include a criterion that does not exactly match the source text, extra spaces, numbers stored as text, or a range that points to the wrong cells. Check the criteria and ensure the checked and sum ranges line up row by row.
Related
- How to Freeze Top Row and First Column in Excel
- Excel conditional formatting based on another cell?
- How to Calculate Age in Excel from Date of Birth
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- Excel INDEX Function: Syntax, Examples, and Common UsesYes. In the English-language version of Microsoft Excel, the function is called INDEX. It returns the value—or, in…
- Filter Excel by Highlighted CellsYes. In Excel for Microsoft 365 on Windows, open the filter arrow in the column containing the highlighted…
- Excel MID and FIND Functions: How to Extract Text in ExcelWith the text INV-2026-047 in A2, use =MID(A2,FIND("-",A2)+1,4) to extract the year; the result is 2026. MID returns…
- Roundup Excel Cell Values: 10 Ways to Round NumbersTo round a number up to the next whole number in Excel, with the value in A2, enter…
- Excel Sum Between Dates: SUMIFS Formulas and ExamplesIf dates are in A2:A100, amounts are in B2:B100, and the start and end dates are in E2…
- Excel MID Cell Reference: Extract Text from a CellTo extract characters from a cell in Excel, use the MID function with that cell as its first…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.