ERROR.TYPE

joenjoe

New Member
Joined
Jan 24, 2005
Messages
25
I have a cell that, depending on if something is entered elsewhere, will either produce a value or #VALUE!. I use the following formula in yet another cell to try and have either the value from the first cell display or nothing at all:

=IF(ERROR.TYPE(A6)=3, "", A6)

This either produces a blank (which is OK when nothing is entered) or #N/A! (instead of the desired value). I actually copied, pasted, and modified this formula directly from the Excel Help file.

Does anyone have any idea what I might be doing wrong or have a suggestion of an entirely different formula to achieve my desired results?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

tactps

Well-known Member
Joined
Jan 20, 2004
Messages
3,460
Welcome.

Try:
=if(iserror(a6),"",a6)
which will use blank for all errors
 

tactps

Well-known Member
Joined
Jan 20, 2004
Messages
3,460
Even better, change your formula in A6 to not show errors in the first place.
 

joenjoe

New Member
Joined
Jan 24, 2005
Messages
25
Thank you tactps,

You are awesome!!! That worked perfectly. Thanks to you I will be able to sleep tonight.
 

Forum statistics

Threads
1,147,510
Messages
5,741,577
Members
423,668
Latest member
Audorin

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
Top