How to do sumif

Formula. =SUMIF (range, criteria, [sum_range]) The formula uses the following arguments: Range (required argument) – This is the range of cells that we want to apply the criteria against. Criteria (required argument) – This is the criteria which are used to determine which cells need to be added. When we provide the criteria argument, it ...

How to do sumif. FCUV: Get the latest Focus Universal stock price and detailed information including FCUV news, historical charts and realtime prices. Gainers Allarity Therapeutics, Inc. (NASDAQ: A...

VLOOKUP and SUMIF - look up & sum values with criteria. Excel's SUMIF function is similar to SUM we've just discussed in the way that it also sums values. The difference is that the SUMIF function sums only those values that meet the criteria you specify. For example, the simplest SUMIF formula =SUMIF(A2:A10,">10") adds the …

Step 2: Determine the initial cell range. With the formula bar active, you’ll need to begin to write your SUMIF formula using the structure and syntax described above. Start by typing = SUMIF ( in the ribbon bar. You’ll then need to select the initial cell range.Yes, you can add the results of two SUMIFS functions together to get a total. It would look like this: =SUMIFS(sum_range,criteria_range1,criteria1) + SUMIFS(sum_range,criteria_range1,criteria1) This can be handy for applying OR logic, where the criteria_range can be one value or another to be included in the total.Method 1 – Apply Excel SUMIF Function with Cell Color Code. We can apply the Excel SUMIF function with cell color code as a criteria, which you can get via the GET.CELL function in Name Manager. Steps: Select cell D5 and go to the Formulas tab, then choose Name Manager. A new window will pop up named New Name.First, in a cell enter “=SUMIF (“, for the range argument, refer to the product ID range that you have in table1. After that, in the second augment, you need to use the VLOOKUP function to lookup for the product ID by using the product name from the cell above. Next, in the third argument of the SUMIF, refer to the quantity column to use as ...Steps: First, add a helper column to the main dataset and type the color of the cells manually. Next, type the below formula in Cell G5 and press Enter. =SUMIF(D5:D16,"Blue",C5:C16) Upon entering the formula, we will get the sum of the cells that are in Blue color.Mar 22, 2023 · We covered all possible comparison operators in detail when discussing Excel SUMIF function, the same operators can be used in SUMIFS criteria. For example, the following formula with return the sum of all values in cells C2:C9 that are greater than or equal to 200 and less than or equal to 300. =SUMIFS(C2:C9, C2:C9,">=200", C2:C9,"<=300 ...

Mar 22, 2023 · VLOOKUP and SUMIF - look up & sum values with criteria. Excel's SUMIF function is similar to SUM we've just discussed in the way that it also sums values. The difference is that the SUMIF function sums only those values that meet the criteria you specify. For example, the simplest SUMIF formula =SUMIF(A2:A10,">10") adds the values in cells A2 ... Learn how to sum cells based on one criteria using the SUMIF function in Excel. See examples of numeric, text, date and and/or criteria with easy to follow steps and screenshots.This time, the formula is shorter and simpler: New Formula: “=SUM(SUMIF(C4:C13,{"Slices","Chunks"},D4:D13))”. Refer to below table and see the difference of the two methods: Figure 8. Comparison of two methods in using SUMIF combined with multiple criteria. Most of the time, the problem you will need to solve …To sum based on multiple criteria using OR logic, you can use the SUMIFS function with an array constant. In the example shown, the formula in H7 is: = SUM ( SUMIFS … Learn more about SUM. The SUMIF function adds only the values that meet a single criteria. The SUMIFS function adds only the values that meet multiple criteria. The COUNTIF function counts only the values that meet a single criteria. The COUNTIFS function counts only the values that meet multiple criteria. Overview of formulas in Excel SUMIF is a function that allows you to do conditional summing. What is conditional summing? It is adding up a range of values based on a specific criteria. For example, let’s say you have a list of sales figures for different products and you want to add up the sales for a specific product. That’s where conditional summing comes in handy.And click on, Ok. In the functional argument box, select the A2 to A9, Criteria as Ben, and sum range from C2 to C9 and click Ok. This will frame the first half of the multiple criteria syntax. Now insert plus sign (+) as shown below. And click on Insert Function and search for SUMIF and click on Ok, as shown below.

Adds values based on single criteria. If you want to add based on multiple criteria, use SUMIFS function. If sum_range argument is omitted, Excel uses the criteria range (range) as the sum range. Blanks or text in sum_range are ignored. Criteria could be a number, expression, cell reference, text, or a formula.Feb 9, 2023 · The Syntax for the SUMIF Formula is: =SUMIF(range,criteria,sum_range) Function Arguments ( Inputs ): range – The range containing the criteria that determines which numbers to sum. criteria – The criteria indicating when to sum. Example: “<50” or “apples”. sum_range – The range to sum. Additional Notes SUMIF Examples in VBA Dec 18, 2023 · To sum it up, how you can do summation with SUMIFS functions with INDEX-MATCH formula including multiple criteria in Excel is answered here by 6 different examples. For this problem, a workbook is available to download where you can practice these methods. Feel free to ask any questions or feedback through the comment section. Method 1 – Apply Excel SUMIF Function with Cell Color Code. We can apply the Excel SUMIF function with cell color code as a criteria, which you can get via the GET.CELL function in Name Manager. Steps: Select cell D5 and go to the Formulas tab, then choose Name Manager. A new window will pop up named New Name.By combining SUMIFS with INDEX MATCH, we can then sum all of the values that meet multiple criteria in different rows and columns and do this in a simple way, avoiding complex and resource-intensive array formulas. Let’s look at this table: Let’s say we want to retrieve the value in the I6 column (marked orange).Apr 14, 2023 · Doing a conditional sum in Excel is a piece of cake as long as all the values to be totaled are in one column. Summing multiple columns is a problem because both the SUMIF and SUMIFS functions require the sum range and criteria ranges to be equally sized. Luckily, when there is no straight way to do something, there is always a work-around :)

Voltex heated vest.

In this video, I will show you how to use the SUMIF and SUMIFS functions to create formulas in Microsoft Excel. I will demonstrate how to use the SUMIF with...First, select cell D10, then insert the formula below and hit Enter. =SUMIF(C5:C17,">"&D19) Here, the SUMIF function finds the values greater than the value in cell D19 from range C5:C17. We used the ampersand ( &) operator to concatenate the “ greater than ” ( >) symbol with the value in cell D19.SUM ( – Here, we mean that the result of executing the function will be the sum of the result. IF [TerritoryName] = “Central” – This is the beginning of the condition, and in this line, we indicate [field name], which should be equal to “Central”. OR [TerritoryName] = “Canada” – Next, we apply the OR condition, in which we ...In Microsoft Excel, use the SUMIF function to sum the values in a range that meet the criteria that you specify. Learn more at the Excel Help Center: https:/...Formula Breakdown: SUMIF(E5:E14, “”, D5:D14) → The SUMIF function will search cells in the Delivery Date column and specify blank cells, to sum up, the corresponding Sales value. E5:E14 → is the range where the SUMIF function will search for blank cells. “” → is the criteria for finding blank cells in the range. It is used to search for …eBay is joining the NFT frenzy, telling Reuters today that going forward it will allow the sales of NFTs on its platform, a mainstream embrace that follows billions of dollars in N...

Ans: The syntax for using the “not equal to” criteria with the SUMIF function is as follows: =SUMIF(range, "<>value", sum_range) Here, “ range ” represents the range of cells to evaluate, “<>value” specifies the value to exclude, and “ sum_range ” is the range of cells to sum. 3.To calculate a conditional sum for multiple columns of data, you can use a formula based on SUM function and the FILTER function. In the example shown, the formula in H5, copied down, is: =SUM (FILTER (data,group=G5)) where data (C5:E16) and group (B5:B16) are named ranges. The result is the sum of values in group "A" for all three months of ...Here is a huge list of money making ideas to try out in 2022. These are practical ways that you can start making extra money today. Home Make Money How many times have you thought...In this step-by-step tutorial, learn how to use the SUMIF Function in Microsoft Excel. With sumif, you can sum cells that meet a certain criteria. Along with...In this section, we’ll use the SUMIFS function to sum the total sales for a single criterion. We’ll evaluate the total sales for all devices of the Inchip brand here. 📌 Steps: In the output Cell B29, we have to type: =SUMIFS(G5:G23,B5:B23,C26) Press Enter and you’ll get the total sales for Inchip devices from the table. 2.Get ratings and reviews for the top 7 home warranty companies in Hayden, ID. Helping you find the best home warranty companies for the job. Expert Advice On Improving Your Home All...First, select the cell below the column of numbers (or next to the row of numbers) you want to sum. 2. On the Home tab, in the Editing group, click AutoSum (or press ATL + =). 3. Press Enter. You can also use AutoSum to quickly add a total row and a total column. 4.Formula. =SUMIF (range, criteria, [sum_range]) The formula uses the following arguments: Range (required argument) – This is the range of cells that we want to apply the criteria against. Criteria (required argument) – This is the criteria which are used to determine which cells need to be added. When we provide the criteria argument, it ...You can use the SUMIF function in Excel to sum of cells that contain a specific value, sum cells that are greater than or equal to a value, etc. (Notice how the formula …2. Excel SUMIF: Partial Match at the Ending. Now, we will calculate the summation of the prices for only the products, that have the keyword “NPP” at the end of their Product IDs. Here are the steps to follow: 🔗 Steps: First of all, select cell C16 to store the formula result. After that, type the formula.The SUMIF function is a math and trigonometry function that will sum up cells that meet the given criteria. The criteria can be dates, numbers, or text. It supports logical operators and wildcards. Learn how to use it with … Learn more about SUM. The SUMIF function adds only the values that meet a single criteria. The SUMIFS function adds only the values that meet multiple criteria. The COUNTIF function counts only the values that meet a single criteria. The COUNTIFS function counts only the values that meet multiple criteria. Overview of formulas in Excel

Mar 27, 2023 · We can use the SUMIF function, to sum up, values based on text matching. For instance, we will sum up the prices for exact matching with the product called “ CPU ”. To make it done, Select cell C14. Type the formula. =SUMIF(B5:B12, "CPU", C5:C12) within the cell. Press the ENTER button.

Formula. =SUMIF (range, criteria, [sum_range]) The formula uses the following arguments: Range (required argument) – This is the range of cells that we want to apply the criteria against. Criteria (required argument) – This is the criteria which are used to determine which cells need to be added. When we provide the criteria argument, it ... Excel SUMIFS Function. The function wizard in Excel describes the SUMIFs Function as: =SUMIFS( sum_range, critera_range_1, criteria_1, criteria_range_2, criteria_2 .....and so on if required) Extending the SUMIF example above, say we wanted to only summarise the data by builder, for jobs in the central region.How to do advanced SUMIFS quickly using Power Query in ExcelThis channel focuses on the mindset and tools you require to excel at your work, be it in the wor...Use SUMIF by Date in Excel. First, enter =SUMIF( the cell where you want the sum. After that, refer to the date column, range A2:A15. Next, in the criteria argument, refer to the cell where you have the date. Now, in the last argument, refer to the sum column, range B2:B15. In the end, enter the closing parentheses and hit enter to get the result.Jul 8, 2021 · Here, the SUMIFS is the subcategory of the SUMIF function which adds the cells specified by a given set of conditions or criteria & we can use this function to sum based on multiple criteria. We don’t need to type 2 different functions to sum in the function bar. Here, the syntax of this function is. We can use the SUMIF function, to sum up, values based on text matching. For instance, we will sum up the prices for exact matching with the product called “ CPU ”. To make it done, Select cell C14. Type the formula. =SUMIF(B5:B12, "CPU", C5:C12) within the cell. Press the ENTER button.To sum if cells contain specific text, you can use the SUMIFS or SUMIF function with a wildcard. In the example shown, the formula in cell F5 is: =SUMIFS(C5:C16,B5:B16,"*hoodie*") This formula sums the quantity in column C when the text in column B contains "hoodie". Note that SUMIFS is not case-sensitive. However, see below for a case-sensitive option.Often you may be interested in only finding the sum of rows in an R data frame that meet some criteria. Fortunately this is easy to do using the following basic syntax: aggregate(col_to_sum ~ col_to_group_by, data=df, sum) The following examples show how to use this syntax on the following data frame:

Flights from newark to miami.

Hawaiian airlines check in.

If we look at the syntax of SUMIFS, the issue becomes clear. The arguments refer to ranges: sum_range, criteria_range1, etc. Even the description of sum_range is “actual cells to sum”. So, we can see from this that SUMIFS works with ranges, but not with arrays. That is the problem. But, don’t worry we have lots of alternatives.How to Use SUMIF in Excel. Here’s how you write a SUMIF formula: =SUMIF(range, criteria, [sum_range]) “ range “: This is the place to look: Where is your data? For example, in which column are your items listed?. “ criteria “: What to look for: What item or number are you interested in? This could be “Fruits” or any amount like numbers over 50.Writing a Sum Formula. Decide what column of numbers or words you would like to add up. [1] Select the cell where you'd like the answer to populate. [2] Type the equals sign then SUM. Like this: =SUM. [3] Type out the first cell reference, then a colon, then the last cell reference.Click a cell in the list range. Using the example, click any cell in the list range A6:C10. On the Data tab, in the Sort & Filter group, click Advanced. Do one of the following: To filter the list range by hiding rows that don't match your criteria, click Filter the list, in-place.Learn how to add numbers in Excel only if they meet certain criteria using the SUMIF function. See examples of number and text criteria, wildcards, and blank cells.To do so, highlight the cell range A1:C11. Then click the Data tab along the top ribbon and click the Filter button. Then click the dropdown arrow next to Conference and make sure that only the box next to West is checked, then …The dataset showcases the Monthly Sales Data of the ABC Company for various Products and for 3 Sales Persons. You want to find the Sales of a Sales Person based on the Month and Product using the SUMIFS function with INDEX, and MATCH functions. The first step is to specify the location of the numbers: =SUMIFS (D2:D11, In other words, you want the formula to sum numbers in that column if they meet the conditions. That cell range is the first argument in this formula—the first piece of data that the function requires as input. Next, you want to find data that meets two conditions, so ... To sum if cells contain specific text, you can use the SUMIFS or SUMIF function with a wildcard. In the example shown, the formula in cell F5 is: =SUMIFS(C5:C16,B5:B16,"*hoodie*") This formula sums the quantity in column C when the text in column B contains "hoodie". Note that SUMIFS is not case-sensitive. However, see below for a case-sensitive option. ….

The SUMIF function is a math and trigonometry function that will sum up cells that meet the given criteria. The criteria can be dates, numbers, or text. It supports logical operators and wildcards. Learn how to use it with …In Excel this would look like. = SUMIF ( brand_column ," Adventure Works ", sales_amount_column) In Power BI we follow the logic below. Total Sales Measure. Total Sales = SUM ( Sales[Sales Amount] ) I want to return Total Sales where the Brand = Adventure Works. To do this, we use a CALCULATE statement.sum_range - The range to be summed, if different from range. Notes. SUMIF can only perform conditional sums with a single criterion. To use multiple criteria, use the database function DSUM. See Also. SUMSQ: Returns the sum of the squares of a series of numbers and/or cells. SUM: Returns the sum of a series of numbers and/or cells.The SUMIF function is a built-in function in Excel that is categorized as a Math/Trig Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the SUMIF function can be entered as part of a formula in a cell of a worksheet. To add numbers in a range based on multiple criteria, try the SUMIFS function.The SUMIF function is a premade function in Excel, which calculates the sum of values in a range based on a true or false condition. It is typed =SUMIF: The condition is referred to as criteria, which can check things like: The [sum_range] is the range where the function calculates the sum. Note: The [sum_range] is optional.We will apply the SUMIF formula in cell I7 to get Mexico’s total or gross sales. Step 1: Write =SUMIF and double-click to select SUMIF. Step 2: Now, select the range B7:B24 and put a comma to separate it from the criteria. Step 3: Add Mexico in double quotations as the criteria and then put another comma to separate it from the sum …Oct 16, 2013 ... When Microsoft released Excel 2007 and it is included in Excel 2010 and 2013 they created a new function named SUMIFS which let's you sum a ...To use the formula this way, begin with entering the reference for the range of cells that will be checked against the criteria, and be summed up. In our example, we first calculate the sum of base salaries higher than $50,000. The values from matching rows will be added as a result. Using the SUMIF function with the [sum_range] parameter ...Jan 20, 2020 ... Sumifs in Excel is one of the most used functions when reporting big data. If you haven't already watch PART 1 of this video series on the ...Money market funds and certificates of deposit are alternatives to the traditional passbook savings account. Both should offer superior terms to a passbook account. Both are avail... How to do sumif, The SUMIF function sums the values in a range that meets the criteria that you specify. We Use the SUMIF function in Excel to sum cells based on numbers that meet specific criteria. Syntax: The syntax of the SUMIF function is as follows: =SUMIF (range, criteria, [sum_range]) Arguments: Argument. Required/Optional., Solution 1 – Changing Text Format to Number Format Directly. Select all the cells you want to change the format. Click on the triangular-shaped icon at the top of the selected cells and select Convert to Number. Your formula is now working fine., Then take a look at the "Sub total" to see how it works. It's specifically this part of the code that does the sub total aka sumif. List.Sum(Table.Column(Table.SelectRows(Source, (recordFilter) => recordFilter[Col1]=[Col1]), "Col3")) Sub total is calculated over Col1 with Col3 as input., Jun 13, 2019 ... Read this tutorial to learn how to use the SUMIF function to add the contents of cells based on their color., Click cell F12 to make it the active cell so you can enter the SUMIFS function.; Click the Insert Function button. The Insert Function dialog box opens. Click Math & Trig in the Categories list.; Click SUMIFS in the list to start the function.; The data that we enter into the blank lines in the dialog box will form the arguments of the SUMIFS function., Method 1 – Apply Excel SUMIF Function with Cell Color Code. We can apply the Excel SUMIF function with cell color code as a criteria, which you can get via the GET.CELL function in Name Manager. Steps: Select cell D5 and go to the Formulas tab, then choose Name Manager. A new window will pop up named New Name., Learn how to use the SUMIF function in Excel to sum cells that meet a single condition based on criteria. The function supports logical operators, wildcards, and dates. See syntax, examples, and tips for using SUMIF with dates, text values, and numbers. , In order to do this, we can use the SUMIF() function and pass in the date range as the criteria range, the condition of "<"&date, and the values as our sum range. Let’s take a look at an example of what this looks like: How to use Excel SUMIF() to sum values before a date. We use the following formula to sum values before a specific date:, Aug 31, 2023 · Step 2: Determine the initial cell range. With the formula bar active, you’ll need to begin to write your SUMIF formula using the structure and syntax described above. Start by typing = SUMIF ( in the ribbon bar. You’ll then need to select the initial cell range. , To calculate a conditional sum for multiple columns of data, you can use a formula based on SUM function and the FILTER function. In the example shown, the formula in H5, copied down, is: =SUM (FILTER (data,group=G5)) where data (C5:E16) and group (B5:B16) are named ranges. The result is the sum of values in group "A" for all three months of ..., The syntax for SUMIF is =SUMIF (range, criteria, [sum_range]). The first argument defines the range of cells you want evaluated for the criteria, which is the second argument and denotes the condition of the cells to include in the sum. The s um_range is the third argument and identifies the actual cells to be summed., May 31, 2014 ... This video has a detailed tutorial on how to use SUMIF Function in Excel. You can get the example file from here - https://trumpexcel.com ..., Where: Range (required) - the range of cells that should be evaluated by criterion.; Criterion (required) - the condition to be met.; Sum_range (optional) - the range in which to sum numbers. If omitted, then range is summed.; As an example, let's make a simple formula that will sum numbers in column B if column A contains an item equal to …, Feb 6, 2014 · How can I create a new data set that works like the SumIf Excel function with just unique rows? ... With the new dplyr package, you can do: , The SUMIF function sums the values in a range that meets the criteria that you specify. We Use the SUMIF function in Excel to sum cells based on numbers that meet specific criteria. Syntax: The syntax of the SUMIF function is as follows: =SUMIF (range, criteria, [sum_range]) Arguments: Argument. Required/Optional., In this video, we'll look at how to use the SUMIFS function to sum cells that meet multiple criteria. Let's take a look. SUMIFS has three required arguments: sum_range, criteria_range1, and criteria1 . After that, you can enter additional range and criteria pairs to add additional conditions. In..., Solution 1 – Changing Text Format to Number Format Directly. Select all the cells you want to change the format. Click on the triangular-shaped icon at the top of the selected cells and select Convert to Number. Your formula is now working fine., Sum only visible cells or rows in a filtered list This tutorial demonstrates a formula based on the SUBTOTAL function with a specified function number to help you sum only visible cells in a filtered list in …, VLOOKUP and SUMIF - look up & sum values with criteria. Excel's SUMIF function is similar to SUM we've just discussed in the way that it also sums values. The difference is that the SUMIF function sums only those values that meet the criteria you specify. For example, the simplest SUMIF formula =SUMIF(A2:A10,">10") adds the …, Hello. Since I signed up for the Family version of Microsoft 365, I have to manually re-enter my summing formulas each time I open the spreadsheet. Here is an …, So, the only thing left for you to do is to sum the amounts corresponding to 1's. For this, you put 1 in the criterion argument, and C2:C12 in the sum_range argument. Done! SUMIF formulas for numbers. To sum numbers that meet a certain condition, use one of the comparison operators in your SUMIF formula. In most cases, choosing an appropriate ..., Dec 18, 2023 · To sum it up, how you can do summation with SUMIFS functions with INDEX-MATCH formula including multiple criteria in Excel is answered here by 6 different examples. For this problem, a workbook is available to download where you can practice these methods. Feel free to ask any questions or feedback through the comment section. , You can use the following formulas to combine the SUMIF function with the OR function in Excel: Method 1: SUMIF with OR (One Column) This particular formula finds the sum of values in B2:B13 where the corresponding value in A2:A13 contains “Value1”, “Value2”, or “Value3.”. Method 2: SUMIF with OR (Multiple Columns), The Syntax for the SUMIF Formula is: =SUMIF(range,criteria,sum_range) Function Arguments ( Inputs ): range – The range containing the criteria that determines which numbers to sum. criteria – The criteria indicating when to sum. Example: “<50” or “apples”. sum_range – The range to sum. Additional Notes SUMIF Examples in VBA, We’ll start with the SUMIF function, select the column Sales. Add a comma and to write the comparison criteria directly, type in the symbol ‘greater than’ and the number 170, all in quotation marks. Now, in this kind of operation, Excel does not need any more information, so we’ll close the brackets and press Enter. And it works!, 1. Applying “Not Blank” Operator. The Not Blank operator can be used to find out whether a cell or a range of cells is blank or not. The “<>” symbol is used to specify the values that are not blank. To sum values that are not blank in Excel using the Not Blank operator, we use the following SUMIF generic formula: =SUMIF(range,"<>",sum ..., Method 7: SUMIF When Cells End with Specific Text in Excel. Use a Wildcard (*) to select cells starting with specific text. Steps: Put the following in cell C14: =SUMIF(B5:B11,"*Hat",C5:C11) Hit Enter. Here is the result: Method 8 – Excel SUMIF with Text and Asterisk. Asterisk (*) represents any number of characters., The generic syntax for using SUMIFS with a date range looks like this: =SUMIFS(sum_range,criteria_range1,criteria1,criteria_range2,criteria2) Where the arguments above have the following meaning: sum_range - the range that contains values to sum; criteria_range1 - a range that contains the dates, Mar 27, 2023 · We can use the SUMIF function, to sum up, values based on text matching. For instance, we will sum up the prices for exact matching with the product called “ CPU ”. To make it done, Select cell C14. Type the formula. =SUMIF(B5:B12, "CPU", C5:C12) within the cell. Press the ENTER button. , 1. SUMIF Function. Activity: Add the cells specified by the given conditions or criteria. Formula Syntax: =SUMIF(range, criteria, [sum_range]) Arguments: range-Range of cells where the criteria lies. criteria-Selected criteria for the range. sum_range-Range of cells that are considered for summing up. Example:, SUMIF Formula In Excel The SUMIF Excel function calculates the sum of a range of cells based on given criteria. The criteria can include dates, numbers, and text. For example, the formula “=SUMIF (B1:B5, “<=12”)” adds the values in the cell range B1:B5, which are less than or equal to 12. read more. to summarize the values by color codes., Replace the array elements with cells references, and you will get the most compact formula to sum cells with multiple OR criteria ever! =SUMPRODUCT((A2:A13={E1, E2}) * B2:B13) The screenshot below shows the result: Four different formulas, the same result. Which one to use is the matter of your personal preference :), We will apply the SUMIF formula in cell I7 to get Mexico’s total or gross sales. Step 1: Write =SUMIF and double-click to select SUMIF. Step 2: Now, select the range B7:B24 and put a comma to separate it from the criteria. Step 3: Add Mexico in double quotations as the criteria and then put another comma to separate it from the sum column ...