Filtering/Sorting in excel from selected names -
i write bachelor thesis , struggeling filter data
so far solution have in mind manually select wanted id's. hope of have smarter solution take me several hours click filter manually.
my dataset contains 193.522 rows , 14 colums
snapshot of dataset
and have listed specific fund-names examine contain no empty datacells.
selected fund-names
so question is, possible filter entire column (fund name) list given in picture of selected fund names?
i appreciate
/jernjens
modify following code requierd. pay attention comments added , make sure sheets exists in workbook , sheet names changed accordingly.
sub filterbachelorthesis() dim arrfilters application.screenupdating = false worksheets("fund names") 'sheet list of fund names 'assuming list of fund names on fundnames sheet in column starting row2 arrfilters = application.transpose(.range("a2", .range("a" & rows.count).end(xlup))) end 'assuming have sheet called "filter data" hold filtered result worksheets("filtered data").usedrange.clearcontents 'data main sheet contains data worksheets("data").range("a1").currentregion .autofilter 5, arrfilters, 7 .copy worksheets("filtered data").range("a1") .autofilter end application.screenupdating = true end sub
Comments
Post a Comment