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
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
On 2002-04-30 20:54, James wrote:
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

Hi James :
It is not clear what are the arguments in your second formula ... Did you mean your second formula to be ...

=IF((H23-1)=0,0,F23/(H23-1))

Please post back if it works for you ... otherwise explain a little further and let us take it from there!
 
Upvote 0
On 2002-04-30 21:07, James wrote:
Very good Yogi,

This seems to do it:

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

Thanks
James

Hi James:
Once more slow down and be patient ... I think you meant to post the following formula:
=If((H7-1)=0,0,F7/(H7-1))

Regards!

Yogi Anand
 
Upvote 0
On 2002-04-30 21:15, Qroozn wrote:
Yogi...
I think you pinned that one on the head!
well done!

Hi Qroozn:
I got the drift of what you were trying to say to gideon, so on tonite's watch you be the tough guy and I'll be the softie.

Regards!

Yogi Anand
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

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