![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 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 |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
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!
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
Very good Yogi,
This seems to do it: =If((H7-1)=0,0,F7/H7-1) Thanks James |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
No, it's still returning the #DIV/0! ???
James |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
No, it's still returning the #DIV/0! ???
James |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
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 |
|
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
Yogi...
I think you pinned that one on the head! well done! |
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
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 |
|
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
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 |
|
|
|
|
|
#10 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
=If(Or((H7-1)=0,g7=0),0,F7/(H7-1))
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|