Sum the lesser of two columns when condition is met

Hi. I need help with creating a formula that will sum the lesser value between two columns when a condition in another column is met.


Example: Sum the lesser value between columns B and C when column A contains "x".


...A...B...C

1.....3.....2

2.x...4....1

3

4.x...2....3


A2 and A4 contain "x". The lesser value between B2 and C2 is 1. The lesser value between B4 and C4 is 2. So 1 + 2 = 3. The sum should be 3.

MacBook, Mac OS X (10.6.8)

Posted on Feb 19, 2015 12:43 PM

Reply
6 replies

Feb 20, 2015 12:03 PM in response to WWWWWWW

I cannot think of a way that does not use another column.


Here's another way...:

User uploaded file


D1=IF(A1="X", MIN(B1:C1), "")

fill D1 down as needed

sum column D where ever you want


I think the two ways I posted are easier to read that the array-based formal you originally posted. If you really need/want array functions then I do not think Numbers is the right tool for you.


there may be other ways if there are someone may yet see it.


All the best,

Wayne

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Sum the lesser of two columns when condition is met

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.