4 useful excel filtering behaviors - techrepublic

18
Excel's filtering feature is helpful, but add a bit of creativity and it becomes much more. Susan Harkins explains. Excel's AutoFilter feature is easy to implement and use, but it can do more than first meets the eye. The trick is to be a bit creative. The tips in this article aren't related in any way; they all extend the feature or use it to complete a nonfiltering task. For your convenience, you can download the .xlsx (http://b2b.cbsimg.net/downloads/Thompson/ExcelFilterDemo.xlsx) or .xls (http://b2b.cbsimg.net/downloads/Thompson/ExcelFilterDemo.xls) demonstration file, but you can work with any simple dataset. The article includes instructions for Excel 2010, but it also provides steps for Excel 2003 when significantly different. About AutoFilter MICROSOFT Four useful Excel filtering behaviors By Susan Harkins March 16, 2015, 1:52 PM PST

Upload: vesridhar

Post on 03-Oct-2015

230 views

Category:

Documents


1 download

DESCRIPTION

excel filtering

TRANSCRIPT

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 1/18

    Excel'sfilteringfeatureishelpful,butaddabitofcreativityanditbecomesmuchmore.SusanHarkinsexplains.

    Excel'sAutoFilterfeatureiseasytoimplementanduse,butitcandomorethanfirstmeetstheeye.Thetrickistobeabitcreative.Thetipsinthisarticlearen'trelatedinanywaytheyallextendthefeatureoruseittocompleteanonfilteringtask.

    Foryourconvenience,youcandownloadthe.xlsx(http://b2b.cbsimg.net/downloads/Thompson/ExcelFilterDemo.xlsx)or.xls(http://b2b.cbsimg.net/downloads/Thompson/ExcelFilterDemo.xls)demonstrationfile,butyoucanworkwithanysimpledataset.ThearticleincludesinstructionsforExcel2010,butitalsoprovidesstepsforExcel2003whensignificantlydifferent.

    AboutAutoFilter

    MICROSOFT

    FourusefulExcelfilteringbehaviors BySusanHarkinsMarch16,2015,1:52PMPST

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 2/18

    Excel'sAutoFilterfeatureinsertsaneasytouseinterfacethatmakesfilteringrecordsquickandefficient.Onceyouapplythefiltertothedataset,yousimplychoosethenaturaldatatodisplayrecordsthatmatchthespecifiedvalue.It'slimited,andoftenyou'llneedtobumpupyourfilteringtotheadvancedfeatures,butitmakesquickworkoutofsimplefilteringtasks.

    ToengagetheAutoFilterfeature,clickanyvalueinthedataset.ClicktheDataset,andthenclickFilterintheSort&Filtergroup.Excelwilldisplaydropdownstotheheadercellforeachcolumninthedataset.Clickthesedropdownstofilterbyexistingvaluesineachcorrespondingcolumn.Toclearafilter,clickClearinthesamegroup.InExcel2003,chooseFilterfromtheDatamenu,andthenselectAutoFilter(toclearafilter,uncheckAutoFilter).

    Countfilteredrecords

    YoucanlearnthenumberofrecordsthatsatisfyafilterbyglancingattheStatusbar.AsyoucanseeinFigureA,thecurrentfilterdisplaysthreeofsevenrecordsfound.Withaquickglance,youcanlearntwothings:thedatasethasatotalofsevenrecords,andthreeofthoserecordsmatchthecurrentfilter.It'sahandyfeature,butnotallofthatusefulbecauseyoucan'treusetheinformation.Inaddition,olderversionsofExcelhaveaknownissuewiththisdisplayit'sinconsistent.

    FigureA

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 3/18

    TheStatusbardisplaysthenumberofrecordsinafilteredset.

    Ifyou'dliketoreturnacountofqualifyingrecordswithinthesheetitself,usethefollowingSUBTOTAL()function,asshowninFigureB:

    =SUBTOTAL(2,B4:B10)

    Withoutafilter,thefunctionreturnsthetotalnumberofrecords(seven)inthedataset.

    FigureB

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 4/18

    UseSUBTOTAL()toreturnthenumberofrecordsthatmeetthecurrentfilter.

    Now,specifyafilterandwatchthatnumberupdateaccordingly:

    1. ClicktheYeardropdown.2. Uncheck(SelectAll).InExcel2014,select2014,andyou'redone.3. Check2014(FigureC).

    FigureC

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 5/18

    4. ClickOK.Thefilteredsetcontainsthreerecords(FigureD).FigureD

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 6/18

    Whenthecountistheresultofafunction,youcaneasilyreusethatvalue.TheStatusbarcountisgoodinformation,butyoucan'treuseit.

    TheSUBTOTAL()functionoffersmanypossibilitiesforsummarizingfilteredsets.Forinstance,ifyouwantedtosumAmountvalues,you'dusethefunctionSUBTOTAL(9,C4:C10).TableAdefinesthisfunction'snumberargument.

    TableA

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 7/18

    Entersamevalueinnoncontiguousrange

    Occasionally,you'llendupwithblankcellsthatneedvalues,asshowninFigureE.Whenenteringthesamevalue,youcantakeadvantageoffilteringinacreativeway,evenifyou'renotusingittofilterrecords!

    FigureE

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 8/18

    Youmightendupwithblankcellsthatneedvalues.

    Byfilteringtheblanks,youcanquicklyenterthevalueinalltheblanksatonce,asfollows:

    1. IfAutoFilterisn'timplemented,enableitforyourdataset.2. TheblanksareintheYearcolumn,soclickthatdropdownarrow.3. Uncheck(SelectAll).InExcel2003,select(Blanks),andskiptostep6.4. Check(Blanks).5. ClickOK.6. Intheresultingfilteredset,selecttheblanks.Inthiscase,that'sB5:B7(FigureF).

    Remember,oneoftherowsishiddenbythefilter.FigureF

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 9/18

    7. Type2014,butdon'tpressEnteryet.8. Press[Ctrl]+[Enter]toenterthecurrentvalue,2014,ineachselectedcell(FigureG).

    FigureG

    9. ClearthefilterbyclickingClearintheSort&Filtergroup(FigureH).FigureH

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 10/18

    10. Ifyoudon'tneedthefilter,clickFilterintheSort&Filtergrouptoremoveit.

    YoumighthavenoticedthattheSUBTOTAL()functionupdatedafewtimes.Thisfunctionexcludesblankswhenevaluating.That'swhyitreturnedfivewhenB5andB7wereemptyandzeroafterfilteringforblanks.

    Ungroupdates

    Bydefault,Excel'slistoffilteringitemswillgroupdates,asyoucanseeinFigureI.(Toillustratethisbehavior,Ichangedtheyearvaluestofulldates.)Bydefault,theitemsarecollapsed.Clicktheplussign[+]toexpandthelistclicktheminussign[]tocollapsealist.(Thisbehaviordoesn'tapplytoExcel2003.)

    FigureI

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 11/18

    Excelgroupsdateswhenfiltering.

    Mostusersprobablythinkthisaconvenientshortcut.However,ifyoufindyourselfclickingthroughlayersofdatecomponents,youcanupgroupdatefilteringvaluesasfollows:

    1. ClicktheFiletab,andchooseOptions.2. Intheleftpane,chooseAdvanced.3. IntheDisplayoptionsforthisworkbooksection,unchecktheGroupdatesintheAutoFilter

    menuoption(FigureJ).FigureJ

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 12/18

    4. ClickOK.

    DisablingthisoptionforcesExceltodisplayliteraldates,asshowninFigureK.

    FigureK

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 13/18

    DisablingthisoptionforcesExceltodisplayliteraldates.

    Filterbytheselectedvalue

    AccessletsyoufilterbytheselectedvaluethefeatureiscalledFilterBySelection.Excelcandothattoo,butyou'llhavetoaddtheoptiontotheQuickAccessToolbar(QAT)toaccessit.Onceyoudo,youcanbypasstheAutoFilterdropdownsandinsteadselectacellthatcontainsthevalueyouwanttofilterbyandthenclicktheFilterBySelectionoptionontheQAT.

    ToaddtheFilterBySelectionoptiontotheQATdothefollowing:

    1. ClicktheQATdropdownandchooseMoreCommands.2. Intheresultingwindow,selectCommandsNotintheRibbonfromtheChoosecommands

    fromdropdown.3. Intheresultinglist,selectAutoFilter(theonewiththeequalssignintheicon).4. ClickAdd(FigureL).

    FigureL

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 14/18

    5. ClickOK.

    InExcel2003,chooseCustomizefromtheToolsmenu.ClicktheCommandstab,andselectDatafromtheCategorieslist.ChoosetheAutoFilteritemanddragittothetoolbar.

    Toputthenewoptiontouse,selectanyvalueinthedatasetandclicktheFilterBySelectioniconintheQAT.FigureMshowstheresultsofselecting1/3/2015inB5andthenclickingtheoption(circledinFigureM).

    FigureM

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 15/18

    UseFilterBySelectionforevenquickerfiltering.

    SendmeyourquestionaboutOffice

    Ianswerreaders'questionswhenIcan,butthere'snoguarantee.Whencontactingme,beasspecificaspossible.Forexample,"Pleasetroubleshootmyworkbookandfixwhat'swrong"probablywon'tgetaresponse,but"Canyoutellmewhythisformulaisn'treturningtheexpectedresults?"might.Pleasementiontheappandversionthatyou'reusing.I'mnotreimbursedbyTechRepublicformytimeorexpertise,nordoIaskforafeefromreaders.Youcancontactmeatsusansalesharkins@gmail.com.

    Alsosee

    HowtousepictureplaceholdersforeasyplacementandcroppinginPowerPoint(http://www.techrepublic.com/article/howtousepictureplaceholdersforeasyplacementandcroppingin

    powerpoint/)

    OfficeQ&A:MaskandmergeAccessinput,detourOutlookreplies(http://www.techrepublic.com/article/officeqamaskandmergeaccessinputdetouroutlookreplies/)

    5thingseverydatascientistshouldknowaboutExcel(http://www.techrepublic.com/article/5thingseverydatascientistshouldknowaboutexcel/)

    HowtosumvaluesinanExcelfilteredlist(http://www.techrepublic.com/blog/microsoftoffice/howtosumvaluesinanexcelfilteredlist/)

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 16/18

    AutomaticallysignupforTechRepublic'sMicrosoftintheEnterprisenewsletter.

    Subscribe

    AddyourComment

    AboutSusanHarkinsSusanSalesHarkinsisanITconsultant,specializingindesktopsolutions.Previously,shewaseditorinchiefforTheCobbGroup,theworld'slargestpublisheroftechnicaljournals.

    Editor'sPicks

    Wecommerce:Thesharingeconomy'suncertainpath

    'PayPalMafia'redefinedsuccessinSiliconValley

    HowAaronLevieandhischildhoodfriendsbuiltBox

    Conflictmineralsfundedawarthatkilledmillions

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 17/18

    WHITEPAPERS // FROMPOLYCOM

    2014SurveyReportRemoteCollaborationChallenges&StrategiestoOvercomePolycomsurveyed5,000businessprofessionalsfromalljoblevelsaroundtheworldthatfocusedoncollaborationchallengestosupportamobileandflexibleworkingenvironment.

    DownloadthissurveytolearnwhattheseSeniorITprofessionalssayaretheirbiggestremotecollaborationchallengesanddiscoverthestrategiestheydeploytoovercomethem.

    DOWNLOADNOW

    WHITEPAPERS // FROMHP

    DoesApplicationSecurityPay?

    READMORE

    WEBCASTS // FROMCITRIXONLINE

    OndemandWebcast:HowtoSucceedUnderPressureforHighPerformanceSales

    WATCHNOW

    EBOOKS // FROMIBM

    IntegratingandGoverningBigData

    DOWNLOADNOW

    WhitePapers,Webcasts,andDownloads

    Don'tMissOurLatestUpdates

    Editor'sDailyPicks Subscribe

    WeekinReview Subscribe

  • 3/17/2015 FourusefulExcelfilteringbehaviorsTechRepublic

    http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/ 18/18