excel - Data Filter Shows Nothing To Filter On -
i have imported query excel, straight-forward process. issue having if click header row , filter, if select of filter arrows, no values filter on? should change able filter on values in columns?
row 1 contains header, row 2 contains data --- few blank values returned in data row(s) (i.e. row 2 , beyond)
here link garbage data workbook showing issue. enter link description here
the data imported listobject table , held header hidden .listobjects.showheaders = false. fix this, header row must exposed , worksheet's row 1 transferred table's header row.
here quick code repairs data imported table situation.
sub repair_import() dim lo listobject activesheet each lo in .listobjects if not lo.showheaders _ lo.showheaders = true if not isnumeric(.cells(2, 1)) .rows(1).copy destination:=.cells(2, 1) .rows(1).entirerow.delete end if if not lo.showautofilterdropdown _ lo.showautofilterdropdown = true next lo end end sub with a2 (or cell in actual list object table) selected, translates to:
- table tools ► design ► table style options ► header row
alt+jt,o - copy first row of header labels.
ctrl+home shift+ctrl+→ , ctrl+c. - select a2 , paste.
↓ ctrl+v - select row 1 , delete, shifting up.
ctrl+home shift+spacebar , alt+e,d. - table tools ► design ► table style options ► filter button
alt+jt,b
imho, raw data import have been better , allowed more individual customization on user's end. depend on table header's top-left cell being text based , column being numerical individual circumstances should accommodated minor editing.
as opened hidden table header row.

turning on data ► data tools ► filter shows no values available filter on.

using context menu table tools ► design ► table style options ► show header row.

after running repair macro.

values become available filtering.

Comments
Post a Comment