![]() |
![]() |
|
|||||||
| 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: Mar 2002
Posts: 18
|
What is the syntax for entering the error value #N/A within a logical test, as in =IF(G2=#N/A),0,G2).
I've tried entering it with and without "" but no improvement. Any error value can be returned as 0. |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,315
|
Quote:
[ This Message was edited by: Aladin Akyurek on 2002-03-14 10:41 ] |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 18
|
Thanks so much....again. Less complicated than what I eventually came up with.
Before I read your reply I discovered ERROR.TYPE function and ERROR.TYPE return values and was able to use it to denote #N/A in the logical argument, as in IF(ERROR.TYPE(G2)=7,0,G2), where 7 is the error return value for #N/A. (Not that you didn't know but for the benefit of readers who are less gifted as myself) |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|