How do I sum the lowest two values of two different column or range?

2 min read 26-10-2024
How do I sum the lowest two values of two different column or range?

When working with data in Excel, you may find yourself needing to perform calculations that involve identifying and summing specific values. One common scenario is when you need to sum the two lowest values from two different columns or ranges. This task can be accomplished easily using Excel functions. In this article, we will explore how to achieve this with an example, and provide some additional insights and tips.

Problem Scenario

Let's say you have the following two columns of data in an Excel spreadsheet:

Column A Column B
10 20
5 15
30 25
40 35
2 22

Your goal is to find the two smallest values from these two columns and sum them up. To achieve this, you may be inclined to use an approach like the following:

=SUM(SMALL(A1:A5, 1), SMALL(B1:B5, 1))

However, this formula only sums the smallest values from each column separately, which is not what we need. Instead, we want to sum the two overall lowest values from both columns combined.

The Correct Approach

To sum the two lowest values from both Column A and Column B, you can use the SMALL function along with the CHOOSE function to create a combined array. Here’s the correct formula:

=SUM(SMALL(CHOOSE({1,2}, A1:A5, B1:B5), 1), SMALL(CHOOSE({1,2}, A1:A5, B1:B5), 2))

Explanation of the Formula

  • CHOOSE({1,2}, A1:A5, B1:B5): This creates a combined array of the two ranges, effectively allowing you to work with both columns as one range.
  • SMALL(..., 1): This function retrieves the smallest value from the combined array.
  • SMALL(..., 2): This retrieves the second smallest value.
  • SUM(...): Finally, the SUM function adds the two smallest values together.

Practical Example

For our original data set:

  • Column A: 10, 5, 30, 40, 2
  • Column B: 20, 15, 25, 35, 22

Using the formula provided, we find:

  • The smallest values from both columns are 2 (from Column A) and 5 (from Column A).
  • Adding these two values together results in 7.

Additional Insights

Using Excel’s array functions can simplify your calculations significantly, especially when dealing with multiple data ranges. Here are a few additional tips:

  • Use Named Ranges: For better readability, consider naming your ranges (e.g., Name Column A as DataA and Column B as DataB) and use them in your formula.
  • Data Validation: Ensure that there are numerical values in your columns to avoid errors in calculations.

Conclusion

Summing the lowest two values from two different columns in Excel can be efficiently achieved using a combination of functions like SMALL, CHOOSE, and SUM. This method can be particularly useful in data analysis where understanding the lowest values can provide insights into your data set.

For more advanced scenarios or larger data sets, consider exploring array formulas or even Excel’s new dynamic array functions if you’re using Excel 365 or Excel 2019.

Useful Resources

By applying these techniques, you can enhance your data analysis skills and make more informed decisions based on your findings. Happy Excel-ing!