# IF and ROUNDUP Formula Flase Statement Help

#### CherryxDarling

##### New Member

=IF(E7>=65,ROUNDUP((E7/2)/65,0),"1")

Note: I'm using this formula in G7

Ok so when I use the above formula, I will always get a 1 in G7 even if there is no value in E7. How do I change it so that it will only display the 1 for the false statement when I input a value into E7? In other words, if there is no value in E7 I want G7 to also be blank. (I really hope that makes sense to someone.)

### Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

#### Willmonbo

##### Board Regular
try this

=IF(E7="","",IF(E7>=65,ROUNDUP((E7/2)/65,0),"1"))

#### Scott Huish

##### MrExcel MVP
First you don't want to put quotes around your 1 that makes it text.
Second that can be simplified:

=IF(E7="","",IF(E7>65,ROUNDUP(E7/130,0),1))

#### CherryxDarling

##### New Member
try this

=IF(E7="","",IF(E7>=65,ROUNDUP((E7/2)/65,0),"1"))
Perfect. Thank you so much =)

#### CherryxDarling

##### New Member
First you don't want to put quotes around your 1 that makes it text.
Second that can be simplified:

=IF(E7="","",IF(E7>65,ROUNDUP(E7/130,0),1))
That works as well. I know it seems excessive to divide the # by 2 then divide by 65, but I'm working with building codes and they have a certain way they require the math to be done so I have to do it that way. Thanks for your help as well, this works perfect too.

#### Willmonbo

##### Board Regular
Yeah, I was assuming there was a reason for it, that's why I worked with the existing formula.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,670
Messages
5,838,689
Members
430,564
Latest member
Raeyven

### 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.

### Which adblocker are you using?

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

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