Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Instructions and Examples of Array Formulas Array Formulas

Explore Instructions and Examples of Array Formulas Array with a clear summary of the key facts, context, and practical details readers should know.

Table of Contents

This article provides a clear overview of Instructions and Examples of Array Formulas Array Formulas, with the main facts, useful context, and practical details organized for easy reading.

1. Array Formula to Sum by Condition, Count by Condition

For conditional sums we often use the sumif function but to simplify the formula try tracking the example of conditional sum using array formulas.

Example

Calculate the total number of salespeople with a number greater than 38. And calculate the total number of sales of those employees.

There are tables of data:

Instructions and Examples of Array Formulas Array Formulas — Example screenshot 1

1.1. Counts the Number of Employees That Sell More Than 30 Products

In this case, you can use the function counif but here I introduce how to use the Sum array formula. In the cell you need to calculate the following formula: = SUM (B4: B10> 30) .

Instructions and Examples of Array Formulas Array Formulas — 1.1. Counts the Number of Employees That Sell More Than 30

Press Ctrl + Shift + Enter . Result:

Instructions and Examples of Array Formulas Array Formulas — 1.1. Counts the Number of Employees That Sell More Than 30

Because the comparison condition returns True or False and uses the Sum function, here you add the following formula:

Instructions and Examples of Array Formulas Array Formulas — 1.1. Counts the Number of Employees That Sell More Than 30

Press F9 -> Press Ctrl + Shift + Enter to get the results as shown below:

Instructions and Examples of Array Formulas Array Formulas — 1.1. Counts the Number of Employees That Sell More Than 30

1.2. Conditional Sum Using Array Formulas

Calculates the total number of products sold by people who have sold more than 30 products.

Step 1: in the target cell enter the formula.

Instructions and Examples of Array Formulas Array Formulas — 1.2. Conditional Sum Using Array Formulas screenshot 6

Press Ctrl + Shift + Enter to get the results:

Instructions and Examples of Array Formulas Array Formulas — 1.2. Conditional Sum Using Array Formulas screenshot 7

For some devices, if you enter the above formula without giving the correct results, highlight the parameter in the Sum function -> Press F9 to check the results again -> press Ctrl + Shift + Enter .

2. the Array Formula Used in Calculating the Maximum Difference of Stock Codes Over Days

Example

Calculating the maximum and minimum price difference of a stock code by day:

Instructions and Examples of Array Formulas Array Formulas — Example screenshot 8

Normally you will create an extra column to find the difference then use the Min and Max functions. In this article, we will use array formulas to calculate without creating an extra column of difference prices.

Step 1: At the cell that needs to calculate the difference, enter the following formula = Max (E5: E10-D5: D10).

Instructions and Examples of Array Formulas Array Formulas — Example screenshot 9

After entering the formula, press Ctrl + Shift + Enter to get the results. You can check by highlighting the parameters in the Max function and pressing F9 to check:

Instructions and Examples of Array Formulas Array Formulas — Example screenshot 10

Here Max will value in an array of 6 elements.

3. Calculate Max, Min According to Conditions Combining Array Formulas

The example here calculates the largest and smallest sales of employees sold during the month. in the target cell the largest sales enter the formula: = Max (If ($ B $ 5: $ B $ 10 = E6, C5: C10)) .

Instructions and Examples of Array Formulas Array Formulas — 3. Calculate Max, Min According to Conditions Combining Array

After entering the formula, press Ctrl + Shift + Enter to get the result:

Instructions and Examples of Array Formulas Array Formulas — 3. Calculate Max, Min According to Conditions Combining Array

Calculating the smallest sales is the same as the largest sales that is only replaced by the MIN function:

Instructions and Examples of Array Formulas Array Formulas — 3. Calculate Max, Min According to Conditions Combining Array

Similarly, you calculate for the remaining employees only to change the If condition that is compared to that employee code.

4. Find Items That Are Delivered to Agents in the North, Central and South

Instructions and Examples of Array Formulas Array Formulas — 4. Find Items That Are Delivered to Agents in the North, Central

Using the Index function, match in combination with an array formula.

in the target cell enter the following formula: = IFERROR (INDEX ($ D $ 5: $ D $ 12, MATCH ($ F $ 6 & $ G $ 5, $ B $ 5: $ B $ 12 & $ C $ 5: $ C $ 12,0) ), "") .

Instructions and Examples of Array Formulas Array Formulas — 4. Find Items That Are Delivered to Agents in the North, Central

After entering the formula, press Ctrl + Shift + Enter to get the results:

Instructions and Examples of Array Formulas Array Formulas — 4. Find Items That Are Delivered to Agents in the North, Central

Similarly dragging the formula to the remaining cells results:

Instructions and Examples of Array Formulas Array Formulas — 4. Find Items That Are Delivered to Agents in the North, Central

Here, use the IFERROR function to return an error-free result when in the North, the Middle of the Fruit Paring Machine does not have an empty value.

5. Calculate the Total Cost

Example

Calculating the total cost of items SP1, SP2, SP3 based on the cost table and the number of sp code appearances in the product table sold.

in the target cell enter the formula: SUM (SUMIFS (H5: H7, G5: G7, C5: C9)) .

Instructions and Examples of Array Formulas Array Formulas — Example screenshot 18

After entering the formula, press Ctrl + Shift + Enter to get the result:

Instructions and Examples of Array Formulas Array Formulas — Example screenshot 19

6. Calculate the Total Sales of the Employees Who Sold the Most

Here you can choose the sum of the n most sold employees with n = 2, 3, 4.

For example, calculate the total sales of the 3 employees who sell the most.

in the target cell, enter the formula: = SUM (LARGE (C6: C12, {1,2,3})) where {1,2,3} is an array containing the number of elements to sum, here is 3.

Instructions and Examples of Array Formulas Array Formulas — 6. Calculate the Total Sales of the Employees Who Sold the Most

After entering the formula, press Ctrl + Shift + Enter to get the result:

Instructions and Examples of Array Formulas Array Formulas — 6. Calculate the Total Sales of the Employees Who Sold the Most

Example

Calculate the total sales of the 4 employees with the largest sales by simply adding the 4 element to the array:

Instructions and Examples of Array Formulas Array Formulas — Example screenshot 22

7. Use an Array Formula to Number the Order to Ensure the Data Components Are Not Deleted

Step 1: Highlight the data range you may need to create ordinal numbers -> and above on entering the formula.

Instructions and Examples of Array Formulas Array Formulas — 7. Use an Array Formula to Number the Order to Ensure the Data

After entering the formula, press Ctrl + Shift + Enter to get the result:

Instructions and Examples of Array Formulas Array Formulas — 7. Use an Array Formula to Number the Order to Ensure the Data

By entering the ordinal number from the array formula to change the composition, the order of the column No. is not changed. For example, one more line: Boi black any line -> Right-click and choose Insert .

Instructions and Examples of Array Formulas Array Formulas — 7. Use an Array Formula to Number the Order to Ensure the Data

The row numbers 1, 2, 3, 4 and 5 are changed but the ordinal numbers in the ordinal column are not changed.

Instructions and Examples of Array Formulas Array Formulas — 7. Use an Array Formula to Number the Order to Ensure the Data

FAQ

What is the main focus of Instructions and Examples of Array Formulas Array Formulas?

The article explains the most important facts, context, and practical details related to Instructions and Examples of Array Formulas Array Formulas.

Who may find this information useful?

It is useful for readers who want a clear overview, practical context, and a better understanding of the subject.

What should readers verify before taking action?

Check current product versions, official requirements, regional availability, and any details that may have changed since the original publication.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.