Please help with formula.

Rick88

New Member
Joined
Nov 11, 2008
Messages
25
I am trying to set up a formula so that when there is a division between two cells, the result is entered into another cell and if no entry is entered into the cells, then the other is left blank.
Example;

if D34 is divided by B34, enter the result into C34 as a currency value with two decimal places.
if no numbers are entered into D34 and B34 then C34 should be blank.

I know this is probably child's play for most of you on here but I am still a "youth" when it comes to excel, I am learning on my own and I appreciate your help.
Thanks,
Rick
 

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)
Hi Rick,

Format cell C34 as Currency with two decimal places. Then enter this formula into C34:

=IF(OR(B34="",D34=""),"",D34/B34)
 
Upvote 0
I tried that formula but C34 is still coming up blank even with data entered into D34 and B 34. Any suggestions?
Thanks,

I forgot to mention I am using 2003.
 
Upvote 0
It works fine with me and I am using 2003.

Perhaps you could post the actual formula you have in C34.

Pedro
 
Upvote 0
Make sure:

1. Calculation is set to Automatic, or manually re-calc your sheet (F9)
2. You don't have conditional formatting on that cell (e.g. font set to white based on some condition)
3. You don't have any macros running that are clearing those cells

etc..
 
Upvote 0
Thanks, I got that to working but now I am looking for a better way to auto fill these cells as there are many to fill with another formula but I will start a new thread for that.
Thank you guys very much.
Rick
 
Upvote 0

Forum statistics

Threads
1,224,516
Messages
6,179,231
Members
452,898
Latest member
Capolavoro009

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