# Sample Answer

#### Marie Randazzo

##### New Member
Hi, this looks like a great site. I believe I have a simple question that I just can't find the answer to.

After I type a formula into a cell for example an =If(f6>0,D6-F6,D6) the cell shows \$0.00, which is the sample answer but I don't want this to show. I just want to have the formula in the cell with the cell showing nothing until I enter the currency in the other cells.

Thanks,
Marie

### Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

#### JPM

##### Active Member
Try this one =If(f6="","",If(f6>0,D6-F6,D6)) that way it only populates the cell if f6 is not blank. Or you could use =If(OR(f6="",D6=""),"",If(f6>0,D6-F6,D6)) which would leave it blank until D6 and F6 are not blank.

JPM

#### Scott Huish

##### MrExcel MVP
Give this a try:

=IF((D6="")+(F6=""),"",D6-(F6*(F6>0)))

#### Aladin Akyurek

##### MrExcel MVP
Marie Randazzo said:
Hi, this looks like a great site. I believe I have a simple question that I just can't find the answer to.

After I type a formula into a cell for example an =If(f6>0,D6-F6,D6) the cell shows \$0.00, which is the sample answer but I don't want this to show. I just want to have the formula in the cell with the cell showing nothing until I enter the currency in the other cells.

Thanks,
Marie

Care to elaborate by way of an example?...

D6 empty, F6 empty ===> ?

D6 houses 8, F6 empty ===> ?

D6 houses 8, F6 5 ===> ?

D6 empty, F6 5 ===> ?

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.

Threads
1,167,968
Messages
5,856,579
Members
431,820
Latest member
martel_9

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

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