Hide #VALUE! - Is it possible?

CasperA

Board Regular
Joined
Jun 8, 2015
Messages
55
Is it possible in hide the display of the characters #VALUE! in those cells that do not yet display the result of a formula?

CA
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
or

I don't see why you are putting the brackets around A1?

Example:
In cell C10 I type the digit 1
In cell D10 I type the formula =Reconfig(C10) , which is a meaningless formula here
The result in D10 is the display of the characters #NAME?


If I follow the suggestion below:

=iferror(your formula,"")

and change the formula in D10 into:

=iferror(=Reconfig(C10),"")

An error message is displayed that Excel has a problem with this formula.

I do not understand, as I replaced the words your formula by what I think my formula was, namely =Reconfig(C10)

The error message appears whether I put brackets around C10 or not. What I am looking for is a way to avoid seeing #NAME? (or #VALUE!) in cases where a formula is not working because data is missing.

Thank you in advance for your clarification,

CasperA
 
Upvote 0
Is this a UDF
Code:
=Reconfig(C10)
Why don't you show use the real formula, rather than "meaningless"
You will always get a NAME error if the formula doesn't exist, as it can't be evaluated !!!
 
Upvote 0
Remove the 2nd = sign

=iferror(Reconfig(C10),"")

Thank you, gaz_chops, after the reply above from Michael M I realised I have been unclear with my question. The Reconfig formula is the following UDF and if I try to replace Reconfig(C10) by =iferror(Reconfig(C10),"" in D10 I still get an error message that Excel has problems with the formula. What I am basically looking for is a way to get rid of the display of #NAME? or #VALUE! in cases where a formula cannot return anything (except #NAME? or #VALUE!) because the cell that it is supposed to work on is empty instead of filled with the necessary data for calculation. Maybe it is not possible? I'd be happy if instead of #NAME? or #VALUE! nothing (visible) would be displayed. It's a cosmetic wish.

Regards,
CasperA

Function Reconfig(S As String)Dim V As Variant
V = Split(S, " ")
For i = 1 To UBound(V) + 1
Reconfig = Reconfig & i & "• " & V(i - 1) & " "
Next i
End Function
 
Last edited:
Upvote 0
Is this a UDF
Code:
=Reconfig(C10)
Why don't you show use the real formula, rather than "meaningless"
You will always get a NAME error if the formula doesn't exist, as it can't be evaluated !!!


Thank you for your reply, Michael M,

I understand that my question was unclear. The Reconfig() is indeed a UDF. See above.


Regards,
CasperA
 
Upvote 0
Are you sure your Dim V as Variant isn't sat on the function line (like it is in the thread) rather than on the second line like it should be (as in the code below) as I get a 0 if C10 is empty?

Code:
Function Reconfig(S As String)
    Dim V As Variant, i As Variant
    V = Split(S, " ")
    For i = 1 To UBound(V) + 1
        Reconfig = Reconfig & i & "• " & V(i - 1) & " "
    Next i
End Function
 
Upvote 0
Are you sure your Dim V as Variant isn't sat on the function line (like it is in the thread) rather than on the second line like it should be (as in the code below) as I get a 0 if C10 is empty?

Code:
Function Reconfig(S As String)
    Dim V As Variant, i As Variant
    V = Split(S, " ")
    For i = 1 To UBound(V) + 1
        Reconfig = Reconfig & i & "• " & V(i - 1) & " "
    Next i
End Function

The UDF code is as you post it, sorry for the misrepresentation in the thread.

My general question is whether it is possible never to have the words #NAME? or #VALUE! displayed, regardless of whatever causes these characters to appear in a cell.

Regards,
CasperA
 
Upvote 0
Give me a real example of what is causing the error so I can test any answer I give you (you seem to have a strange aversion to actually asking a question with real/accurate information/examples).
 
Upvote 0

Forum statistics

Threads
1,215,052
Messages
6,122,878
Members
449,097
Latest member
dbomb1414

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