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
 

Some videos you may like

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
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
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
Hello Mark, try

=IF(C2="","",IF(MOD(E2*1.65,1)>0.2,CEILING(E2*1.65,0.5),INT(E2*1.65)))
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
An alternative:

=IF(C2="","",ROUND(E2*165%,0)+(0.5*AND(MOD(E2*165%,1)>=0.2,MOD(E2*165%,1)<0.5)))
 

mplees

Active Member
Joined
Feb 6, 2006
Messages
351
Gentlemen,

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

Regards

Mark
 

Watch MrExcel Video

Forum statistics

Threads
1,122,547
Messages
5,596,782
Members
414,101
Latest member
ExcelBasicBro

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
Top