![]() |
![]() |
|
|||||||
| 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 |
|
New Member
Join Date: Feb 2002
Location: East Sussex
Posts: 33
|
I have the following IF Statement
=IF(B9="STOP","0"),IF(B9>0,30,((B8/B2)*30)) which is returning a #VALUE error message. I'm sure it's my over-liberal use of parentheses but I can't seem to wrap my head around this one. Can any of you resident geniuses shed some light on this for me? Thanks, sc |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
Try this: -
=IF(B9="STOP",0,IF(B9>0,30,((B8/B2)*30))) |
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Location: East Sussex
Posts: 33
|
Thanks.
sc |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
=IF(B9="STOP",0,IF(B9>0,30,(B8/B2)*30)) should do the trick, and no need for the 0 round the zero.
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|