Creating a dynamic #N/A Filter for EXCEL.

tysondogerz

New Member
Joined
Nov 11, 2017
Messages
2
I have a set of data which I need to remove the #N/A for a table. This is the last thing I need to do for my project I am working on. Unfortunately, this has not been as easy as I have imagined. I have already filtered the table and am wanting to additionally add a #N/A filter so the data can look nice and neat.
hAjTOG





I have tried:
Code:
wb1.ListObjects("Table1").Range.AutoFilter Field:=1, Criteria1:="=#N/A"

All this does it make my data filled with #N/A. Where as I want to remove the #N/A for column 1

The below works though it's not for dynamic data
Code:
Sub Macro2()
     '
     ' Macro2 Macro
     '
    
    
     '
    ActiveSheet.ListObjects("Table2").Range.AutoFilter Field:=1, Criteria1:= _
    Array("Nov 13", "Nov 13", "Today", _
    ), Operator:= _
    xlFilterValues
End Sub
ActiveSheet.Range("A:A").AutoFilter Field:=1, Criteria1:="#N/A"

Any ideas. I've been stuck on this for a while now and it's the last thing I need to do so I can finish my project. Thanks.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
the #N/A is in the table to start with, what is the formula for that column ?
 
Upvote 0
Very simple vlookup function in a filtered table.. I have tried it with macro recorder and it gave me:
Code:
wb1.ListObjects("Table1").Range.AutoFilter Field:=1, Criteria1:= _ Array("*"), Operator:=xlFilterValues
. However the array was for each row so not viable with my dynamic data at all.
Code:
sht1.ListObjects("Table1").Range.AutoFilter Field:=9, Criteria1:= _
        "<>#N/A" merely creates a N/A column.
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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