IF Function and ROUNDUP help

CherryxDarling

New Member
Joined
Mar 30, 2011
Messages
39
I'm trying to use the IF function with the ROUNDUP function and I am having no luck. Basically what I'm trying to do is this:

=IF(E7>=125,((E7/2)/125),(""))

If the value in E7 is greater than or equal to 125, then I want to divide it by 2 and divide that value by 125. Then after that calculation I want to round the final answer up, regardless of the decimal.

I have no idea where to put the ROUNDUP function. I've tried 20 different possibilities and all I get is an error. Please help!

NOTE: I was successful in doing it in another cell when I used this formula:

=ROUNDUP(IF(L7>=500,(L7/500),(" ")),0)

The only differences was that I'm only dividing L7 once by 500. I'm so confused!! :confused:
 

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.
Welcome to the board.

Firstly, if you divide by 2 and then by 125, why don't you just divide by 250?

Try this:
Code:
=IF(E7<125,"",ROUNDUP(E7/250,0))
 
Upvote 0
Thank you so much this is exactly what I was looking for! I can't believe how fast I got a reply. You have no idea how happy I am right now!!
 
Upvote 0
Welcome to the board.

Firstly, if you divide by 2 and then by 125, why don't you just divide by 250?

Try this:
Code:
=IF(E7<125,"",ROUNDUP(E7/250,0))
That would make sense, however I'm using this formula with multiple values. In other words, I won't always be dividing by 125.
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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