Formula help needed

mplees

Active Member
Joined
Feb 6, 2006
Messages
351
Hello all,

Its been over 3 years since I last did anything Excel related, so would really appreciate some help with constructing a formula.

The formula I currently have is:

=IF(C2="","",ROUNDUP(E2+(E2*65%),1))

Cell C2 contains a product description and cell E2 the buying price for the product. While the roundup part of the formula works fine, I would like to refine it so that if the rounded price is above £x.50 (£1.60, £6.70 etc), the result would be increased to the next whole £ (so in the examples they would round up to £2.00, £7.00, etc); if the rounded price is below £x.50 but above £x.20 then it would increase the value to £x.50, and finally in the remaining case round down to the whole £.

Hope that someone can both understand what I am asking, & point me in the right direction!

regards

Mark
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Kind of ugly, but it seems to work!!
Code:
=IF(C2="","",IF(MOD(E2*1.65,1)<0.2,FLOOR(E2*1.65,1),IF(MOD(E2*1.65,1)<0.5,CEILING(E2*1.65,0.5),CEILING(E2*1.65,1))))
lenze
 
Upvote 0
Gentlemen,

Thank you so much for your assistance - it is greatly appreciated!

Regards

Mark
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
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