problem with formula

Beekman

Board Regular
Joined
Nov 7, 2008
Messages
64
Hi, looking for a fomula to calculate total cost with break points,eg

I have in cell E35 an accumilating total

formula needs to calculate less than 102 at a cost of .23463

between 102 but less than 238 cost is .26367

between 238 and 509 cost is .30525

more than 509 cost is .30987

have tried looking in posts but have not found what i'm looking for

have tried various IF(and( functions but not getting right results.

Would be happy to have formula for each break point or is their one formula that can do the whole cenario

Thanks,ben
 
Tried out using Marcelo Branco's formula and seems to work except when you go over 240 resulting answer is out slightly and escalates as you increase more than 240, compared to when you calculate it out manually and I don't know why

Thanks, Ben
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Does that mean you didn't try my last suggestion or it didn't work even closely?
 
Upvote 0
Tried out using Marcelo Branco's formula and seems to work except when you go over 240 resulting answer is out slightly and escalates as you increase more than 240, compared to when you calculate it out manually and I don't know why

Thanks, Ben

Please, clarify the situations with limit-values
102 do you need
101 * 0.,23463 + 1 * 0,26367
or
102 * 0,23463

238 ?
509 ?

M.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,147
Members
452,891
Latest member
JUSTOUTOFMYREACH

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