Formula for 4 for 3

BAMSteve

New Member
Joined
Nov 8, 2017
Messages
3
Hi there. i have been trying to work out if its possible to create an excel formula to work out a 4 for 3 calculation. e.g.

product 1 = £34.99
Product 2 = £25.99
Product 3 = £30.99
Product 4 = £29.99

It will add up the 4 items but remove the cheapest item in this case product 2 and return the figure £95.97

would this be possible?

then to scale this up. e.g. 8 items bought, 2 cheapest would be free.

thank you in advance

Steve
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Consider:


Book1
BCDEFGH
1ValuesSum# freeSum
234.9995.97118315
325.992
430.993
529.994
65
76
Sheet3
Cell Formulas
RangeFormula
C2=SUM(B2:B5)-MIN(B2:B5)
F2=SUM(E2:E10)-SUM(SMALL(E2:E10,{1,2}))
H2{=SUM(E2:E10)-SUM(SMALL(E2:E10,ROW(INDIRECT("1:"&G2))))}
Press CTRL+SHIFT+ENTER to enter array formulas.


The C2 formula is the sum minus the least expensive. The F2 formula is the sum minus the least 2 expensive. The H2 formula is the sum minus the least n expensive, where n is in G3.

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
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