Error Message in cell, replace with...

ilcaa

Well-known Member
Joined
May 25, 2005
Messages
686
Hi,

I have a data feed that comes into Excel and I have some cells with formulas that untill i input a Symbol in a certain column it gives me an error message InvalidSymbol, obviously the formula doesnt have anything to reference

How can I change that to just a blank cell or with something else....thanks
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
If A2 is supposed to house a number...

=IF(ISNUMBER(A2),A2,"")

If text is expected...

=IF(ISTEXT(A2),A2,"")
 

ilcaa

Well-known Member
Joined
May 25, 2005
Messages
686
i need to format the whole worksheet with this formula most house numbers and column A houses Text....

do I go to view code and create a sub for the entire worksheet?

not usre how to implement your solution into my entire worksheet.

thanks
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
Hi ilcaa

There is an easy way to hide the warnings using conditional formatting.

Select the range where this happens

Format>Conditional Formatting

In Condition 1:

Cell Value equal to ="InvalidSymbol"

click Format and in the Font tab choose the font colour white.

Click OK OK

The message is still there but you don't see it.

Hope this helps
PGC
 

Forum statistics

Threads
1,137,294
Messages
5,680,660
Members
419,923
Latest member
Kalthus

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