Find smallest 2 numbers from 3

bjbalmforth

Board Regular
Joined
Jul 21, 2005
Messages
117
I need a formula that will say the following,

I have 3 cells which each contain a number I want to be able to find the smallest 2 values, but if a cell contains a zero or no data then add the remaining 2 numbers.

A2 B2 C2
78 80 77 = 155

A2 B2 C2
0 75 75 = 150

As you can see the zero would not be counted.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I'm sure there's a better way, but this seems to be working for me:

=IF(ISERROR(MATCH(0,$A1:$C1,0)),SUM(SMALL($A1:$C1,{1,2})),SUM($A1:$C1))
 
Upvote 0
bjbalmforth said:
I need a formula that will say the following,

I have 3 cells which each contain a number I want to be able to find the smallest 2 values, but if a cell contains a zero or no data then add the remaining 2 numbers.

A2 B2 C2
78 80 77 = 155

A2 B2 C2
0 75 75 = 150

As you can see the zero would not be counted.


=SUM(A2:C2)-IF(COUNTIF(A2:C2,">0")=3,MAX(A2:C2),0)
 
Upvote 0

Forum statistics

Threads
1,214,921
Messages
6,122,280
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top