ERROR.TYPE Usage

Nomas

Board Regular
Joined
Jun 14, 2011
Messages
91
Hi All,

Trying to learn how to use the ERROR.TYPE function. I have the base function looking up named ranges to return a value (this function is in cell AW3)

=(VLOOKUP($X3,INDIRECT($AT3),$AU3,FALSE))

I would like to return the correct values in column AW but have all the error codes return an "Not Rated" if possible. I have tried using the ERROR.TYPE function by itself and with a CHOOSE function but am getting #N/A for all. I apprecaite any guidance.

Thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Welcome to the board...

Try IF(ISNA...

=IF(ISNA(VLOOKUP($X3,INDIRECT($AT3),$AU3,FALSE)),"Not Rated",VLOOKUP($X3,INDIRECT($AT3),$AU3,FALSE))

Hope that helps..
 
Upvote 0
OK took care of some of the issues, I also get #REF, which is why I was trying the ERROR.TYPE hoping it was a catchall for errors to return a specific response. Any ideas on how to deal with the #REF also?

Thanks for the quick response, its greatly appreciated.
 
Upvote 0
ISNA finds specifically #N/A errors...

Change ISNA to ISERROR to trap ALL errors.
 
Upvote 0
Try IF(ISNA...

=IF(ISNA(VLOOKUP($X3,INDIRECT($AT3),$AU3,FALSE)),"Not Rated",VLOOKUP($X3,INDIRECT($AT3),$AU3,FALSE))
And if you're using Excel 2007 or later you can reduce that to:

=IFERROR(VLOOKUP($X3,INDIRECT($AT3),$AU3,0),"Not Rated")
 
Upvote 0
Thanks T.Valko always looking to make the code simpler. I use both so will keep this in mind for 07.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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