The Computer Oracle

Hide "inconsistent formula" error in a selection in Excel

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Puzzle2

--

Chapters
00:00 Hide &Quot;Inconsistent Formula&Quot; Error In A Selection In Excel
00:47 Accepted Answer Score 11
01:15 Answer 2 Score 0
01:33 Answer 3 Score 1
01:47 Thank you

--

Full question
https://superuser.com/questions/581298/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#microsoftexcel #worksheetfunction

#avk47



ACCEPTED ANSWER

Score 11


You can do this for a range by:

  1. selecting the range.
  2. Click the arrow next to the button that appears.
  3. Select ignore error

Opton 2 via vba: select your cells and run the following macro

Sub Example() 

    Dim rngCell As Range, bError As Byte 
    For Each rngCell In Selection.Cells 

        For bError = 1 To 7 Step 1 

            With rngCell 
                If .Errors(bError).Value Then 
                    .Errors(bError).Ignore = True
                End If 
            End With         
        Next bError     
    Next rngCell 

End Sub



ANSWER 2

Score 1


Sorry this is old news. Be sure to select a range where the top left cell contains an error. Then you get the yellow pop up needed to "Ignore Error"...so helpful!




ANSWER 3

Score 0


An inline option that worked for me, and was a bit simpler:

In my example the error was in bite 4, so that's what I used, but it could be on any bite: 1 - 7

Worksheets.Item(strSheet).Range(strColumn & strRow & ":" & strColumn & strRow).Errors(4).Ignore = True