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:

  1. table tools ► design ► table style options ► header row
     alt+jt,o
  2. copy first row of header labels.
     ctrl+home shift+ctrl+ , ctrl+c.
  3. select a2 , paste.
      ctrl+v
  4. select row 1 , delete, shifting up.
    ctrl+home shift+spacebar , alt+e,d.
  5. 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.

      hidden header row in imported table

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

      hidden header row in imported table restricts filter options

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

      showing header row in imported table

after running repair macro.

      worksheet columns headers transferred imported table

values become available filtering.

      filter optionas available


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -