Help with Formula

VinceF

Board Regular
Joined
Sep 22, 2007
Messages
192
Office Version
  1. 2016
Platform
  1. Windows
Greetings,
Assistance much appreciated, hopefully an easy 1 for the experts.

I must use and add the largest 2 numbers in the column
However if Large 3 is >= 1, I want to add that to Large 1 & 2
Also if Large 4 is >= 1 I want to also add that too.
The sum of these numbers will reside in cell D17
I've tried switching the order around, tried using SUMIF all to no avail.

=SUM(LARGE(D13:D16,{1,2},
+IF(LARGE(D13:D16,3>=1),
+IF(LARGE(D13:D16,4>=1)))))

Thank You,
VinceF
Excel 2016
Win 10
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Try this:
Excel Formula:
=SUM(LARGE(D13:D16,{1,2}))+IF(LARGE(D13:D16,3)>=1,LARGE(D13:D16,3),0)+IF(LARGE(D13:D16,4)>=1,LARGE(D13:D16,4),0)
This would be shorter/easier if you were using Excel 365 and had access to the LET function.

In 365, it could look like this:
Excel Formula:
=SUM(LARGE(D13:D16,{1,2}))+LET(x,LARGE(D13:D16,3),IF(x>=1,x,0))+LET(y,LARGE(D13:D16,4),IF(y>=1,y,0))
 
Upvote 0
Solution
Joe4,

It's working perfectly...very much appreciated...you guys are the best...!

VinceF
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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