You are on page 1of 0

101 Excel Tips To

Make You An Excel


RockStar
By: Ankit Kaul
www.exceltrick.com
2013
What you can do with this e-Book?
You have permission to post this, email this, print this and pass it along for free to anyone you like, as long
as you make no changes or edits to its contents or digital format.
Brought to you by www.exceltrick.com
1
Contents of this Book
Top 25 Keyboard Shortcuts in Excel 2
15 Tips To Make Your Excel Lightening Fast 3
10 Small Tips To Ease Your Tasks In Excel 4
25 Formulas in Excel To Give You An Edge 7
15 Macro Examples for Beginners 8
11 Secret Tricks To Make You A Superhero 11
SharingisCaring:
Spendfewminutesof your precioustimebysharingthissmall lovelye-book
withyour friendsandcolleagues.
Brought to you by www.exceltrick.com
2
Top 25 Keyboard Shortcuts in Excel
Tip 1: Toformat anyselectedcell, press CTRL +1.
Tip 2: Tosumquicklyselect therangeandpressALT+
Tip 3: For cyclingthroughvarioustypesof cell references(absolute&relative),
pressF4keywhileinsertingthereferences.
Tip 4: CTRL+' Copiesaformulafromtheabovecell
Tip 5: PressCTRL+Ktoopenthehyperlinkdialogbox.
Tip 6: UseCTRL+TABtoswitchbetweenopenExcel windows.
Tip 7: PressCTRL+Ntoopensanewworkbook.
Tip 8: UseF2toedit anactivecell.
Tip 9: Select acell andthenpressCTRL+Spacetoselect thewholecolumn.
Tip 10: Select acell andthenpressCTRL+Shift toselect thewholerow.
Tip 11: PressF7torunspell checker ontheactivesheet.
Tip 12: UseCTRL+SHIFT+F3toinsert namedrangefor anentiretable
automaticallybasedonthecolumnorrowheadings.
Tip 13: UseCTRL+PageUpor CTRL+PageDowntoscroll betweenworksheets.
Tip 14: PressCTRL+SHIFT+Ltoapplyafilter totheselectedrange.
Tip 15: UseCTRL+~toviewformulasinsteadof values.
Tip 16: UseCTRL+Dtocopytheabovecell.
Tip 17: UseCTRL+; toenter todaysdateinthecell.
Tip 18: UseSHIFT+CTRL+; toenter current timeinthecell.
Brought to you by www.exceltrick.com
3
Tip 19: UseCTRL+SHIFT+( tounhideanyhiddenrowsinthecurrent
selection.
Tip 20: UseCTRL+SHIFT+) tounhideanyhiddencolumnsinthecurrent
selection.
Tip 21: PressCTRL+SHIFT+&tooutlinetheborder of selectedcells.
Tip 22: PressCTRL+SHIFT+$toapplyCurrencyformat totheselectedcells.
Tip 23: PressCTRL+SHIFT+Plus(+) tobringuptheinsert cellsdialog.
Tip 24: PressCTRL+Minus(-) tobringupthedeleteselectedcellsdialog.
Tip 25: PressCTRL+TtodisplaystheCreateTabledialogbox.
15Tips To Make Your Excel Lightening Fast
Tip 26: ChangeCalculationtoManual mode. Todothisnavigateto: Formulas
>CalculationOptions. CalculatemanuallyusingF9onlywhenrequired.
Tip 27: Deleteall namedrangesandun-necessaryformattingtomakeexcel
blazingfast.
Tip 28: Avoidarrayformulae, whenever possible.
Tip 29: UseApplication.ScreenUpdating=Falseat thestart inVBAMacrosand
intheendwriteApplication.ScreenUpdating=True. Thisreducestheresource
overhead.
Tip 30: Inexcel sheetsthat haveVlookUps, if thesourcefileisnot goingto
change; thenitisbetter topaste-special theVlookUpvalues. Thisisbecause
evenacoupleof VlookUpsslowdowntheperformanceimmenselydueto
recalculationof values.
Tip 32: Avoiddumpinghugedatasheetsintoasinglespreadsheet.
Tip 32: TrytouseSUMIFformulainsteadof SUMPRODUCTwhenever possible.
Brought to you by www.exceltrick.com
4
Tip 33: Cut downtheuseof nestedIf statements.
Tip 34: Avoidtheuseof Volatilefunctions. Volatilefunctionsaresimple
functionsthatwill recalculateeachtimeachangeof dataoccursinanycell on
anyworksheet. Most functionswhicharenon-Volatilewill onlyrecalculateif a
cell that theyarereferencinghaschanged. Someof thevolatilefunctionsare
NOW(), TODAY(), OFFSET(), CELL(),INDIRECT(), ROWS(), COLUMNS() .
Tip 35: InExcel macrosuseApplication.EnableEventstofalseandlater inthe
endof coderevert itbacktoitsoriginal form.
Tip 36: InExcel macrostheuseof Destination:canreduceyourresource
overheadasthisstatement bypassestheclipboard. For example:
Insteadof using:
Sheet1.Range(A1:A1000).Copy
Sheet2.Range(B1).pasteSpecial
Application.CutCopyMode=False
Use:
Sheet1.Range(A1:A1000).Copy Destination:=Sheet2.Range(B1)
Tip 37: InExcel macrosuseApplication.Calculation=xlCalculationManual and
later intheendof codeApplication.Calculation=xlCalculationAutomatic.
Tip 38: TrytouseFindandSearchmethodsrather thanloopingthrough
cells. Loopsworkquicklywhenyouareusingthemfor lessthan100cells.
Tip 39: Trytominimizecrosslinkingof spreadsheets.
Tip 40: Whenusingtoomanypivots Disabledatadrillingoption. This
reducesfilesize, cachememoryandspeedsupthefile.
10 Small Tips To Ease Your Tasks In Excel
Tip 41: Selectallyourcellswithasingleclick:Clickthesmall triangleiconto
select all thecellsat onceasshown.
Brought to you by www.exceltrick.com
5
Tip 42: CheckSum,AverageandCountofselectedcells:Tocheckthesum,
averageandcount of cells, just select themandyoucanseethedetailsinthe
statusbar.
Tip 43: Seewhatsonyourclipboard:Tochecktheclipboardquicklyjust click
theclipboardbuttononexcel asshownbelow.
Brought to you by www.exceltrick.com
6
Tip 44: Convertformulastoliterals:Copytheformulaandthenright clickand
select thevaluesiconasshown.
Tip 45: Forceacarriagereturninacell:PressALT+ENTERkeyswhileediting.
Tip 46: QuicklyTransposeData:Select therangethenNavigatetoCopydata>
PasteSpecial >Transpose.
Tip 47: UseFormatPainterasmanytimesasyoulike Just doubleclickthe
Format Painter anduseitmultipletimes.
Tip 48: Concatenatetexteasily:Usetheampersandoperator toconcatenate
text. For example: Toconcatenatetext1andtext 2usetheformula
=text1&text2.
Tip 49: Clearcell formatseasily:Select thecellsandthennavigatetoHome
tab>Clear >Clear Formatsasshown.
Brought to you by www.exceltrick.com
7
Tip 50: Selectingall formulacellsinexcel:Toselect all formulas, hit CTRL+G,
select specialandcheckformulas.
25 Formulas in Excel To Give You An Edge
Tip 51: Togeneratearandomnumber betweenadefinedrangeuse:
=RandBetween(lower_limit, upper_limit) e.g. =RandBetween(100 ,200)
Tip 52: UseLCMformulatogettheLowest commonmultiplebetween
multiplenumbers. e.g. =LCM(2,4,8,12)
Tip 53: Obviouslythereisaformulafor findingGreatest CommonDivisor too.
e.g. =GCD(2,4,8,12)
Tip 54: Toget nthlargest number inarange, usetheformula=Large(range, n)
Tip 55: Toget nthsmallest number inarange, use=Small(range, n)
Tip 56: Tocount thenumber of charactersinaword, use=Len(Some_word)
Tip 57: Toextract filenamefromafilepathuse:
=MID(A1,FIND("*",SUBSTITUTE(A1,"\","*",LEN(A1)-
LEN(SUBSTITUTE(A1,"\",""))))+1,LEN(A1)).
Tip 58: =NOW() formulainexcel isusedtofetchthecurrent datetime.
Tip 59: Convert all charactersinawordtolowercasebyusingformula
=LOWER(some_word)
Tip 60: Convert all charactersinawordtouppercasebyusingformula
=UPPER(some_word)
Tip 61: Convert awordtoproper casebyusingtheformula
=PROPER(some_word)
Tip 62: UseTRIMfunctiontoremoveunnecessaryspacesfromaword. e.g.:
=TRIM( some_word )
Tip 63: Cleanfunctionremovesall nonprintingcharactersfromatext. e.g.
=CLEAN(some_word)
Brought to you by www.exceltrick.com
8
Tip 64: Excel formulatoget fileextension
=REPLACE(RIGHT(A1,5),1,SEARCH(".",RIGHT(A1,5)),"")
Tip 65: Excel formulatoget thetotal number of worksheetsinaworkbooks
=SHEETS()
Tip 66: =ROW() functiongivestherownumber inwhichthecurrent cell is
present.
Tip 67: =COLUMN() functiongivesthecolumnnumber inwhichthecurrent cell
ispresent.
Tip 68: Findtotal number of instancesof aparticular character intext:
=LEN(A1)-LEN(SUBSTITUTE(LOWER(A1),"a",""))
Tip 69: Todebugyour formulasinExcel, select theportionsof formulaand
pressF9toseetheresult of that portion.
Tip 70: USEREPT() functiontorepeat acharacter multipletimes. Thiscanhelp
youtocreateamicrochart.
Tip 71: USE=CELL("width") functiontoget thewidthof aparticular cell.
Tip 72: FindtheminimumvalueinanarrayifvaluesbyusingMIN() function.
e.g. =MIN(112,121, 101)
Tip 73: FindthemaximumvalueinanarrayifvaluesbyusingMAX() function.
e.g. =MAX(112,121, 101).
Tip 74: USESubstitute() functiontoreplaceawordor character withsome
other text or character. e.g. =SUBSTITUTE("EXCEL","E","Z")
Tip 75: USEMODEfunctiontogetmostrecurringorrepeatingvaluefroma
range.
15 Macro Examples for Beginners
Tip 76: Macrofor countingrowsandcolumnsintheactivesheet:
Brought to you by www.exceltrick.com
9
Sub Count()
RCount = ActiveSheet.UsedRange.Rows.Count
Ccount = ActiveSheet.UsedRange.Columns.Count
MsgBox "Rows = " & RCount & " Columns = " & Ccount
End Sub
Tip 77: Macrotocount sheetsinaWorkbook:
Sub Count2()
myCount = Application.Sheets.Count
MsgBox myCount
End Sub
Tip 78: Macrotoloopall cellsintheusedrange:
Sub Loopallcells()
For Each Cl In ActiveSheet.UsedRange
'Do whatever you want here
Next Cl
End Sub
Tip 79: Sometimesyoumaywant tocloseall fileswithout saving. Sohereisa
Macrotocloseall files:
Sub CloseAll()
Application.DisplayAlerts = False
myTotal = Workbooks.Count
For i = 1 To myTotal
ActiveWorkbook.Close
Next i
End Sub
Tip 80: Macrotofetchtheaddressof activecell:
Sub MyAddress()
MsgBox ActiveCell.Address
End Sub
Tip 81: Amacrothat runsautomaticallywheneveryouopentheworkbook
file.
Sub Auto_Open()
Msgbox "Hi Welcome!"
End Sub
Tip 82: Asimplemacrotocolour theactivecell.
Sub ColourCell()
ActiveCell.Interior.Color = rgbBlue
End Sub
Tip 83: Kill or deleteafilebyusingasmall excel macro:
Sub Killfile()
Dim MyFile As String 'This line of code is optional
MyFile = "c:\folder\filename.xls"
kill MyFile
End Sub
Brought to you by www.exceltrick.com
10
Tip 84: Passwordprotect theactivesheet.
Sub ProtectSheet()
Password = InputBox("Enter the password : ")
If Len(Password) > 0 Then
ActiveSheet.Protect Password, True, True, True
Else
MsgBox "Invalid Password"
End If
End Sub
Tip 85: Unprotect theactivesheet.
Sub UnProtectSheet()
Password = InputBox("Enter the password : ")
If Len(Password) > 0 Then
ActiveSheet.Unprotect Password
Else
MsgBox "Invalid Password"
End If
End Sub
Tip 86: Createafolder usingexcel anmacro.
Sub Makefolder()
MkDir "C:\Dip"
End Sub
Tip 87: Checkif afileexistsor not.
Sub RetrieveFile()
File = Dir("C:\Windows\CSUP.txt")
If Len(File) > 0 Then
MsgBox (File & " Exists")
Else
MsgBox ("File Doesn't Exists")
End If
End Sub
Tip 88: Macrothat speaksout thecurrent time.
Public Sub TalkingTime()
Time = Now
Application.Speech.Speak ("The Time is" & Time)
End Sub
Tip 89: Macrofor deletingemptyrowswithinthecurrent selection
Sub DelEmptyRow()
Rng = Selection.Rows.Count
ActiveCell.Offset(0, 0).Select
Application.ScreenUpdating = False
For i = 1 To Rng
If ActiveCell.Value = "" Then 'You can replace "" with 0 to
delete rows with 'the value zero
Selection.EntireRow.Delete
Else
ActiveCell.Offset(1, 0).Select
End If
Next i
Application.ScreenUpdating = True
End Sub
Brought to you by www.exceltrick.com
11
Tip 90: Deleteall rangenamespresent inyourworkbook
Sub DeleteNames()
Dim NameX As Name
For Each NameX In Names
ActiveWorkbook.Names(NameX.Name).Delete
Next NameX
End Sub
11Secret Tricks To Make You A Superhero
Tip 91: Youknowthat cellscanbecoloured, but doyouknowthat evensheet
tabscanbecoloured. Seethebelowimagetoknowhow.
Tip 92: Didyouknewthat doubleclickingtheofficebuttonclosesyour excel
file?
Brought to you by www.exceltrick.com
12
Tip 93: Didyouknowhowtomakeyour reportsmoreawesome. Seethe
imagebelow.
Todothissimplyselect all thecolumnstotheright of your report (byCTRL+
SHIFT+Arrow(>)) andhidethem. Inthesimilarwayselect all therowsbelow
your report (byCTRL+SHIFT+Arrow()) andhidethemtoo. Simpleisnt it!
Tip 94: Didyouknowthat doubleclickingonanytopribbontabinExcel makes
itdisappear.
Tip 95: Didyouknowabout thexlSheetVeryHiddenfeature. Thisfeaturecan
makeyourspreadsheetshiddensothat theycannot bemadevisibleagain
without openingtheVBAEditor.
TomakethemvisibleyouneedtopressALT+F11, thenselect your sheet and
finallychangeitsvisibilityproperty. Seethebelowimage
Brought to you by www.exceltrick.com
13
Tip 96: Whenyouhaveaworkbookthatisverylargeinsizeyoucanreduce
thisdramaticallybysavingthefileas"Microsoft Excel Workbook(*.xls)" as
opposedto"Microsoft Excel 5/95Workbook(*.xls)".
Tip 97: Didyouknowthat youcannavigatetoanycell quicklybyusingthe
excel namebox. Todothissimplytypethecell addressandpressenter.
Brought to you by www.exceltrick.com
14
Tip 98: Didyouknowthat Microsoft hasalsogivenafilerepairingpropertyto
Excel. Thispropertycanhelpyoutorecover corruptedfiles.
Tousethis, withanopenspreadsheet pressCTRL+Oselect thefilethat you
want torepair. After thisclickthedropdownontheOpenbuttonandselect the
OpenandRepairoptionasshown.
Tip 99: Printonlytheselectedareafromaspreadsheet. For thisselect anarea
thennavigatetoPageLayout >PrintArea>Set Print Area. Nowwhenyouprint
that worksheet onlytheselectedareawill beprinted.
Brought to you by www.exceltrick.com
15
Tip 100:Didyouknowthatyoucanmakethetext insidecellsinvisible. This
canbedonebyusingacustomformat. Followthebelowstepstodothis.
1. Typesometext inanycell.
2. Next presstheCTRL+1keystobringtheformat cellsdialog.
3. Here, select theCustomformat andType;;;(without quotes) asshown.
4. ClickOk andthetext will becomeinvisible.
Tip 101:Breakthepasswordof anyexcel workbookbyusingthismacro. Also
applicabletoExcel 2013.
Sub CrackPassword()
Dim v1 As Integer, u1 As Integer, w1 As Integer
Dim v2 As Integer, u2 As Integer, w2 As Integer
Dim v3 As Integer, u3 As Integer, w3 As Integer
Dim v4 As Integer, u4 As Integer, w4 As Integer
On Error Resume Next
For v1 = 65 To 66: For u1 = 65 To 66: For w1 = 65 To 66
Brought to you by www.exceltrick.com
16
For v2 = 65 To 66: For u2 = 65 To 66: For w2 = 65 To 66
For v3 = 65 To 66: For u3 = 65 To 66: For w3 = 65 To 66
For v4 = 65 To 66: For u4 = 65 To 66: For w4 = 32 To 126
ActiveSheet.Unprotect Chr(v1) & Chr(u1) & Chr(w1) & _
Chr(v2) & Chr(u2) & Chr(v3) & Chr(u3) & Chr(w3) & _
Chr(v4) & Chr(u4) & Chr(w4) & Chr(w2)
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
End Sub
StepsFor Runningthismacro-
1Opentheexcel fileandpressAlt+F11.
2Under Project Window->Right-Click->Insert ModuleandPastethebelow
code.
3NowcomebacktoMicrosoft Excel, under Macro'sClickViewMacro.
4Select MacroandclickRun.
Thistipisonlyincludedfor educational purpose. Weat Excel Trickdonot
support suchactivities. Runthiscodeat your ownriskasthismaybeillegal in
somepartsof theworld.
Brought to you by www.exceltrick.com
17
AmessagefromAnkit
Thankyoufor takingthetimetoreadtheseTips. Enjoyusingyour newExcel
powersandkeeppracticingthem.
If youhavent subscribedtomyblogthendoitnowusingthebelowlink:
http://feedburner.google.com/fb/a/mailverify?uri=ExcelTrick
KindRegards,
Ankit Kaul
YoucanalsojoinmyFacebookpageat: www.facebook.com/ExcelTrick
Or Elseyoucanfollowmeontwitter: http://twitter.com/exceltrick
SharingisCaring:
Spendfewminutesof your precioustimebysharingthissmall lovelye-book
withyour friendsandcolleagues.

You might also like