formula question

James

Active Member
Joined
Feb 17, 2002
Messages
327
Hi group,

To avoid the #DIV/0! i use :

=If(C23=0,0,G23/C23) but it doesn't work with

=If(H23,0,0,F23/H23-1) i know the glitch is
with the minus 1 "H23-1" any ideas on how to get around this

thanks
James
 
On 2002-04-30 21:23, James wrote:
Hi again Yogi,

Cell F7 "0.03"
Cell G7 "5.45"
Cell H7=G7/C7 "0.011"
But when G7 is empty
Cell J7 is returning the #DIV/0!

Any thoughts

James

Hi James:
What is in cell C7
What is in cell J7
and are you sure cell H7=G7/C7

Now James, you have to slow down and follow everything very closely ... Excel is very picky on details -- it does what you ask it to do -- unfortunately it does not do what you want it to do.

So please answer the questions I asked you and we will take it from there.

Regards!
Yogi Anand
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi again Yogi,

Thanks for hanging in ther w/ me.

C7 is 500
J7 is =F7/H7-1
H7 is G7/C7

The correct ans. in J7 is 175%
What i'm trying to accomplish is simply if
G7 is empty then J7 does not show the #DIV/0!

Thats it

James
 
Upvote 0
On 2002-04-30 21:44, James wrote:
Hi again Yogi,

Thanks for hanging in ther w/ me.

C7 is 500
J7 is =F7/H7-1
H7 is G7/C7

The correct ans. in J7 is 175%
What i'm trying to accomplish is simply if
G7 is empty then J7 does not show the #DIV/0!

Thats it

James

James: Change the formula to:

=If((H7-1)<=0,0,F7/(H7-1))

and tell me if that helps.

Regards!

Yogi
 
Upvote 0
Hi Yogi,

With your last suggested formula it returns
-3% not the correct ans 175%?

James
 
Upvote 0
the result you are getting is correct according to the figures you have already posted...

are you calculating correctly?

please repost your values.
This message was edited by Qroozn on 2002-04-30 22:34
 
Upvote 0
Cell F7 "0.03"
Cell G7 "5.45"
Cell H7=G7/C7 "0.011"
But when G7 is empty
Cell J7 is returning the #DIV/0!


In H7 enter:

=IF(C7,G7/C7,0)

In J7 enter:

=IF(H7,F7/H7-1,0)

Aladin
 
Upvote 0
Thanks Aladin,

I was hoping you were going to read my post,
it now works like it's supposed to.

James
 
Upvote 0

Forum statistics

Threads
1,214,853
Messages
6,121,935
Members
449,056
Latest member
denissimo

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