Sum Formula Needed

kelly mort

Well-known Member
Joined
Apr 10, 2017
Messages
2,169
Office Version
  1. 2016
Platform
  1. Windows
Hello All,
I wanna add six numbers in a column. There will be a maximum of nine numbers to choose what to add from. Before, I used the =Sum(Small(..... Function.

But now I want to add them by taking the first four numbers then look for the two smallest numbers from the remaining five numbers.

And here too, with the first four numbers, I am adding only those that are not zero or blank.

That's when one of the first four numbers is zero or blank then add the three left and add the next three smallest numbers from the five numbers left.

Look at what I have below here:
Numbers to add
2
5
8
1
4
4
6
5
7

So from the numbers , after choosing the first four, choose the two 4s since there are the two smallest numbers left. Then add them.


When some of the first four is blank or zero
Numbers to add
2

8
1
4
4
6
5
7

Since the second number is blank, choose the three left and then choose 4, 4, 5 from them and add to the other three.

I hope my expectations are clear enough.

Thanks for your attention
Kelly
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,215,835
Messages
6,127,169
Members
449,368
Latest member
JayHo

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