Conditional Sum SUMIF usage
Excel/52967.htm ">excel Conditional summation SUMIF Usage detailed click to view details
Multi-Conditional Sum sumifs usage
sumifs function Description
The SUMIFS function is a function that is used in Excel to sum up the data that the specified range matches by multiple criteria.Official Description:In a range area: two or more ce
the second parameter? We'll see that the third parameter is exactly the area of the first argument that is offset by one unit.
To sum up, the SUMIF function does not sum only the rule regions, but also the irregular permutations.
Second, SUMIF function introductory Chapter
SUMIF, as a conditional summation function in Excel2003, plays a powerful role in practical work, although it is replaced by Sumifs after 2007, but it is still a classic of Exce
examine the data outside the brand is not also need to modify the where condition to limit not only so where in these conditions limit It's more trouble to play. The better logic is to put all the brand's gold 3 months of detailed summary, through the Excel sumif sumifs function The SQL of the brand summary is modified by the following data SELECTD.id,c. City, c. brand name, c. Month,COUNT(c. Product ID) asSKU number,SUM(Order Amount) asOrder Amount
This function solves the problem that needs to be summed in multiple conditions and expands the function of the SUMIF function. For example: You need to calculate the sales of Beijing potato chips.
Operation method
1, the selected cell, input function, the format of the SUMIFS function is: sumifs (sum_range,criteria_range1,criteria1[criteria_range2,criteria2] ...)
2. "Sum_range" indicates the
I. Use the sumif Function
Sumif: sums cells that meet the conditions.
1. Syntax
= Sumif (range, criteria, [sum_range])
= Sumif (E: E, H8, F: F)
Calculate the value range
= Sumif (F: F, " gt; 500", F: F)
If the number of characters exceeds 15 characters, the sumif function is used only for the first 15 characters.
= Sumif (A: A, F3 "*", B: B)
Abbreviation of the third parameter
= Sumif (D: D, H4, F1) OR = sumif (D: D, H4, F1: F2)
Use the sumif function in multiple columns
= Sumif ($ A $1: $ I $1
In Excel 2007, the AverageIf, AverageIfs, Sumifs, Countifs, and iferror Five functions are added, which can be calculated on a per-condition basis within a certain range. In particular, multiple conditional function averageifs, countifs and sumifs to our work has brought great convenience, such as in the grade of the total score table to calculate the average score of each class, passing rate and excellent
array (b2:b5= "three") * (c2:c5= "female") to determine the row for the cell that satisfies the prepared summation condition, * (D2:D5) Is the range of cells that meet the sum condition.
The third function is not commonly used, I do not know it very well, in order to respect the author's original works, I only put his content posted, please forgive me.
In fact, the second method above (the SUM function nested if function) and the third Way (sumproduct function) can not only achieve the sum of
the SUMIF function in Excel using a small compilation.
27. Multi-Conditional summation--------------------the delivery platform for Chongqing=sumproduct (a2:a13= "Chengdu delivery Platform") * (c2:c13= "Chongqing delivery Platform") * (D2:D13))For the use of the SUMIFS function, you can watch the experience of the SUMIFS function in Excel using a small compilation.
38. Multi-Conditional summation------
, open the Sheet tab in the Page Setup dialog box, click the Compress dialog button to the right of the top header row text box, select the range of cells that contains the header and top headings, and then click the button to return to the Page Setup dialog box and click OK.
28, Excel Multi-conditional Sum function has what
In Excel, what functions can be used to complete a multiple conditional sum?
The SUMIF function is almost the same as the COUNTIF function. Multi-condition processing met
In Excel 2007, the AverageIf, AverageIfs, Sumifs, Countifs, and iferror Five functions are added, which can be calculated on a per-condition basis within a certain range. In particular, multiple conditional function averageifs, countifs and sumifs to our work has brought great convenience, such as in the grade of the total score table to calculate the average score of each class, passing rate and excellent
.
Calculate sales of more than 1000:
=sumifs (C:C,B:B, "sales department", C:c, ">1000")
10, calculate a certain date is the first few quarters:
=len (2^month (A2)) "Quarter"
11, specify the minimum value of the condition:
{=min (IF (b2:b10= "Sales", C2:C10))}
Note: The formula here has a pair of curly braces on the outermost layer. This is the legend of the array formula, you need to press and hold Shift+ct
How do you count and match conditional data in an Excel table?
1, here still use the last table, you can see the marked area, we will statistics on these areas, the most commonly used function SUM, at this time can be written as "=sum ((a1:e11=" D ") *1)", and then the array operation by Ctrl+shift+enter
2, if you are familiar with other functions, we can also use the Sumproduct function, as shown in the figure. Enter "=sumproduct ((a1:e11=" D ") *1)" To get results directly with
conditional combinationsSumifs (Sum_range, Criteria_range1, Criteria1, criteria_range2, criteria2, ...)Example: Statistics production department, the sum of male wagesSumifs (K:k, D:d, "production", C:c, "male")AverageIf, AverageIfs and SUMIF, sumifs similarVLOOKUP, HLOOKUP searches for data that satisfies the criteria in the first column (or first row) in the range, and returns the corresponding value based on the specified column number (line numbe
cell: Fill without formating.E. Position (auto-positioning): Match//(match value, match range, 0 = "exact positioning", 1 = "Approximate (find small value)" F. The current range of VLOOKUP can only be selected from the first column selected.H. Limitations of VLOOKUP: The query column must be the starting column.2. If functionA. IF (and (conditions, conditions)). And and or are functions, not operators.3. Calculation typeA. Sum function.B. Sumproduct, multi-column totals (multiply and add)C. Non
). In addition to numbers, the calculation also includes text and logical values, such as true and false.
Averageif (range, criteria, average_range)
Returns the average value (arithmetic mean) of all cells that meet the given conditions in a region ).
Averageifs (average_range, criteria_range1, criteria1, criteria_range2, criteria2 ...)
Returns the average (arithmetic mean) of all cells that meet multiple conditions ).
8. Statistical functions and formulas-sum
Sum (number1, number2 ,...)
Calc
the cell cell with the coordinate of 0,3, the formula content is ' =sum (A1,B1) ', the value shown is A1 and the B1 two cell is worth and: 3Workbook.save ('test table. xlsx')Generate an Excel table as shownAnother part of the Excel formula (OK, I admit I used in the work)Number of statistics (COUNTIF (region, condition))Example 1: Number of occurrences of statistics 1Example 2: Count the number of occurrences of a value other than 1Sum of products (sumproduct (array 1, array 2,) ):Example: Calc
object is a number
9. counta (range) // count the count objects of counta as non-empty cells
10. Max (range) // calculate the maximum value
11. Min (range) // calculates the minimum value
12. Product (range) // concatenation
13. sumif (condition range, condition, sum range) sumifs (sum range, condition range 1, condition 1, condition range 2, condition 2) // condition summation
14. countif (condition range, condition) countifs (condition range
(array1,array2,array3, ...) Array1, Array2, Array3, ... is a 2 to 30 array whose corresponding elements need to be multiplied and summed.Here ((b2:b5= "three-year-five") * (c2:c5= "female") * (D2:D5)) is an array where (b2:b5= "three years Five") * (c2:c5= "female") is the row that determines the cell containing the prepared summation criteria, * (D2:D5) Is the range of cells that satisfy the sum condition.The third function is not commonly used, I do not know it very well, in order to respect
6. Data Filtering
The sixth part is data filtering. The use and, or, if not three conditions are used together, the values smaller than and equal to are used to filter the data and count and sum the data. Similar to the filter functions in excel, countifs and sumifs functions.
Filter by conditions (and, or, not)
The Excel Data Directory provides the "filter" function to filter data tables according to different conditions. Mysql uses the WHERE clau
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.