J
John Gilchrist
Please notify me if I am posting to the wrong group.
REF: I am using Excel 97.
I am using ERROR.TYPE command to detect a failed VLOOKUP command.
In cell J7, I place the following VLOOKUP command:
=VLOOKUP($F$9,QB_Rpt!$B$1:$G$100,4,FALSE)
In another cell (A1) , I place the following command:
=IF(ERROR.TYPE($J$7)=7,0,$J$7)
If the VLOOKUP fails, cell J7 = #N/A (which I believe is error type 7), and
cell A1 displays $0.00 as desired.
However, if the VLOOKUP is successful, cell J7 = $90.00 (the lookup value),
but cell A1 displays #N/A, rather than the desired value of $90.00.
This is the same command which is used in the ERROR.TYPE help notes as an
example, and I cannot understand why it does not behave like the example.
I would appreciate any ideas.
Thank you
John G.
REF: I am using Excel 97.
I am using ERROR.TYPE command to detect a failed VLOOKUP command.
In cell J7, I place the following VLOOKUP command:
=VLOOKUP($F$9,QB_Rpt!$B$1:$G$100,4,FALSE)
In another cell (A1) , I place the following command:
=IF(ERROR.TYPE($J$7)=7,0,$J$7)
If the VLOOKUP fails, cell J7 = #N/A (which I believe is error type 7), and
cell A1 displays $0.00 as desired.
However, if the VLOOKUP is successful, cell J7 = $90.00 (the lookup value),
but cell A1 displays #N/A, rather than the desired value of $90.00.
This is the same command which is used in the ERROR.TYPE help notes as an
example, and I cannot understand why it does not behave like the example.
I would appreciate any ideas.
Thank you
John G.