Professional Documents
Culture Documents
FourusefulExcelfilteringbehaviorsTechRepublic
MICROSOFT
FourusefulExcelfilteringbehaviors
BySusanHarkinsMarch16,2015,1:52PM
PST
Excel'sfilteringfeatureishelpful,butaddabitofcreativityanditbecomes
muchmore.SusanHarkinsexplains.
Excel'sAutoFilterfeatureiseasytoimplementanduse,butitcandomorethanfirstmeetsthe
eye.Thetrickistobeabitcreative.Thetipsinthisarticlearen'trelatedinanywaytheyall
extendthefeatureoruseittocompleteanonfilteringtask.
Foryourconvenience,youcandownloadthe.xlsx
(http://b2b.cbsimg.net/downloads/Thompson/ExcelFilterDemo.xlsx)or.xls
(http://b2b.cbsimg.net/downloads/Thompson/ExcelFilterDemo.xls)demonstrationfile,butyoucanworkwith
anysimpledataset.ThearticleincludesinstructionsforExcel2010,butitalsoprovidessteps
forExcel2003whensignificantlydifferent.
AboutAutoFilter
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
1/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
Excel'sAutoFilterfeatureinsertsaneasytouseinterfacethatmakesfilteringrecordsquick
andefficient.Onceyouapplythefiltertothedataset,yousimplychoosethenaturaldatato
displayrecordsthatmatchthespecifiedvalue.It'slimited,andoftenyou'llneedtobumpup
yourfilteringtotheadvancedfeatures,butitmakesquickworkoutofsimplefilteringtasks.
ToengagetheAutoFilterfeature,clickanyvalueinthedataset.ClicktheDataset,andthen
clickFilterintheSort&Filtergroup.Excelwilldisplaydropdownstotheheadercellforeach
columninthedataset.Clickthesedropdownstofilterbyexistingvaluesineach
correspondingcolumn.Toclearafilter,clickClearinthesamegroup.InExcel2003,choose
FilterfromtheDatamenu,andthenselectAutoFilter(toclearafilter,uncheckAutoFilter).
Countfilteredrecords
YoucanlearnthenumberofrecordsthatsatisfyafilterbyglancingattheStatusbar.Asyou
canseeinFigureA,thecurrentfilterdisplaysthreeofsevenrecordsfound.Withaquick
glance,youcanlearntwothings:thedatasethasatotalofsevenrecords,andthreeofthose
recordsmatchthecurrentfilter.It'sahandyfeature,butnotallofthatusefulbecauseyoucan't
reusetheinformation.Inaddition,olderversionsofExcelhaveaknownissuewiththisdisplay
it'sinconsistent.
FigureA
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
2/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
TheStatusbardisplaysthenumberofrecordsinafilteredset.
Ifyou'dliketoreturnacountofqualifyingrecordswithinthesheetitself,usethefollowing
SUBTOTAL()function,asshowninFigureB:
=SUBTOTAL(2,B4:B10)
Withoutafilter,thefunctionreturnsthetotalnumberofrecords(seven)inthedataset.
FigureB
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
3/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
UseSUBTOTAL()toreturnthenumberofrecordsthatmeetthecurrentfilter.
Now,specifyafilterandwatchthatnumberupdateaccordingly:
1. ClicktheYeardropdown.
2. Uncheck(SelectAll).InExcel2014,select2014,andyou'redone.
3. Check2014(FigureC).
FigureC
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
4/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
4. ClickOK.Thefilteredsetcontainsthreerecords(FigureD).
FigureD
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
5/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
Whenthecountistheresultofafunction,youcaneasilyreusethatvalue.TheStatusbar
countisgoodinformation,butyoucan'treuseit.
TheSUBTOTAL()functionoffersmanypossibilitiesforsummarizingfilteredsets.Forinstance,
ifyouwantedtosumAmountvalues,you'dusethefunctionSUBTOTAL(9,C4:C10).TableA
definesthisfunction'snumberargument.
TableA
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
6/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
Entersamevalueinnoncontiguousrange
Occasionally,you'llendupwithblankcellsthatneedvalues,asshowninFigureE.When
enteringthesamevalue,youcantakeadvantageoffilteringinacreativeway,evenifyou're
notusingittofilterrecords!
FigureE
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
7/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
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
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
8/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
7. Type2014,butdon'tpressEnteryet.
8. Press[Ctrl]+[Enter]toenterthecurrentvalue,2014,ineachselectedcell(FigureG).
FigureG
9. ClearthefilterbyclickingClearintheSort&Filtergroup(FigureH).
FigureH
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
9/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
10. Ifyoudon'tneedthefilter,clickFilterintheSort&Filtergrouptoremoveit.
YoumighthavenoticedthattheSUBTOTAL()functionupdatedafewtimes.Thisfunction
excludesblankswhenevaluating.That'swhyitreturnedfivewhenB5andB7wereemptyand
zeroafterfilteringforblanks.
Ungroupdates
Bydefault,Excel'slistoffilteringitemswillgroupdates,asyoucanseeinFigureI.(To
illustratethisbehavior,Ichangedtheyearvaluestofulldates.)Bydefault,theitemsare
collapsed.Clicktheplussign[+]toexpandthelistclicktheminussign[]tocollapsealist.
(Thisbehaviordoesn'tapplytoExcel2003.)
FigureI
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
10/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
Excelgroupsdateswhenfiltering.
Mostusersprobablythinkthisaconvenientshortcut.However,ifyoufindyourselfclicking
throughlayersofdatecomponents,youcanupgroupdatefilteringvaluesasfollows:
1. ClicktheFiletab,andchooseOptions.
2. Intheleftpane,chooseAdvanced.
3. IntheDisplayoptionsforthisworkbooksection,unchecktheGroupdatesintheAutoFilter
menuoption(FigureJ).
FigureJ
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
11/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
4. ClickOK.
DisablingthisoptionforcesExceltodisplayliteraldates,asshowninFigureK.
FigureK
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
12/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
DisablingthisoptionforcesExceltodisplayliteraldates.
Filterbytheselectedvalue
AccessletsyoufilterbytheselectedvaluethefeatureiscalledFilterBySelection.Excelcan
dothattoo,butyou'llhavetoaddtheoptiontotheQuickAccessToolbar(QAT)toaccessit.
Onceyoudo,youcanbypasstheAutoFilterdropdownsandinsteadselectacellthatcontains
thevalueyouwanttofilterbyandthenclicktheFilterBySelectionoptionontheQAT.
ToaddtheFilterBySelectionoptiontotheQATdothefollowing:
1. ClicktheQATdropdownandchooseMoreCommands.
2. Intheresultingwindow,selectCommandsNotintheRibbonfromtheChoosecommands
fromdropdown.
3. Intheresultinglist,selectAutoFilter(theonewiththeequalssignintheicon).
4. ClickAdd(FigureL).
FigureL
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
13/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
5. ClickOK.
InExcel2003,chooseCustomizefromtheToolsmenu.ClicktheCommandstab,andselect
DatafromtheCategorieslist.ChoosetheAutoFilteritemanddragittothetoolbar.
Toputthenewoptiontouse,selectanyvalueinthedatasetandclicktheFilterBySelection
iconintheQAT.FigureMshowstheresultsofselecting1/3/2015inB5andthenclickingthe
option(circledinFigureM).
FigureM
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
14/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
UseFilterBySelectionforevenquickerfiltering.
SendmeyourquestionaboutOffice
Ianswerreaders'questionswhenIcan,butthere'snoguarantee.Whencontactingme,beas
specificaspossible.Forexample,"Pleasetroubleshootmyworkbookandfixwhat'swrong"
probablywon'tgetaresponse,but"Canyoutellmewhythisformulaisn'treturningthe
expectedresults?"might.Pleasementiontheappandversionthatyou'reusing.I'mnot
reimbursedbyTechRepublicformytimeorexpertise,nordoIaskforafeefromreaders.You
cancontactmeatsusansalesharkins@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/5things
everydatascientistshouldknowaboutexcel/)
HowtosumvaluesinanExcelfilteredlist(http://www.techrepublic.com/blog/microsoftoffice/howto
sumvaluesinanexcelfilteredlist/)
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
15/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
AutomaticallysignupforTechRepublic'sMicrosoftintheEnterprisenewsletter.
Subscribe
AboutSusanHarkins
SusanSalesHarkinsisanITconsultant,specializingindesktopsolutions.Previously,shewaseditor
inchiefforTheCobbGroup,theworld'slargestpublisheroftechnicaljournals.
AddyourComment
Editor'sPicks
Wecommerce:The
sharingeconomy's
uncertainpath
'PayPalMafia'redefined
successinSilicon
Valley
HowAaronLevieand
hischildhoodfriends
builtBox
Conflictmineralsfunded
awarthatkilledmillions
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
16/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
WhitePapers,Webcasts,andDownloads
WHITEPAPERS // FROMPOLYCOM
2014SurveyReportRemoteCollaborationChallenges&StrategiestoOvercome
Polycomsurveyed5,000businessprofessionalsfromalljoblevelsaroundthe
worldthatfocusedoncollaborationchallengestosupportamobileandflexible
workingenvironment.
DownloadthissurveytolearnwhattheseSeniorITprofessionalssayaretheir
biggestremotecollaborationchallengesanddiscoverthestrategiesthey
deploytoovercomethem.
DOWNLOADNOW
WHITEPAPERS // FROMHP
DoesApplicationSecurityPay?
READMORE
WEBCASTS // FROMCITRIXONLINE
OndemandWebcast:HowtoSucceedUnderPressureforHighPerformanceSales
WATCHNOW
EBOOKS // FROMIBM
IntegratingandGoverningBigData
DOWNLOADNOW
Don'tMissOurLatestUpdates
Editor'sDailyPicks
Subscribe
WeekinReview
Subscribe
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
17/18
3/17/2015
FourusefulExcelfilteringbehaviorsTechRepublic
http://www.techrepublic.com/article/fourusefulexcelfilteringbehaviors/
18/18