Upload
duongnhan
View
222
Download
0
Embed Size (px)
Citation preview
957
Access database programversus Excel, 678importing tables, 679–680
Accounting format, Format Cells dialog box, 46–47, 554Accounting Number Format button, Ribbon, 553Accounting Number Format drop-down list, 44ACCRINT function, 923ACCRINTM function, 923ACOS function, 926ACOSH function, 926actions, VBA, 813Activate event, 876, 879activating embedded chart, 405, 413active area, worksheet, 172active cell, 8–9Active cell indicator, 6–7active objects, VBA, 814Active Sheets printing option, 178active window, 51active workbook, 50ActiveX controls
CheckBox, 866–867ComboBox, 867–868CommandButton, 868Image, 868Label, 868ListBox, 868–869OptionButton, 869overview, 861ScrollBar, 869–870SpinButton, 870–871TextBox, 871–872ToggleButton, 872
Add a Digital Signature command, Info pane, 155Add button
Consolidate dialog box, 601Customize Quick Access Toolbar, 41
Add Constraint dialog box, 767Add operation, Paste Special dialog box, 599Add Scenario dialog box, 755Add to Dictionary button, Spelling dialog box, 672Add View dialog box, 191
SPECIAL CHARACTERS AND NUMERICS#DIV/0! error, 219, 653–654#N/A error, 219, 360, 654–655#NAME? error, 655#NULL! error, 219, 655#NUM! error, 219, 396–397, 655#REF! error, 219, 656#VALUE! error, 219, 656& (ampersand), 234* (asterisk) wildcard character, 77–78, 242, 568@ (at) symbol, 217= (equal sign), 203# (hash mark) character, 67, 218? (question mark) wildcard character, 77, 242~ (tilde) character, 78, 2423 × 4 array constant, 361–3623-D area chart, 4283-D charts, 464–4653-D clustered column chart, 4213-D data point, 4323-D line chart, 42315-digit accuracy, 3164-bit version, 4, 6771900 date system, 2501904 date system, 250
AAbove average conditional formatting rule, 481ABS function, 274, 926absolute references
Data Validation dialog box, 575formulas and functions, 210–212problems with, 657
accelerator key, 19, 856Accelerator property
CheckBox control, 866OptionButton control, 869
Accept or Reject Changes dialog box, 635
60_474877-bindex.indd 95760_474877-bindex.indd 957 3/29/10 11:48 PM3/29/10 11:48 PM
COPYRIG
HTED M
ATERIAL
958
Index
Covariance, 785Descriptive Statistics, 785–786exponential smoothing, 786Fourier Analysis, 787F-Test, 786–787Histogram, 787–788Moving Average, 788–789overview, 783Random Number Generation, 789–790Rank and Percentile, 790Regression, 790–791Sampling, 791–792t-Test, 792z-Test, 792
using, 783Analysis ToolPak—VBA add-in, 905And criteria, 289–291, 305–307AND function, 925angled text, displaying, 125–126animated border, 79annuity, 348annuity calculator.xlsx sample file, 937ANSI character set, 231–232Any Value option, Data Validation dialog box, 571Application close button, 6–7Application minimize button, 6–7Application object, 814, 816Application.ActiveCell property, 816Application.ActiveSheet property, 816Application.ActiveWorkbook property, 816applications, on CD, 934Application.Selection property, 816Apply Names dialog box, 226Apply These Changes to All Other Cells with the Same
Setting check box, 572area charts, 427–428area charts.xlsx sample file, 938AREAS function, 926Areas method, 895arguments
formulas and functions, 201–202function procedure, 828–833
Arrange command, 521Arrange Windows dialog box, 51array, defined, 355array argument, 316array examples.xlsx sample file, 937array formula calendar.xlsx sample file, 937array formulas
#VALUE! error, 656array constant elements, 360
AddinInstall event, 876add-ins, 514. See also custom add-insAdd-Ins dialog box
installing add-ins, 913overview, 904–905
AddIns object, 814Add-Ins tab, Ribbon, 11AddinUninstall event, 876address
cell, 8–9, 69range, 69
ADDRESS function, 328, 385, 926Advanced tab
Excel Options dialog box, 36–38, 52, 439, 519, 806Share Workbook dialog box, 631–633
age, calculating, 265–266AGGREGATE function, 201, 204–205, 380, 926alert messages, 900Align with Page Margins check box, 187aligning objects, 523Alignment tab
Format Axis dialog box, 452Format Cells dialog box, 15, 122, 125
All Commands option, Choose Commands From drop-down list, 544
All Except Borders option, Paste Special dialog box, 88All merging conditional formats option, Paste Special dialog
box, 88All Methods tab, Solver Options dialog box, 770–771All option, Paste Special dialog box, 87All References list box, Consolidate dialog box, 600All Using Source Theme option, Paste Special dialog box, 88allocating resources.xlsx sample file, 941Allow drop-down list, Data Validation dialog box, 571Allow Users to Edit Ranges dialog box, 641Alphabetic tab, Properties window, 863alternate-rows, shading, 497Always Show Document Information Panel on Document
Open and Initial Save check box, 151AMORDEGRC function, 923AMORLINC function, 923ampersand (&), 234Analysis ToolPak add-in
WORKDAY function, 264counting formulas, 297–298installing, 298, 782overview, 781–782, 905tools
Analysis of Variance, 784Correlation, 784–785
60_474877-bindex.indd 95860_474877-bindex.indd 958 3/29/10 11:48 PM3/29/10 11:48 PM
959
Index
summing the n largest values, 381using arrays instead of range reference, 376–377
Artistic Effects feature, Office 2010, 533ASIN function, 926ASINH function, 927Ask Me Which Changes Win option, Share Workbook dialog
box, 633asterisk (*) wildcard character, 77–78, 242, 568at (@) symbol, 217ATAN function, 927ATAN2 function, 927ATANH function, 927atp examples.xlsx sample file, 941Auditing tools
background error-checking feature, 665–667fixing circular reference errors, 665Formula Evaluator feature, 667–668identifying cells of particular types, 661–662tracing cell relationships
identifying dependents, 665identifying precedents, 664overview, 663–664
tracing error values, 665viewing formulas, 662–663
AutoComplete feature, 39AutoCorrect button, Spelling dialog box, 672AutoCorrect dialog box, 40, 233, 672–674AutoCorrect feature, 40, 672–674AutoCorrect Options button, AutoCorrect feature, 40AutoCorrect tab, AutoCorrect feature, 40AutoFill feature
copying to adjacent cells, 83generating series of dates, 260–261overview, 38–39worksheet data entry, 23
AutoFill handle, 38autofiltering, 282AutoFit Column Width option, 68AutoFormat as You Type tab, AutoCorrect dialog box, 674Automatic Calculation mode, 220Automatic item grouping, pivot table, 717automatic number formatting, 43–44, 552automatic percent-entry feature, 44Automatic Update option, Edit Links dialog box, 595Automatically Every setting, Share Workbook dialog box, 632Automatically Except for Data Tables option, 222Automatically Insert a Decimal Point check box, Excel
Options dialog box, 38AutoRecover feature
recovering unsaved work, 149–150recovering versions of current workbooks, 149
array dimensionsone-dimensional horizontal, 360–361one-dimensional vertical, 361two-dimensional, 361–362
creating array constants, 358–359defined, 750editing, 364–365entering, 364entry error, 650multicell
creating array constant from values in ranges, 367creating array from values in ranges, 366–367displaying calendar, 398–399expanding or contracting, 365–366generating array of consecutive integers, 370–371overview, 356–357performing operations on arrays, 368returning list of unique items, 396–398returning nonblank cells, 394–395returning only positive values, 394reversing order of cells, 395–396sorting range of values dynamically, 396transposing array, 369–370using functions with array, 369
naming array constants, 362–363overview, 355–356performing case-sensitive lookup, 320selecting range, 364single-cell
computing averages that exclude zeros, 381–382counting characters in range, 371–372counting differences in two ranges, 384counting error values, 380–381counting text cells in range, 373–374determining closest values, 391determining whether particular values appears, 383–384determining whether range contains valid values, 386eliminating intermediate formulas, 374–376finding row of value’s nth occurrence, 385overview, 357–358ranking data, 392–393removing non-numeric characters from strings, 390returning last value in columns, 391–392returning last value in rows, 392returning locations of maximum values, 384–385returning longest text, 385summing digits of integers, 386–387summing every nth value, 388–390summing ranges that contain errors, 379–380summing rounded values, 388summing smallest values in ranges, 372–373
60_474877-bindex.indd 95960_474877-bindex.indd 959 3/29/10 11:48 PM3/29/10 11:48 PM
960
Index
BeforeSave event, 876, 878–879Bernoulli distribution option, Random Number Generation
dialog box, 790BESSELI function, 921BESSELJ function, 921BESSELK function, 921BESSELY function, 921Best Case scenario, Scenario Manager, 755BETADIST function, 918BETA.DIST function, 929BETAINV function, 918BETA.INV function, 929bin range, 787BIN2DEC function, 921BIN2HEX function, 921BIN2OCT function, 921binding constraint, 769BINOMDIST function, 918BINOM.DIST function, 929Binomial distribution option, Random Number Generation
dialog box, 790BINOM.INV, 929bitmap image, 531Bitmap paste option, Paste Special dialog box, 619blank cells, counting formulas, 284–285blank cells not blank error, 651–652blank skipping, Paste Special dialog box, 89Blanks option, Go to Special dialog box, 75Bold button, Ribbon, 14book.xlt template, 185Boolean data type, 901Border tab, Format Cells dialog box, 129, 484borders, worksheet formatting, 128–129Borders drop-down list, 128Bottom vertical alignment option, 124BoundColumn property
ComboBox control, 867ListBox control, 868
breaking links, 620Browse button, Consolidate dialog box, 601bubble charts, 433bubble charts.xlsx sample file, 938budget data.accdb sample file, 940budget.xlsx sample file, 935built-in data form, 41built-in date format, 566buttons, assigning macros to, 810–811buttons element, MsgBox function, 839By Changing Cell field, Goal Seek dialog box, 763
AutoSize propertydefined, 864Image control, 868TextBox control, 871
auto-updating Sparklines, 513Available Template screen
My Templates icon, 165New from Existing option, 169
AVEDEV function, 929AVERAGE function, 200, 375, 382, 929Average summary formula, 108AVERAGEA function, 929AVERAGEIF function, 382, 929AVERAGEIFS function, 929averages, that exclude zeros, 381–382axis
categories, 452–455scaling, Sparkline graphics, 509–510value, 448–452
Axis Crosses At option, 452Axis options tab, Format Axis dialog box, 448–449
BBackColor property, 864background error-checking feature, 665–667background images
displaying, 535printing, 185worksheet formatting, 130–131
background image.xlsx sample file, 935Backstage view
New page, 162Print tab, 179Share tab, 614
BackStyle property, 864backups, 157BAHTTEXT function, 932Banded Columns check box, 107Banded Rows check box, 107bank accounts.xlsx sample file, 940bar charts, 422bar charts.xlsx sample file, 938bar of pie chart, 425basic counting.xlsx sample file, 936basic lookup examples.xlsx sample file, 937BeforeClose event, 876, 879BeforeDoubleClick event, 879BeforePrint event, 876BeforeRightClick event, 883, 879
60_474877-bindex.indd 96060_474877-bindex.indd 960 3/29/10 11:48 PM3/29/10 11:48 PM
961
Index
editing, 98formatting, 95hiding and showing, 97overview, 94–95printing, 96–97reading, 96selecting, 97–98
conditional formattingcopying, 500locating, 501
counting and summing, 281–283counting characters in, 243counting formulas, 283–285counting occurrences of specific text, 292–293counting occurrences of substrings in, 243–244creating drop-down list, 573Data Validation feature, 574–575data-entry techniques
AutoComplete feature, 39AutoCorrect feature, 40AutoFill feature, 38–39automatically moving the cell pointer, 37Ctrl+Enter key combination, 38current date or time, 42decimal points, 38forcing text to appear, 40forms, 40–42navigation keys, 37numbers with fractions, 40selecting range of input cells, 38
defined, 5editing contents, 35–37erasing contents, 35filled with hash marks, 651filling with repeating characters, 568identifying particular type, 661–662joining, 234–235linking controls to, 864look up address of values within range, 326merging, 124–125overview, 34, 69printing gridlines, 183–184prompting for values, 893references in
changing types of, 212from other workbooks, 213–214from other worksheets, 212–213overview, 209–210relative, absolute, and mixed, 210–212
referencing within pivot tables, 733–735replacing contents, 35
By Changing Variable Cells field, Solver Parameters dialog box, 767
By list box, Grouping dialog box, 720Byte data type, 901
CCalculate event, 880calculated fields, 724–728calculated fields and items.xlsx sample file, 940calculated items, in pivot tables
creating, 724–725inserting, 728–731
calculation mode, changing, 341calendar, displaying in ranges, 398–399Camera tool, 535Cancel option, File in Use dialog box, 629candlesticks, 434–435Capitalize First Letter of Sentences option, AutoCorrect
dialog box, 672Capitalize Names of Days option, AutoCorrect dialog box, 673Caption property, 864Cascading Style Sheets (CSS), 609case
changing, 239–240lookup formulas, 320–321
case sensitive password, 151Categorized tab, Properties window, 863category axis, 407, 452–455Category field, database table, 698category_labels argument, 459CD
applications, 934eBook version of Excel 2010 Bible, 934sample files for Excel 2010 Bible, 934–942system requirements, 933troubleshooting, 942using, 933–934
CEILING function, 927CEILING.PRECISE function, 927cell dependents, 663CELL function, 925cell precedents, 663cell references.xlsx sample file, 936Cell Styles command, 132cells. See also ranges
blank, 317–318, 651–652changing, 753, 765comments
changing shape, 96deleting, 98
60_474877-bindex.indd 96160_474877-bindex.indd 961 3/29/10 11:48 PM3/29/10 11:48 PM
962
Index
Chart Element drop-down control, 439–440Chart Layouts option, 437chart macros.xlsm sample file, 942chart series feature, 439chart sheet, 5, 49Chart Styles option, 437chart tip, 438Chart Tools contextual tab, 405, 519, 621Chart Tools control, 468Chart type option, 437ChartObject object, 897ChartObjects object, 815charts
axiscategory, 452–455value, 448–452
Chart Area, 443copying, 414creating and customizing
choosing types, 409, 412data views, 411layouts, 409–411selecting data, 408–409styles, 412–413
data series3-D charts, 464–465adding, 456–457changing, 457–460changing range by dragging range outline, 457–458combination charts, 465–468data labels, 460–461deleting, 456displaying data tables, 468–469Edit Series dialog box, 458editing Series formula, 459–460error bars, 461–463missing data, 461overview, 455–456trendlines, 463–464
deleting, 414displaying colors in column, 474–475elements
adding, 415Chart Element Control, selecting with, 439–441Format dialog box, 441–442formatting, 415–416keyboard, selecting with, 439Mini toolbar, 442moving and deleting, 415overview, 437–438
result, 759reversing order of, 395–396selecting
complete rows and columns, 71multisheet ranges, 72–74noncontiguous ranges, 71–72ranges, 70by searching, 76–78special types of cells, 74–76
shortcuts for selecting in worksheet, 950–951Sparkline, 507summing all in range, 299–300target, 765tracing relationships
identifying dependents, 665identifying precedents, 664overview, 663
unlocking, 639–640Center across Selection horizontal alignment option, Format
Cells dialog box, 123Center command, Ribbon, 14Center horizontal alignment option, Format Cells dialog box, 123Center vertical alignment option, Format Cells dialog box, 124Change All button, Spelling dialog box, 672Change button, Spelling dialog box, 672change case.xlam sample file, 942change case.xlsm sample file, 941Change Chart Type dialog box, 412, 465–466Change event, 880Change History option, Share Workbook dialog box, 632Change Source button
Edit Links dialog box, 595Links dialog box, 621
Change Source dialog box, 595Change worksheet event, 880ChangeCaseOfText procedure, 909changing cells, 753, 765Changing Cells field, Add Scenario dialog box, 756CHAR function, 234, 932character codes
CHAR function, 231–233CODE function, 231
characterscounting
in cells, 243in ranges, 371–372in strings, 239
extracting from strings, 240–241filling cells with repeating, 568removing from strings, 390
60_474877-bindex.indd 96260_474877-bindex.indd 962 3/29/10 11:48 PM3/29/10 11:48 PM
963
Index
CHIDIST function, 918CHIINV function, 918CHISQ.DIST function, 929CHISQ.DIST.RT function, 929CHISQ.INV function, 929CHISQ.INV.RT function, 929CHISQ.TEST function, 929CHITEST function, 918Choose Commands list, Customize Quick Access Toolbar, 41Choose Data Source dialog box, 682, 684, 690Choose Details dialog box, 152CHOOSE function, 311, 926Christmas Day, date functions, 271Circle Invalid Data item, Data Validation drop-down list, 572Circular Reference Warning message, 219circular references, 219–220, 650, 665circular reference.xlsx sample file, 936CLEAN function, 239, 932Clear All button, Office Clipboard, 85Clear All command, 35Clear button, Format Cells dialog box, 484Clear Comments command, 35Clear Contents command, 35Clear Formats command, 35Clear Hyperlinks command, 35Clear method, 817Clear Rules command, Conditional Formatting drop-down
list, 483Click event, 853client-server network, 628Clip Art task pane, 22, 531–532ClipArt button, 470–471Clipboard button, 470–471Clipboards
overview, 616–617replacing cell contents, 35
Close button, 50closest values, determining, 391closing
all workbooks, VBA macros, 896–897Excel windows, 52–53
clustered column chart, 410, 419CODE function, 932codes
entering and editing, 812for number formatting, 558–560
col_index_num argument, VLOOKUP function, 312
col_num argument, INDEX function, 316Collated option, 180
Ribbon feature, 442selecting with mouse, 438–439
embedded, 405Gantt, 476–477gauge, 473–474gridlines, 448histogram, 475–476legends, 446–448moving, 414overview, 403–404picture, 470–471Plot Area, 444–445plotting one variable mathematical functions, 477–478plotting two variable mathematical functions, 479printing, 416–417resizing, 414sheets, 406–407templates, 469–470thermometer, 472–473titles, 445–446types of
area, 427–428bar, 422bubble, 433choosing, 417–419column, 419–421doughnut, 429–430line, 423–424pie, 424–426radar, 430–432stock, 433–436surface, 432–433XY (scatter), 426–427
using data bars instead of, 487VBA macros and
applying formatting, 899modifying properties, 898modifying type, 898overview, 897
Charts object, 815Check Accessibility command, Info pane, 155check boxes, Ribbon, 14Check Compatibility command, Info pane, 156Check for Issues button, 155Check Mark icon
Formula bar, 36New Formatting Rule dialog box, 491–492
CheckBox control, ActiveX, 844, 859, 861, 866–867checkerboard shading, 497Chi Square distribution, 201
60_474877-bindex.indd 96360_474877-bindex.indd 963 3/29/10 11:48 PM3/29/10 11:48 PM
964
Index
formatting, 95hiding and showing, 97overview, 94–95printing, 96–97reading, 96selecting, 97–98VBA code, 812
Comments optionAdd Scenario dialog box, 756Go to Special dialog box, 75Paste Special dialog box, 88
comparative histogram.xlsx sample file, 938Compare Side by Side feature, 61comparisons, chart, 417compatibility
checking, 157–159saving for use with older versions, 159–160
Compatibility Category Functions, 918–919Compatibility Checker dialog box, 156–158Compatibility Mode section, Info pane, 65, 154COMPLEX function, 921compound interest, calculating, 344–346CONCATENATE function, 235, 932concatenation operator, 234conditional colors.xlsx sample file, 938Conditional Formats option, Go to Special dialog box, 76conditional formatting
copying cells, 500deleting, 500formula-based rules
formula examples, 496–499overview, 494–495relative and absolute references, 495–496
graphicscolor scales, 487–490data bars, 485–487icon sets, 490–494
loan amortization schedule, 337locating cells, 501making rules, 484–485managing rules, 499–500overview, 481–482types of, 483–484
Conditional Formatting command, Ribbon, 14Conditional Formatting drop-down list, 483conditional formatting examples.xlsx sample
file, 939conditional formatting formulas, 494conditional formatting formulas.xlsx sample
file, 939
collections, VBA macros, 814–815colon operator, 225color
chart columns, 474–475charts, 430–432Sparkline graphics, 508worksheets, 127–128
Color Scale conditional formatting rule, 482color scale example.xlsx sample file, 939Color Scales command, Conditional Formatting drop-down
list, 483Columbus Day, date functions, 270column chart, 418column charts.xlsx sample file, 938Column Differences option, Go to Special dialog box, 75COLUMN function, 497–498, 926column labels, pivot table, 704column letters
overview, 6–7replacing table headings, 63
Column Sparkline, 504Column to Filter list, Query Wizard, 685–686Column Width dialog box, 68Column Widths option, Paste Special dialog box, 88ColumnCount property
ComboBox control, 867ListBox control, 868
columns. See also rows and columnsdefined, 99keeping visible while scrolling, 63selecting entire, 105
COLUMNS function, 926COMBIN function, 927combination chart, 407, 465–468ComboBox control, ActiveX, 844, 861, 867–868comma operator, 225Comma Style button
Number Format drop-down list, 44Ribbon, 553
CommandBar object, 913CommandButton control, ActiveX, 844, 848, 861, 868commands
adding to Quick Access toolbar, 543–545Ribbon interface, 13–15
Commands Not in the Ribbon option, Choose Commands From drop-down list, 544
commentschanging shape, 96deleting, 98editing, 98
60_474877-bindex.indd 96460_474877-bindex.indd 964 3/29/10 11:48 PM3/29/10 11:48 PM
965
Index
creating macros for, 864–866design mode, 862linking controls to cells, 864overview, 843–844, 861
Convert button, 154CONVERT function, 921Convert to Number option, Smart Tag, 230converting
charts to combination chart, 466–467tables to ranges, 113
Copy method, 888Copy to New Sheet button, Compatibility Checker dialog
box, 158copying
cells and rangesadjacent cells, 82–83drag-and-drop, 81–82Office Clipboard, 84–85to other sheets, 83overview, 78–79Paste Special dialog box, 87–89pasting, 85–86Ribbon commands, 79–80shortcut keys, 81shortcut menu commands, 80–81
chart formatting, 447charts, 414from Excel to Word
pasting links, 620–622pasting static information, 617–620
with Office application, 615–617pivot tables, 708workbooks, in Word, 624–626worksheets, 56
Correct Accidental Use of cAPS LOCK key option, AutoCorrect dialog box, 673
Correct TWo INitial CApitals option, AutoCorrect dialog box, 672
CORREL function, 785, 929Correlation dialog box, 785Correlation tool, Analysis ToolPak add-in, 784–785COS function, 927COSH function, 927Cost argument, 351COUNT function, 282, 929Count Numbers summary formula, 108Count property, 895Count summary formula, 108count unique.xlsx sample file, 936COUNTA function, 282, 285, 392, 929
Conditional Formatting Rules Manager dialog box, 483conditional sums
multiple criteriausing And, 305–306using And and Or, 307using Or, 306–307
single criteriononly negative values, 303–304overview, 302–303values based on date comparisons, 305values based on different ranges, 304values based on text comparisons, 305
conditional sum.xlsx sample file, 936CONFIDENCE function, 918Confidence Level option, Regression dialog box, 791CONFIDENCE.NORM function, 929CONFIDENCE.T function, 929confirmation message, saving references, 592Connect button, Create New Data Source dialog box, 683Connect Data Points with Line option, 461–462consecutive integers, generating arrays of, 370–371Consolidate command, consolidating worksheets,
600–601Consolidate dialog box, 600consolidating worksheets
example of, 601–603overview, 597–598refreshing, 604using Consolidate command, 600–601using formulas, 598using Paste Special dialog box, 599
Constant Is Zero option, Regression dialog box, 791Constants option, Go to Special dialog box, 75Constraint Precision option, Solver Options dialog box, 771constraints
adding, 767–768binding, 769defined, 765
Constraints section, Solver Results dialog box, 769contextual tabs, Ribbon interface, 13Contextures, Web site, 948contiguous range, 71continuous compounding interest, 346–348contracting multicell arrays, 365–366controls
defined, 801UserForm
adding, 862adjusting properties, 862–863common properties, 863–864
60_474877-bindex.indd 96560_474877-bindex.indd 965 3/29/10 11:48 PM3/29/10 11:48 PM
966
Index
COVARIANCE.S function, 929Create Chart dialog box, 736Create from File tab, Object dialog box, 623, 626Create Links to Source Data check box, Consolidate dialog
box, 601–602, 604Create Names from Selection dialog box, 92, 325Create New Data Source dialog box, 682–683Create New tab, Object dialog box, 623Create New Theme Colors dialog box, 138–139Create PivotTable dialog box, 701Create Sparklines dialog box, 506Create Table dialog box, 25, 102credit card payment, calculating, 334–336credit card payments.xlsx sample file, 937credit union, 778CRITBINOM function, 918criteria argument
COUNTIF function, 287SUMIF function, 302
Criteria pane, Microsoft Query, 690–691Crop command, 535CSS (Cascading Style Sheets), 609Cube Category Functions, 919cube root.xlsm sample file, 941CUBEKPIMEMBER function, 919CUBEMEMBER function, 919CUBEMEMBERPROPERTY function, 919CUBERANKEDMEMBER function, 919CUBESET function, 919CUBESETCOUNT function, 919CUBEVALUE function, 919CUMIPMT function, 332, 923CUMPRINC function, 332, 923cumulative sum, computing, 300–302cumulative sum.xlsx sample file, 937curly brackets, 284, 359, 362, 364Currency data type, 901Currency format, Format Cells dialog box, 46–47, 554Current Array option, Go to Special dialog box, 75Current Date button, 186current date, displaying, 259current date.xlsm sample file, 941Current Region option, Go to Special dialog box, 75Current Time button, 186Curve and Scribble Shapes, 519custom add-ins
creating, 907–908defined, 903–904example of
about UserForm, 909–910adding descriptive information, 911
COUNTBLANK function, 282, 284–285, 929COUNTIF function
computing averages that excludes zeros, 382counting error values in range, 286counting text cells in range, 373formulas using, 287function of, 929overview, 282references, 576
COUNTIFS function, 282, 929counting
characters in strings, 239differences in two ranges, 384error values in ranges, 380–381number of words, 248occurrences of substrings in cells, 243–244specific characters in cells, 243text cells in range, 373–374
counting formulasblank cells, 284–285COUNTIF function, 287creating frequency distributions
FREQUENCY function, 294–295using a pivot table, 298–299using formulas, 296–297using the Analysis ToolPak, 297–298
error values in ranges, 286logical values, 286most frequently occurring entry, 291multiple criteria, 288–291nonblank cells, 285nontext cells, 285number of unique values, 293–294numeric cells, 285occurrences of specific text, 292–293overview, 281text cells, 285total number of cells, 283–284
counting text in a range.xlsx sample file, 937CountLarge property, 895county data.xlsx sample file, 940COUPDAYBS function, 923COUPDAYS function, 923COUPDAYSNC function, 923COUPNCD function, 923COUPNUM function, 923COUPPCD function, 923COVAR function, 785, 918Covariance tool, Analysis ToolPak add-in, 785COVARIANCE.P function, 929
60_474877-bindex.indd 96660_474877-bindex.indd 966 3/29/10 11:48 PM3/29/10 11:48 PM
967
Index
Form button, 41–42New button, 42
Customize Regional Options dialog box, 257Customize Ribbon tab, Excel Options dialog box, 548customizing
charts, 408–413Quick Access toolbar
adding new commands, 543–545overview, 17–19, 541–542
Ribbon feature, 5, 546–549SmartArt feature, 527–528Sparkline graphics
adjusting axis scaling, 509–510changing colors and line width, 508changing type, 508faking reference lines, 510–512hidden or missing data, 508highlighting certain data points, 509sizing cells, 507
user interfaceQuick Access toolbar, 541–546Ribbon feature, 546–549
Cut method, 891
DDaily Dose of Excel, Web site, 948Dalgleish, Deborah, 948damping factor, 786Dark style category, tables, 103data. See also entering and editing data
adding in outlines, 588non-numeric, 715–717for pivot tables, 698–701preparing for outlines, 588ranking with array formulas, 392–393returned by Query
adjusting external data range properties, 688–689changing, 690deleting, 690refreshing, 689–690
selecting from charts, 408–409sharing with Office applications. See sharing data with
Office applicationsspecifying location for, 687–688transforming with formulas, 240types of
formulas, 30–31numeric values, 30overview, 29text entries, 30
creating user interface for add-in macros, 912–913installing add-ins, 913procedures in Module1, 909protecting projects, 911–912setting up workbooks, 908testing workbook, 910–911
overview, 903–904reasons for creating, 906
Custom category in the Number tab, Format Cells dialog box, 399
Custom conditional formatting rule, 482Custom error bar, Format Error Bars dialog box, 462–463Custom format, Format Cells dialog box, 46–47, 554Custom Format option, 484Custom option, Data Validation dialog box, 572custom templates
changing workbook defaults, 166–167changing worksheet defaults, 167–168editing, 168ideas, 170overview, 165–166resetting default settings, 168saving, 170
Custom Value option, Sparkline group, 509Custom Views feature, 587–588Custom Views of worksheet, printing, 190–191custom workbook template, 166custom worksheet functions
debugging, 833–834example of
analyzing, 825–826custom function, 824using function in worksheet, 824–825
function procedure argumentsfunction with no argument, 829function with one argument, 829–831function with range argument, 832–833function with two arguments, 831–832overview, 828–829
function procedurescalling custom functions from, 827overview, 826–827using custom functions in worksheet formulas, 828
inserting, 834–836VBA functions, 823
customer list, 630customer satisfaction charts, 413Customize button, Customize Regional Options dialog box, 257Customize Quick Access Toolbar
Add button, 41Choose Commands list, 41
60_474877-bindex.indd 96760_474877-bindex.indd 967 3/29/10 11:48 PM3/29/10 11:48 PM
968
Index
data validation examples.xlsx sample file, 939data validation feature
adding comments to cells, 98cell references, 574–575creating drop-down lists, 573criteria types, 571–572formula examples
accepting dates by day of week, 577accepting larger values than previous cell, 576accepting nonduplicate entries only, 576–577accepting only values that don’t exceed total, 578accepting text only, 576accepting text that begins with specific characters, 577creating dependent lists, 578–579overview, 575
overview, 569–570specifying criteria, 570–571using formulas, 574
Data Validation option, Go to Special dialog box, 76data views, charts, 411Database Category Functions, 920database files, Query application, 681Databases tab, Choose Data Source dialog box, 682data-entry techniques
AutoComplete feature, 39AutoCorrect feature, 40AutoFill feature, 38–39automatically moving the cell pointer, 37current date or time, 42decimal points, 38forcing text to appear, 40forms, 40–42navigation keys, 37numbers with fractions, 40selecting a range of input cells, 38using Ctrl+Enter, 38
Date & Time Category Functions, 920–921date axis, Sparkline graphics, 512–513Date category, 254Date data type, 901Date format category, 554Date format, Format Cells dialog box, 46–47DATE function
calculating holiday dates, 268function of, 920overview, 258summing values based on date comparison, 305TIME function and, 273
date functionsage calculation, 265–266converting nondate string to date, 261–262
Data Analysis dialog box, 783Data bar conditional formatting, 4, 485data bars
in pivot tables, 299simple, 486–487using instead of chart, 487
Data Bars command, Conditional Formatting drop-down list, 483
Data Bars conditional formatting feature, 237Data bars conditional formatting rule, 482data bars examples.xlsx sample file, 939Data Consolidate feature, 600Data field, database table, 698data label
adding to chart, 415selecting, 439
Data pane, Microsoft Query, 691, 693data points, 407, 509data relationships, comparing, 417data series
3-D charts, 464–465adding, 456–457changing
by dragging range outline, 457–458by editing Series formulas, 459–460using Edit Series dialog box, 458
combination chart, 407, 465–468data labels, 460–461deleting, 456displaying data tables, 468–469doughnut chart, 429error bars, 461–463line chart, 423missing data, 461overview, 455–456pie chart, 424trendlines, 463–464
data source, Query applications, 682–684Data tab
Analysis ToolPak add-in, 782Ribbon, 11
Data Table dialog box, 339, 749Data Table feature, 338, 437data tables
one-input, 748–750one-way, 338–340overview, 747–748two-input, 750–753two-way, 340–341
Data Validation dialog box, 570–571, 574–575
60_474877-bindex.indd 96860_474877-bindex.indd 968 3/29/10 11:48 PM3/29/10 11:48 PM
969
Index
decimal hours, 277–278Decimal option, Data Validation dialog box, 571decimal points, 38Decrease Decimal Places button, Ribbon, 44, 553, 560default element, InputBox function, 838default number format, 556default row height, 68default templates, 166–168Default Width command, 68default workbook template, 166default worksheet template, 166DEGREES function, 927Degrees spinner control, Format Cells dialog box, 126Delete All Draft Versions command, Info pane, 156Delete button, Consolidate dialog box, 601Delete Columns option, Protect Sheet dialog box, 640Delete command drop-down list, 35Delete Rows option, Protect Sheet dialog box, 640deleting
chart elements, 415charts, 414comments in cells, 98conditional formatting, 500data series, 456queries, 690rows and columns, 66worksheets, 54
DELTA function, 922dependent lists, 578–579dependent variable, 791dependent workbook
defined, 589Save As command, 596
dependents, 665Dependents option, Go to Special dialog box, 76, 665dependent.xlsx sample file, 939deposits, future value of
compound interest, 344–346interest with continuous compounding, 346–348simple interest, 343–344
depreciation, calculating, 350–353depreciation calculations.xlsx sample file, 937Description option, Record Macro dialog box, 803descriptive information, 151, 911Descriptive Statistics tool, Analysis ToolPak add-in, 785–786Design contextual tab, 13Design Mode icon, 862design mode, UserForm, 862destination application, 615
current date, 259date of most recent Sunday, 267date’s quarter, 271day of week, 267day of year, 266–267displaying date, 259–260first day of week after a date, 267–268generating series of dates, 260–261holiday dates
Christmas Day, 271Columbus Day, 270Easter, 270Independence Day, 270Labor Day, 270Martin Luther King, Jr. Day, 269Memorial Day, 270New Year’s Day, 269overview, 268–269Presidents’ Day, 269Thanksgiving Day, 271Veterans Day, 270
last day of month, 271leap year, 271nth occurrence of day of week in month, 268number of days between dates, 262number of work days dates, 263–264number of years between dates, 265offsetting dates using only work days, 264
Date option, Data Validation dialog box, 570–572DATEDIF function, 265–266dates. See also date functions
entering, 33–34, 42formatting, 566grouping in pivot tables, 719–721
DATEVALUE function, 258, 260, 920DAVERAGE function, 920David McRitchie’s Excel Pages Web site, 948DAY function, 258–259, 920DAYS360 function, 258, 920DB function, 350, 923DCOUNT function, 282, 920DCOUNTA function, 282, 920DDB function, 350, 923Deactivate event, 876, 880dead formulas, 228debugging custom worksheet functions, 833–834DEC2BIN function, 922DEC2HEX function, 922DEC2OCT function, 922Decimal data type, 901
60_474877-bindex.indd 96960_474877-bindex.indd 969 3/29/10 11:48 PM3/29/10 11:48 PM
970
Index
Document Information Panel dialog box, 151Document Inspector dialog box, 646–647Document Properties panel, 911document theme
applying, 137customizing, 138–139overview, 135–136Sparkline graphics color, 508
DOLLAR function, 236, 932DOLLARDE function, 923DOLLARFR function, 923Don’t Keep Change History button, Share Workbook dialog
box, 632Don’t Move or Size with Cells option, 520Don’t Update option, 592Double data type, 901double-clicking charts, 415“double-spaced” effect, 67doughnut charts, 429–430doughnut charts.xlsx sample file, 938Down arrow key, 10DPRODUCT function, 920Draft Mode indicator, 440draft versions, 149drag-and-drop method
versus cut and paste method, 81–82multiple windows, 60noncontiguous ranges, 72
Draw Border command, 128Draw Border Grid command, 128draw layer, 5Drawing Tools contextual menu, WordArt, 530Drawing Tools tab, Equation Editor, 536drawings. See pictures and drawingsdrop-down lists, data validation feature, 573DSTDEV function, 920DSTDEVP function, 920DSUM function, 282, 920duplicate rows, 109Duplicate values conditional formatting rule, 482DURATION function, 923DVAR function, 920DVARP function, 920dynamic chart, 405dynamic consolidation, 600dynamic model, 745dynamic ranges, Sparkline graphics, 514–515dynamic updating, consolidation, 598
Developer tabdisplaying, 796–797Ribbon, 11
DEVSQ function, 282, 929DGET function, 920dialog box launcher, 15dialog boxes
navigating, 19–20tabbed, 20–21
Different First Page check box, 187Different Odd & Even Pages check box, 187digital IDs, 647digital signatures, 646–648Dim statement, 902direct cell dependent, 663direct cell precedent, 663direct mail.xlsx sample file, 940Disable All Macros with Notification option, Trust Center
dialog box, 797disabling Mini toolbar, 118DISC function, 923Discrete distribution option, Random Number Generation
dialog box, 790Display Options for This Workbook section, 174, 519display preferences, files, 147Display Unit as Millions settings, 451Display Units settings, 451displaying
current time, 272–273data tables, 468–469icons in cells, 490image inside comment, 95Open dialog box, 143Page Setup dialog box, 653scenarios, 757time, 273UserForms, 846Win/Loss Sparkline goal achievement, 511
Distributed horizontal alignment option, Format Cells dialog box, 123
Distributed vertical alignment option, Format Cells dialog box, 124
Distribution drop-down list, Random Number Generation dialog box, 790
#DIV/0! error, 219, 653–654dividends, 778DMAX function, 920DMIN function, 920
60_474877-bindex.indd 97060_474877-bindex.indd 970 3/29/10 11:48 PM3/29/10 11:48 PM
971
Index
CUMIPMT function, 332CUMPRINC function, 332depreciation functions, 351
Engineering Category Functions, 921–922entering and editing data
array formulas, 364cell contents
data-entry techniques, 37–42editing, 35–37erasing, 35overview, 34replacing, 35
data typesformulas, 30–31numeric values, 30overview, 29text entries, 30
date values, 33–34number formatting
automatic number formatting, 43–44custom number formats, 47–48Format Cells dialog box, 45–47overview, 42–43Ribbon interface, 44shortcut keys, 45
text and values, 32–33time values, 33–34
Entire Workbook printing option, 178EntireColumn property, 890EntireRow property, 890entry types, suppressing, 567EOMONTH function, 258, 920equal sign (=), 203Equation Editor feature
defined, 5general discussion, 535–537
Equation Tools tab, Equation Editor, 536erasing cell contents, 35ERF function, 922ERFC function, 922ERFC.PRECISE function, 922ERF.PRECISE function, 922Error Alert tab, Data Validation dialog box, 571, 574error bars feature, 437, 461–463Error Checking dialog box, 667errors. See also names of specific error
appropriate for Solver tool, 765AutoCorrect feature, 672–674
EEaster, date functions, 270eBook version, 934EDATE function, 258, 920Edit button
Scenario Manager dialog box, 758Select Data Source dialog box, 446
Edit Criteria dialog box, 691Edit Formatting Rule dialog box, 493Edit Links dialog box, 593–594, 660Edit mode
multiple formatting styles in single cell, 121overview, 36
Edit Objects option, Protect Sheet dialog box, 640Edit Scenarios option, Protect Sheet dialog box, 640Edit Series dialog box
charts, 458defined, 446
Edit Sparklines dialog box, 513editing, 440. See also entering and editing dataEditing tab, Share Workbook dialog box, 631EFFECT function, 923element codes, headers and footers, 186–187elements, of charts, 437–442Else clause, If-Then-Else structure, 818embedded chart
activating, 405, 413changing data range, 457
embeddingobjects in worksheets
non-Word documents, 623overview, 622Word documents, 623
workbooks in Wordcopying, 624–626creating new Excel objects, 626saved workbooks, 626
employee list.xlsx sample file, 940Enable Automatic Percent Entry check box, 44, 552Enable Background Error Checking check box, 209, 665Enable Content button
Security Warning panel, 153, 934Trust Center dialog box, 797
Enable Iterative Calculation setting, 220Encrypt Document dialog box, 150, 642Encrypt with Password command, Info pane, 155End Sub statement, 799end_period argument
60_474877-bindex.indd 97160_474877-bindex.indd 971 3/29/10 11:48 PM3/29/10 11:48 PM
972
Index
workbookBeforeClose, 879BeforeSave, 878–879NewSheet, 878Open, 876–877SheetActivate, 878
worksheetsBeforeRightClick, 883Change, 880monitoring specific range for changes, 881SelectionChange, 882–883
Evolutionary tab, Solver Options dialog box, 770EXACT function, 234, 932Excel Options dialog box
adding comments to cells, 94–95Advanced tab, 36–38, 52, 439, 519, 806Automatically Insert a Decimal Point check box, 38Customize Ribbon tab, 548Formulas tab, 665–666Language tab, 127Quick Access Toolbar section, 18Reset button, 547Reset Ignored Errors button, 666Save Files in This Format option, 148Selection option, 118Set Precision as Displayed check box, 659Set Precision as Displayed option, 551Show Mini Toolbar on Selection option, 17Transition Navigation Keys option, 949
Excel shortcut keys. See shortcut keysEXP function, 927expanding multicell arrays, 365–366exploded view, pie chart, 425EXPONDIST function, 918EXPON.DIST function, 929exponential smoothing tool, Analysis ToolPak add-in, 786Export All Customization option, 546exporting graphic objects, 525Extended Date Functions add-in, 256external cell references, 590External Data Properties dialog box, 688–689External Data Range Properties dialog box, 612–613external database file data
data returned by Queryadjusting external data range properties, 688–689changing, 690deleting, 690refreshing, 689–690
importing Access tables, 679–680overview, 677–678
errors (continued)in formulas
#DIV/0! errors, 653–654#N/A errors, 654–655#NAME? errors, 655#NULL! errors, 655#NUM! errors, 655#REF! errors, 656#VALUE! errors, 656absolute/relative reference problems, 657actual versus displayed values, 658–659blank cells not blank, 651–652colors, 656extra space characters, 652floating point number errors, 659–660formulas are not calculated, 658hash mark filled cells, 651mismatched parentheses, 650–651operator precedence problems, 657–658overview, 649–650“phantom link” errors, 660returning errors, 653
overview, 219in ranges, 286replacing information, 670searching for formatting, 670–671searching for information, 669–670spell checking worksheets, 671–672summing ranges containing, 379–380tools for
background error-checking feature, 665–667fixing circular reference errors, 665Formula Evaluator feature, 667–668identifying cells of particular type, 661–662tracing cell relationships, 663–665tracing error values, 665viewing formulas, 662–663
ERROR.TYPE function, 925Euro Currency Tools, 905Evaluate button, Evaluate Formula dialog box, 668Evaluate Formula dialog box, 390, 667EVEN function, 927events
defined, 846entering event-handler VBA code, 874–875non-object events
OnKey, 884–885OnTime, 883–884
not associated with objects, 873
60_474877-bindex.indd 97260_474877-bindex.indd 972 3/29/10 11:48 PM3/29/10 11:48 PM
973
Index
display preferences, 147Info options
Compatibility Mode section, 154Permissions section, 154–155Prepare for Sharing section, 155–156Security Warning section, 153–154Versions section, 156
names ofextracting from path specification, 244filtering, 146–147
organizing, 151–153overview, 141–142passwords, 150–151reservations, 628–629safeguarding, 157
fill handle, 23Fill horizontal alignment option, Format Cells dialog box, 123Fill tab, Format Cells dialog box, 484Filter button, Name Manager dialog box, 660Filter command, shortcut menu, 113Filter Data dialog box, Query Wizard, 685filtering
data, Query Wizard, 685–686with slicers, 731–733tables, 112–113
final mark, workbooks, 646financial application formulas. See formulas, for financial
applicationsFinancial Category Functions, 923–924financial functions, 4, 331Find All button, Find and Replace dialog box, 669Find and Replace dialog box, 76–77, 252, 501, 552, 668–671Find Format dialog box, 670FIND function, 242, 932Finish button, Query Wizard, 686–687FINV function, 918F.INV function, 929F.INV.RT function, 929First Column check box, 107First Point option, Sparklines, 509FISHER function, 930FISHERINV function, 930fixed decimal–places option, 38FIXED function, 932fixed pitch font, 67Fixed value error bar, Format Error Bars dialog box, 462–463fixed-term investment, 344floating point number errors, 659–660FLOOR function, 927FLOOR.PRECISE function, 927Followed Hyperlink style, 611
retrieving datadatabase file, 681overview, 680selecting data source, 682–684specifying location for data, 687–688using Query Wizard, 684–687using without Wizard, 690–693
external reference formulaschanging link source, 595changing startup prompt, 594creating link formulas by pointing, 591creating links to unsaved workbooks, 592link formula syntax, 590–591opening workbook with, 592–594pasting links, 591severing links, 595updating links, 594–595
extractingall but first word of strings, 245characters from strings, 240–241filenames from path specifications, 244first, middle, and last names, 245–247last word of strings, 244–245
extreme color scale.xlsx sample file, 939
FFACT function, 927FACTDOUBLE function, 927Factor argument, 351FALSE function, 925Favorite Links list, 146FDIST function, 918F.DIST function, 929F.DIST.RT function, 929fence-post analogy, 262field, database, 678field buttons, pivot chart, 73815-digit accuracy, 31File Block Policy, 145File button, 4, 6–7, 470–471File in Use dialog box, 629File Name button, 187File Name field, Save As dialog box, 148File Now Available dialog box, 629File Path button, 187File Tab option, Choose Commands From drop-down list, 544files. See also workbooks
AutoRecover feature, 149–150compatibility
checking, 157–159saving for use with older versions, 159–160
60_474877-bindex.indd 97360_474877-bindex.indd 973 3/29/10 11:48 PM3/29/10 11:48 PM
974
Index
formattingchart elements, 415–416comments in cells, 95conditional
copying cells, 500deleting, 500formula-based rules, 494–495graphics, 485–494locating cells, 501making rules, 484–485managing rules, 499–500overview, 481–482types of, 483–484
data, 693dates and times, 254–255numbers
automatic, 43–44, 552creating, 555–560custom, 47–48examples of, 560–568Format Cells dialog box, 45–47, 554–555overview, 42–43, 551–552Ribbon interface, 44, 552–553shortcut keys, 45, 553
pivot tables, 703–705searching for, 670–671Shape images, 520–522shortcut keys, 952worksheets
background images, 130–131borders and lines, 128–129colors and shading, 127–128document themes, 135–139fonts, 119–122named styles, 131–135text alignment, 122–127tools for, 115–119
Formatting (R) option, 86, 88forms, data entry, 40–42Formula Autocomplete feature, 204, 218Formula AutoCorrect feature, 199, 651Formula bar
array constants, 367Check Mark icon, 36defined, 32–33editing keys, 951–952overview, 6–7using as calculator, 227X icon, 36
formula data, 29–31Formula Evaluator feature, 390, 667–668
FollowHyperlink event, 880Font tab, Format Cells dialog box, 120, 484fonts
modifying in charts, 443worksheet formatting, 119–122
footers. See headers and footersFORECAST function, 371, 930Form button, Customize Quick Access Toolbar, 41–42Form controls, 860Format Axis dialog box
Alignment tab, 452Axis Options tab, 448–449displaying, 415
Format buttonFind What text box, 669New Formatting Rule dialog box, 484–485
Format Cells dialog boxAlignment tab, 122Border tab, 129, 484Clear button, 484Custom category in the Number tab, 399Fill tab, 484Font tab, 484formatting numbers, 45–47, 554–555Number tab, 254, 484overview, 118–119pivot tables, 703Protection tab, 639tabbed dialog boxes, 19–21
Format Cells option, Protect Sheet dialog box, 640Format Chart Area dialog box, 189, 417Format Columns option, Protect Sheet dialog box, 640Format Comment dialog box, 95Format contextual tab, 13Format Data Labels dialog box, 460Format Data Point dialog box, 456Format Data Series dialog box
displaying, 456Series Options tab, 425, 475
Format Data Table dialog box, 468–469Format dialog box
charts, 441–442Properties tab, 189
Format Error Bars dialog box, 462–463Format Painter button, 131Format Picture button, 187Format Rows option, Protect Sheet dialog box, 640Format Shape dialog box, 522Format Trendline dialog box, 463–464Formatted Text (RTF) paste option, Paste Special dialog
box, 619
60_474877-bindex.indd 97460_474877-bindex.indd 974 3/29/10 11:48 PM3/29/10 11:48 PM
975
Index
overview, 202–203pasting range names, 205–206by pointing, 203–205tips, 208–209
errors#DIV/0! errors, 653–654#N/A errors, 654–655#NAME? errors, 655#NULL! errors, 655#NUM! errors, 655#REF! errors, 656#VALUE! errors, 656absolute/relative reference problems, 657actual versus displayed values, 658–659blank cells not blank, 651–652circular references, 219–220colors, 656extra space characters, 652floating point number errors, 659–660formulas are not calculated, 658hash mark filled cells, 651mismatched parentheses, 650–651operator precedence problems, 657–658overview, 218–219“phantom link” errors, 660returning errors, 653specifying when formulas are calculated, 220–222
external referencechanging link source, 595changing startup prompt, 594creating link formulas by pointing, 591creating links to unsaved workbooks, 592link formula syntax, 590–591opening workbook with, 592–594pasting links, 591severing links, 595updating links, 594–595
for financial applicationsdepreciation calculations, 350–353investment calculations, 343–350loan calculations, 330–343time value of money, 329–330
formula-based rulesformula examples, 496–499overview, 494–495relative and absolute references, 495–496
hard-coding values, 746–747lookup
calculating grade-point averages, 322–323case-sensitive, 320–321combining MATCH and INDEX functions, 316–318
Formula property, 816Formula tab
Excel Options dialog box, 230Ribbon, 11
Formula view, workbook, 662formulas. See also array formulas; text formulas
arguments, 201–202calculating amortization schedule, 338calculating loans with irregular payments, 342conditional sums using multiple criteria
using And, 305–306using And and Or, 307using Or, 306–307
conditional sums using single criteriononly negative values, 303–304overview, 302–303values based on date comparison, 305values based on different range, 304values based on text comparison, 305
consolidating worksheets, 598counting
blank cells, 284–285COUNTIF function, 287creating a frequency distribution, 294–299error values in a range, 286logical values, 286most frequently occurring entry, 291multiple criteria, 288–291nonblank cells, 285nontext cells, 285number of unique values, 293–294numeric cells, 285occurrences of specific text, 292–293text cells, 285total number of cells, 283–284worksheet cells, 281–283
creating conditional formatting rule, 496data validation feature
accepting dates by day of week, 577accepting larger values than previous cell, 576accepting nonduplicate entries only, 576–577accepting only values that don’t exceed total, 578accepting text only, 576accepting text that begins with specific characters,
577creating dependent lists, 578–579overview, 574
editing, 209entering into worksheets
inserting functions, 206–208manually, 203
60_474877-bindex.indd 97560_474877-bindex.indd 975 3/29/10 11:48 PM3/29/10 11:48 PM
976
Index
Formulas optiondefined, 85Go to Special dialog box, 75, 661Paste Special dialog box, 87
Formulas tabExcel Options dialog box, 665–666, 764Function Library group, 206
For-Next looplooping through ranges, 891modifying chart properties, 898VBA macros, 818
Fourier Analysis tool, Analysis ToolPak add-in, 787Fraction format category, 554Fraction format, Format Cells dialog box, 46–47fractions
displaying, 564–565entering numbers with, 40
Frame control, 844free-floating text, 445FreeForm Shape, 519, 523freeware programs, 934Freeze First Column option, 63Freeze Panes option, 63Freeze Top Row option, 63freezing panes, 62–64frequency distributions
creating, 722–724FREQUENCY function, 294–295using a pivot table, 298–299using formulas, 296–297using the Analysis ToolPak, 297–298
frequency distribution.xlsx sample file, 937FREQUENCY function
arrays and, 371counting formulas, 294–295function of, 930overview, 282
Frontline Systems company, 775FTEST function, 918F.TEST function, 930F-Test tool, Analysis ToolPak add-in, 786–787Full Screen mode, Quick Access toolbar, 541Function Arguments dialog box
displaying, 208inserting custom function, 835–836inserting functions into formulas, 206specifying arguments, 825
Function drop-down list, Consolidate dialog box, 600Function keys, 954–955Function Library group, 206
formulas, lookup (continued)determining cell address of values within range, 326determining letter grades for test scores, 322exact values, 318–319HLOOKUP function, 313–314looking up values by using closest match, 327–328looking up values from multiple lookup tables, 321LOOKUP function, 314–315lookup relevant functions, 310–312overview, 309–310performing two-way lookup, 323–326values to left, 319–320VLOOKUP function, 312–313
making exact copies of, 227–228naming techniques
applying names to existing references, 226names for constants, 222–223names for formulas, 223–224range intersections, 224–226
overview, 30–31, 195–196, 281–282selecting array formula range, 364summing
all cells in a range, 299–300computing a cumulative sum, 300–302“top n” values, 302worksheet cells, 281–283
syntax of, linking workbooks, 590–591that use functions, 200–201transforming data, 240using cell references
changing types of, 212from other workbooks, 213–214from other worksheets, 212–213overview, 209–210relative, absolute, and mixed, 210–212
using custom functions, 828using functions in, 199–202using in tables
referencing data, 217–218summarizing data, 214–216within a table, 216–217
using operators inoperator precedence, 197–199overview, 196–199
valuesconverting to, 228hard-code, 227
viewing using Excel Auditing tools, 662–663Formulas & Number Formatting option, 85, 88
60_474877-bindex.indd 97660_474877-bindex.indd 976 3/29/10 11:48 PM3/29/10 11:48 PM
977
Index
fv function argument, 331FVSCHEDULE function, 923
GGAMMADIST function, 918GAMMA.DIST function, 930GAMMAINV function, 918GAMMA.INV function, 930GAMMALN function, 930GAMMALN.PRECISE function, 930Gantt charts, 476–477gantt chart.xlsx sample file, 938Gaps option, 461–462gauge charts, 473–474gauge chart.xlsx sample file, 938GCD function, 927general array formula type, 374General format, Format Cells dialog box, 46General horizontal alignment option, Format Cells dialog
box, 122General number format category, 551, 554, 703General Options dialog box, 643GEOMEAN function, 930GESTEP function, 922GETPIVOTDATA function, 734–735, 926Go To dialog box, 501Go to Special dialog box
Dependents option, 665identifying cells, 661Precedents option, 664selecting special types of cells, 74–76
Goal Seek tool, 761–764grade-point averages, 322–323Grand Total display
defined, 704using calculated items in pivot table, 729
graphic object, exporting, 525graphics
conditional formats usingcolor scale, 487–490data bars, 485–487icon sets, 490–494
inserting, 532–533overview, 531
graphs. See chartsGreater than 10 conditional formatting rule, 481GRG Nonlinear tab, Solver Options dialog box, 770–771gridlines, charts, 448Group mode, 73–74
function plot 2D.xlsx sample file, 938function plot 3D.xlsm sample file, 938Function procedure, 800functions
custom worksheetdebugging, 833–834example of, 824–826function procedure arguments, 828–833function procedures, 826–828inserting, 834–836VBA functions, 823
dateage calculation, 265–266converting nondate string to date, 261–262current date, 259date of most recent Sunday, 267date’s quarter, 271day of week, 267day of year, 266–267displaying date, 259–260first day of week after a date, 267–268generating series of dates, 260–261holiday dates, 268–271last day of month, 271leap year, 271nth occurrence of day of week in month, 268number of days between dates, 262number of work days dates, 263–264number of years between dates, 265offsetting dates using only work days, 264overview, 258
defined, 801time
adding hours, minutes, or seconds, 278calculating difference between times, 274–275converting decimal hours, minutes, or seconds,
277–278converting from military time, 277displaying any time, 273displaying current time, 272–273non–time-of-day values, 279–280rounding time values, 279summing times that exceed 24 hours, 275–277
using in worksheets, 824–825using with arrays, 369
Future Value (FV), defined, 330FV function
calculating compound interest, 347calculating final investment amounts, 345function of, 923
60_474877-bindex.indd 97760_474877-bindex.indd 977 3/29/10 11:48 PM3/29/10 11:48 PM
978
Index
Microsoft Office Home page, 944–945options, 944
HEX2BIN function, 922HEX2DEC function, 922HEX2OCT function, 922Hidden and Empty Cell Settings dialog box, 461, 508hidden data, Sparkline graphics, 508hiding
comments, 97rows and columns, 66–67worksheets, 57–58
High Point option, Sparklines, 509Highlight Changes dialog box, 633–634Histogram tool, Analysis ToolPak add-in, 297–298, 787–788histograms, 237–238, 475–476HLOOKUP function, 311, 313–314, 327, 926holidays
Christmas Day, 271Columbus Day, 270Easter, 270Independence Day, 270Labor Day, 270Martin Luther King, Jr. Day, 269Memorial Day, 270New Year’s Day, 269overview, 268–269Presidents’ Day, 269Thanksgiving Day, 271Veterans Day, 270
holidays.xlsx sample file, 936Home Tab option, 544Home tab, Ribbon, 11–12, 116, 120horizontal alignment options, 122–123Horizontal Axis Crosses setting, 450–451horizontal page-break line, 181Horizontal scrollbar, 6–7hot key, 19, 856HOUR function, 272, 920hourly readings.xlsx sample file, 940hours, decimal, 277–278HTML (HyperText Markup Language), 605–609HTML Format paste option, Paste Special dialog box, 619hundreds, displaying values in, 561HYPERLINK function, 926hyperlinks
copying data from Excel to Word, 617inserting, 610–611pasting, 620–622selecting, 611
HyperText Markup Language (HTML), 605–609
groupingautomatically, 719–722manually, 717–722Shape images, 522
Grouping dialog box, 717, 720GroupName property, 869groups
customizing on Ribbon, 546–547pivot table, defined, 704
GROWTH function, 371, 930
Hhands-on example.xlsx sample file, 938hard drive, backing up, 157hard-code values, 227, 746–747HARMEAN function, 930hash mark (#) character, 67, 218hash mark filled cells, 651HasLegend property, 898Header Row, 110Header Row check box, 107Header/Footer tab, Page Setup dialog box, 185headers and footers
element codes, 186–187options, 187overview, 185–186predefined, 186
Height property, 864Help button, 6–7Help on This Function link, 206Help option, 592help resources
Help system, 943Internet newsgroups
accessing by newsreaders, 945accessing by Web browsers, 945–946searching, 946–947
Internet Web sitescontextures, 948daily dose of Excel, 948David McRitchie’s Excel Pages, 948Jon Peltier’s Excel page, 948Mr. Excel, 948Pearson Software Consulting, 948Pointy Haired Dilbert, 948spreadsheet page, 947
Microsoft technical supportMicrosoft Excel home page, 944Microsoft Knowledge Base, 944
60_474877-bindex.indd 97860_474877-bindex.indd 978 3/29/10 11:48 PM3/29/10 11:48 PM
979
Index
Import Data dialog box, 687Import/Export button, 545importing, 679–680. See also external database file dataIMPOWER function, 922IMPRODUCT function, 922IMREAL function, 922IMSIN function, 922IMSQRT function, 922IMSUB function, 922IMSUM function, 922Include in Personal View settings, 633income and expense.xlsx sample file, 940incomplete calculation error, 650incorrect reference error, 649Increase Decimal Places button, Ribbon, 44, 553, 560Increase Font Size button, Ribbon, 14Indent setting, 123Independence Day, date functions, 270independent variables, 791INDEX function
arrays, 363function of, 926general discussion, 316–318Lookup formulas, 311multiple forms, 208returning longest text in range, 385
indirect cell dependent, 663indirect cell precedent, 663INDIRECT function, 328, 371, 926INFO function, 925Info options
Compatibility Mode section, 154Permissions section, 154–155Prepare for Sharing section, 155–156Security Warning section, 153–154Versions section, 156
informationreplacing, 670searching for, 669–670
Information Category Functions, 925Information Rights Management (IRM), 638Input Message tab, Data Validation dialog box, 571Input X Range option, Regression dialog box, 791InputBox function, 838–839, 893Insert Calculated Field dialog box, 727Insert Calculated Item dialog box, 729Insert Chart Dialog box, 470Insert Columns option, Protect Sheet dialog box, 640Insert dialog box, 65–66
HYPGEOMDIST function, 918HYPGEOM.DIST function, 930hypocycloid curve, 427
IIcon Set conditional formatting rule, 482icon set examples.xlsx sample file, 939Icon Sets command, Conditional Formatting drop-down
list, 483identical strings, 233–234IE (Internet Explorer), 609IF function
#DIV/0! errors, 654error values, 380formulas using, 200function of, 925hiding cumulative sums for missing data, 301Lookup formulas, 311–312returning location of maximum value in range, 384
If statement, 894IFERROR function
#DIV/0! errors, 654compatibility with older versions, 394extracting first word of string, 244–245function of, 925modified version, 380overview, 311testing for error results, 319
If-Then construct, VBA macros, 818Ignore All button, Spelling dialog box, 672Ignore Blank check box, Data Validation dialog box, 572Ignore Error option, 666Ignore Integer Constraints option, Solver Options dialog
box, 771Ignore Once button, Spelling dialog box, 672Ignore Print Areas check box, 178IMABS function, 922Image control, ActiveX, 844, 861, 868Image editing enhancements, 4IMAGINARY function, 922IMARGUMENT function, 922IMCONJUGATE function, 922IMCOS function, 922IMDIV function, 922IMEXP function, 922IMLN function, 922IMLOG10 function, 922IMLOG2 function, 922Import Customization File option, 546
60_474877-bindex.indd 97960_474877-bindex.indd 979 3/29/10 11:48 PM3/29/10 11:48 PM
980
Index
Web sitescontextures, 948daily dose of Excel, 948David McRitchie’s Excel Pages, 948Jon Peltier’s Excel Page, 948Mr. Excel, 948Pearson Software Consulting, 948Pointy Haired Dilbert, 948spreadsheet page, 947
Internet Explorer (IE), 609intersection operator, 224Interval between Labels setting, 453–454INTRATE function, 923investment calculations
future value of series of deposits, 348–350future value of single deposit
compound interest, 344–346interest with continuous compounding, 346–348simple interest, 343–344
investment calculations.xlsx sample file, 937investment portfolio, optimizing, 778–779investment portfolio.xlsx sample file, 941invisible digital signature, 647IPMT function, 332, 923IrfanView, 531IRM (Information Rights Management), 638IRR function, 655, 923irregular payment, calculating, 341–343irregular payments.xlsx sample file, 937ISBLANK function, 925ISERR function, 286, 925ISERROR function, 286, 925ISEVEN function, 925ISLOGICAL function, 925ISNA function, 286, 925ISNONTEXT function, 285, 925ISNUMBER function, 925ISO.CEILING function, 927ISODD function, 925ISPMT function, 923ISREF function, 925ISTEXT function, 925item, pivot table, 705Iterations option, Solver Options dialog box, 771
JJelen, Bill, 948jogging log.xlsx sample file, 936
Insert Function dialog boxcustom functions, 834–835overview, 202Search for a Function field, 207tips, 208
Insert Hyperlink dialog box, 610Insert Hyperlinks option, Protect Sheet dialog box, 640Insert Picture dialog box, 532Insert Rows option, Protect Sheet dialog box, 640Insert Shapes command, 6–7, 521Insert shortcut menu, 106Insert tab, Ribbon, 11Insert Worksheet control, 54inserting
custom worksheet functions, 834–836rows and columns, 65–66WordArt graphic on worksheet, 530
Inspect Document command, Info pane, 155inspecting workbook, 646installing
add-ins, 913Analysis ToolPak add-in, 298, 782Solver add-in, 765
INT function, 927Integer data type, 901integers
generating arrays of, 370–371summing digits of, 386–387
IntegralHeight propertyListBox control, 869TextBox control, 871
INTERCEPT function, 930interest, calculating, 343–348interest rate, 330interface. See user interfaceintermediary links, 597Internet
backup site, 157HTML, 605, 607, 609hyperlinks, 610–611newsgroups
accessing by newsreaders, 945accessing by Web browsers, 945–946searching, 946–947
Web formatscreating HTML files, 607creating single file web pages, 607–609overview, 606
Web queries, 612–613
60_474877-bindex.indd 98060_474877-bindex.indd 980 3/29/10 11:48 PM3/29/10 11:48 PM
981
Index
letter grades for test scores, 322levels, outline, 588Life argument, 351Light style category, tables, 103line chart, 405, 418, 423–424line charts.xlsx sample file, 938Line Sparkline, 504line width, Sparkline graphics, 508linear equations, 771–773linear equations.xlsx sample file, 941lines, worksheet, 128–129LINEST function
function of, 930returning arrays, 371
Link to File check box, Object dialog box, 626Linked Picture (I) option, 86LinkedCell property
CheckBox control, 867ComboBox control, 867defined, 864ListBox control, 869OptionButton control, 869ScrollBar control, 870SpinButton control, 871
linking workbooksexternal reference formulas
changing link source, 595changing startup prompts, 594creating link formulas by pointing, 591creating links to unsaved workbooks, 592link formula syntax, 590–591opening workbook with, 592–594pasting links, 591severing links, 595updating links, 594–595
overview, 589–590problem avoidance
intermediary links, 597modifying source workbooks, 596–597overview, 595renaming or moving source workbooks, 596using Save As command, 596
Links dialog box, 621–622list formulas.xlsm sample file, 941List option, Data Validation dialog box, 571ListBox control, ActiveX, 844, 861, 868–869ListFillRange property
ComboBox control, 867defined, 864ListBox control, 869
Jon Peltier’s Excel Page, 948Justify horizontal alignment option, Format Cells dialog
box, 123Justify vertical alignment option, Format Cells dialog box, 124
KKeep Source Column Width (W) option, 85Keep Source Formatting (K) option, 85key field, 678keyboard
accessing Ribbon via, 15–16navigating with, 9–10selecting chart elements, 438–439
keyboard shortcuts, 587. See also shortcut keyskeytips pop-up, 15–16KURT function, 930Kusleika, Dick, 948
LLabel control, ActiveX, 844, 861, 868Label Options tab, Format Data Labels dialog box, 460Labor Day, date functions, 270landscape orientation, 179Language tab, Excel Options dialog box, 127LARGE function
function of, 930with range argument, 832summing values, 381
LargeChange property, 870Last Cell option, Go to Special dialog box, 76Last Column check box, 107Last Custom Setting, Page Layout view, 180Last Point option, Sparklines, 509Layout contextual tab, 13layouts
of charts, 409–411of SmartArt diagram, 528
LCM function, 927leap year, 255–256, 271Left arrow key, 10Left Column check box, Consolidate dialog box, 602LEFT function
extracting characters from string, 240–241function of, 932
Left horizontal alignment option, Format Cells dialog box, 122Left property, 864legend, chart, 407, 439, 442, 446–448LEN function
counting characters in string, 239function of, 932
60_474877-bindex.indd 98160_474877-bindex.indd 981 3/29/10 11:48 PM3/29/10 11:48 PM
982
Index
determining letter grades for test scores, 322exact values, 318–319HLOOKUP function, 313–314looking up values by using closest match, 327–328looking up values from multiple lookup tables, 321LOOKUP function, 314–315lookup relevant functions, 310–312overview, 309–310performing two-way lookup, 323–326values to left, 319–320VLOOKUP function, 312–313
LOOKUP function#N/A error, 655function of, 926general discussion, 314–315Lookup formulas, 311
lookup_array argument, MATCH function, 316lookup_value argument
HLOOKUP function, 314LOOKUP function, 315MATCH function, 316VLOOKUP function, 312
lookup_vector argument, LOOKUP function, 315Lotus worksheet file, 255Low Point option, Sparklines, 509LOWER function
changing text case, 239function of, 932
MMacro Name option, Record Macro dialog box, 802Macro Options dialog box, 810Macro recorder indicator, 6–7Macro Settings section, Trust Center dialog box, 797macros. See also Visual Basic for Applications (VBA) macros
creating, 864–866defined, 795, 801making available from worksheet button, 855making available on Quick Access toolbar, 855–856overview, 795–796
Macros option, Choose Commands From drop-down list, 544–545
Main Tabs, Customize Ribbon drop-down list, 548major gridlines, 448Major Tick Mark option, 451malware, 145Manage Rules command, Conditional Formatting drop-down
list, 483
ListFormulas macro, 820ListRows property, ComboBox control, 867list-separator character, 202ListStyle property
ComboBox control, 867ListBox control, 869
live preview, 132, 137LN function, 927loan amortization schedule.xlsx sample file, 937loan calculations
amortization schedule, 337–338credit card payments, 334–336data tables
one-way, 338–340two-way, 340–341
example of, 333–334IPMT function, 332irregular payments, 341–343NPER function, 333overview, 330PMT function, 331–332PV function, 333RATE function, 332
loan data tables.xlsx sample file, 937loan payment calculator.xlsx sample file, 935loan payment.xlsx sample file, 935, 937locating functions, 828LOG function, 927log scale.xlsx sample file, 938LOG10 function, 927LOGEST function
function of, 930returning arrays, 371
Logical Category Functions, 925logical error, 649logical values
counting formulas, 286SUM function, 300
LOGINV function, 918LOGNORMDIST function, 918LOGNORM.DIST function, 930LOGNORM.INV function, 930Long data type, 901Look In drop-down list, 78, 669Lookup & Reference Category Functions, 926lookup formulas
calculating grade-point averages, 322–323case-sensitive, 320–321combining MATCH and INDEX functions, 316–318determining cell address of values within range, 326
60_474877-bindex.indd 98260_474877-bindex.indd 982 3/29/10 11:48 PM3/29/10 11:48 PM
983
Index
Merge Across option, 125Merge Cells option, 125Merge command, Ribbon, 14Merge Conditional Formatting (G) option, 86Merge Scenarios dialog box, 758–759merging
cells, 124–125name styles, 134–135scenarios, 758
metadata, 151, 911methods
defined, 801VBA, 814
Microsoft Excel Chart Object paste option, Paste Special dialog box, 619
Microsoft Excel Worksheet Object paste option, Paste Special dialog box, 619
Microsoft Office Graphic Object paste option, Paste Special dialog box, 619, 621
Microsoft Office Online, 161–162Microsoft Query. See Query applicationMicrosoft technical support, 944–945microsoft.public.excel newsgroup, 946microsoft.public.excel.charting newsgroup, 946microsoft.public.excel.interopoledde
newsgroup, 946microsoft.public.excel.macintosh newsgroup, 946microsoft.public.excel.misc newsgroup, 946microsoft.public.excel.newusers newsgroup, 946microsoft.public.excel.printing newsgroup, 946microsoft.public.excel.programming newsgroup,
946microsoft.public.excel.templates newsgroup, 946microsoft.public.excel.worksheet.functions
newsgroup, 946MID function
extracting characters from string, 240–241function of, 932summing integer digits, 386–387
military time, converting, 277millions, displaying values in, 562–563MIME HTML file, 606MIN function
function of, 930gauge charts, 473returning location of maximum value in range, 385
Min propertyScrollBar control, 870SpinButton control, 870
Min summary formula, 108
Manage Versions button, 156Manual Calculation mode, 221Manual item grouping, pivot table, 717manual what-if analysis, 747Manufacturing sheet tab, 73“marching ants” border, 79Margins tab, Page Setup dialog box, 181Mark as Final option, Info pane, 155Marker Color control, Sparklines, 509Markers option, Sparklines, 509Martin Luther King, Jr. Day, date functions, 269master workbook, 135Match Case check box
Find and Replace dialog box, 78Find What text box, 669
Match Entire Cell Contents check boxFind and Replace dialog box, 78Find What text box, 669
MATCH functionfunction of, 926general discussion, 316–318Lookup formulas, 311returning longest text in range, 385
Match Style command, 443match_type argument, MATCH function, 316Math & Trig Category Functions, 926–927Math AutoCorrect tab, AutoCorrect dialog box, 674mathematical functions, plotting, 477–479Max Feasible Solutions option, Solver Options dialog box,
771MAX function
formulas using, 200function of, 930returning longest text in range, 385
Max propertyScrollBar control, 870SpinButton control, 871
Max Subproblems option, Solver Options dialog box, 771Max summary formula, 108Max Time option, Solver Options dialog box, 771MAXA function, 930Maximize (Restore) button, 50Maximum Axis Value option, 450MaxLength property, 871MDETERM function, 927MDURATION function, 923MEDIAN function, 930Medium style category, table, 103Memorial Day, date functions, 270Merge & Center control , Ribbon, 125
60_474877-bindex.indd 98360_474877-bindex.indd 983 3/29/10 11:48 PM3/29/10 11:48 PM
984
Index
movingcells and ranges
adjacent cells, 82–83drag-and-drop, 81–82Office Clipboard, 84–85to other sheets, 83overview, 78–79Paste Special dialog box, 87–89pasting, 85–86Ribbon commands, 79–80shortcut keys, 81shortcut menu commands, 80–81
chart elements, 415charts, 414Excel windows, 51tables, 106–107worksheets, 56
Moving Average option, Format Trendline dialog box, 463–464Moving Average tool, Analysis ToolPak add-in, 788–789MP3 audio file, embedding, 623Mr. Excel Web site, 948MROUND function, 927MsgBox function
debugging custom functions, 833general discussion, 839–842
multi-cell array formulas.xlsx sample file, 937multicell arrays
creating array constant from values in ranges, 367creating array from values in ranges, 366–367expanding or contracting, 365–366formulas
displaying calendar, 398–399overview, 356–357returning lists of unique items, 396–398returning nonblank cells, 394–395returning only positive values, 394reversing order of cells, 395–396sorting range of values dynamically, 396
generating array of consecutive integers, 370–371performing operations on arrays, 368transposing array, 369–370using functions with array, 369
MultiLine property, 872MULTINOMIAL function, 927MultiPage control, 844multiple copies, printing, 180multiple criteria counting.xlsx sample file, 937multiple database tables, 692–693multiple formatted worksheet, 170multiple windows, worksheet, 60–61
MINA function, 930Mini toolbar, 17, 116–118, 439, 442Minimize button, 50Minimize Ribbon button, 6–7, 12minor gridlines, 448Minor Tick Mark option, 451MINUTE function, 272, 921minutes, decimal
adding to a time, 278converting to a time, 277–278
MINVERSE functionfunction of, 927returning arrays, 371
MIRR function, 924mismatched parentheses, formula, 199missing data, charts, 461mixed references, 210–212, 300MMULT function
function of, 927returning arrays, 371
MOD functiondisplaying alternate-row shading, 497–498function of, 927summing nth values in range, 389
modal dialog box, 19MODE function
counting frequently occurring entries, 291function of, 918
modeless dialog box, 19MODE.MULT function, 930MODE.SNGL function, 930Modify Table Quick Style dialog box, 105Module1 code module, 909monitor a range.xlsm sample file, 942Month argument, 351MONTH function, 258, 921More Controls option, Activex, 861More Functions summary formula, 108mortgage loan data table.xlsx sample file, 941mortgage loan.xlsx sample file, 940–941Most Likely scenario, Scenario Manager, 755mouse
navigating worksheets with, 10selecting chart element with, 438–439
Move and Size with Cells option, 520Move But Don’t Size with Cells option, 520Move Chart dialog box, 406, 414Move Down button, Ribbon, 549Move or Copy dialog box, 56Move Up button, Ribbon, 549
60_474877-bindex.indd 98460_474877-bindex.indd 984 3/29/10 11:48 PM3/29/10 11:48 PM
985
Index
NEGBINOMDIST function, 918NEGBINOM.DIST function, 930nesting parentheses in formulas, 198network server, 157NETWORKDAYS function, 258, 263, 921NETWORKDAYS.INTL function, 201, 258, 921networks, 627New button, Customize Quick Access Toolbar, 42New Data Source option, Choose Data Source dialog box, 682New dialog box, 165New Formatting Rule dialog box
customizing color scale, 489Edit Rule button, 491–492overview, 484–485
New from Existing option, Available Templates screen, 169New Group button, Ribbon, 549New Name dialog box
creating arrays, 362–363creating names for cells and ranges, 91formulas, 223overview, 90–91Refers To box, 212Refers To field, 224
New page, Backstage view, 162New Rule command, Conditional Formatting drop-down list,
483New Tab button, Ribbon, 549New Table Quick Style dialog box, 103–104New Web Query dialog box, 612–613New Year’s Day, date functions, 269newsgroups
accessing by newsreaders, 945accessing by Web browsers, 945–946searching, 946–947
NewSheet event, 876, 878newsreaders, 9451900 date system, 2501904 date system, 250No Borders (B) option, 85No Cell Icon, Edit Formatting Rule dialog box, 493–494No cells were found message, 74No Comments or Indicators option, 95No Switch argument, 351NOMINAL function, 924nonblank cells
counting, 285returning from ranges, 394–395
nondate, 250None summary formula, 108nonformula cells, unlocking, 169
MultiSelect property, 869multiuser application, 628music list.xlsx sample file, 940My Templates icon, Available Template screen, 165
NN function, 925#N/A error, 219, 360, 654–655NA function, 925Name box
Excel screen, 6–7ranges, 70
#NAME? error, 219, 655Name Manager dialog box
Filter button, 660overview, 93
Name property, 864Name text field, New Name dialog box, 91named constant, 223named styles
applying, 132–133controlling with templates, 135creating, 134merging from other workbooks, 134–135modifying, 133overview, 131
namesapplying to existing references, 226assigning to cells and ranges
Create Names from Selection dialog box, 91–92creating names, 90–92managing, 92–94Name box, 91New Name dialog box, 90–91overview, 89–90
removing titles from, 247using for constants, 222–223using for formulas, 223–224of worksheets, changing, 54–55
Names object, 815naming array constants, 362–363Narrow setting, Page Layout view, 180navigating tables, 105navigation keys, 9–10, 32, 37, 439negation operator, 658Negative Points option, Sparklines, 509negative signs, 565–566negative times, 274–275negative values, formula, 303–304
60_474877-bindex.indd 98560_474877-bindex.indd 985 3/29/10 11:48 PM3/29/10 11:48 PM
986
Index
examples ofdates and times, 566filling cells with repeating characters, 568fractions, 564–565leading zeros, 564negative signs on right, 565–566scaling values, 560–563suppressing entry types, 567text with numbers, 566–567
Format Cells dialog box, 45–47, 554–555overview, 42–43, 551–552Ribbon interface, 44, 552–553shortcut keys, 45, 553
number formatting.xlsx sample file, 935Number of Pages button, 186Number of Random Numbers option, Random Number
Generation dialog box, 790Number of Variables option, Random Number Generation
dialog box, 790Number tab, Format Cells dialog box, 45–46, 254–255, 484, 554numbers
with fractions, 40ordinal, 247–248padding, 238–239serial
dates, 249–250times, 252–253
numeric cells, 285numeric values, 30
OObject data type, 901Object dialog box, 622–623Object Linking and Embedding (OLE), 622object references, 900–901object-oriented language, 814objects
creating new in Word, 626defined, 801VBA, 813–815
Objects option, Go to Special dialog box, 75OCT2BIN function, 922ODBC (Open DataBase Connectivity), 678ODD function, 927ODDFPRICE function, 924ODDFYIELD function, 924ODDLPRICE function, 924ODDLYIELD function, 924Office applications. See sharing data with Office applicationsOffice ClipArt, 470–471
non-numeric characterspivot tables, 715–717removing from string, 390
non-object eventsOnKey, 884–885OnTime, 883–884
nonprinting characters, 239nonrelative references, 212nontext cells, 285Normal distribution option, Random Number Generation
dialog box, 790Normal Font check box, 120Normal mode formatting, 440Normal Probability option, Regression dialog box, 791Normal setting, Page Layout view, 180Normal style, cells, 132–133Normal view, workbooks, 662normalized data, 700normalized data.xlsx sample file, 940NORMDIST function, 918NORM.DIST function, 930NORMINV function, 918NORM.INV function, 930NORMSDIST function, 918NORM.S.DIST function, 930NORMSINV function, 918NORM.S.INV function, 930NOT function, 925Notify option, File in Use dialog box, 629NOW function, 201, 258, 272, 829, 921NPER function, 33, 924nper function argument, 331NPV function, 924#NULL! error, 219, 655null hypothesis, 792#NUM! error, 219, 396–397, 655Num Lock key, 9Number Format drop-down control, 25, 44, 552Number format, Format Cells dialog box, 46–47, 554number format string, 556number formats.xlsx sample file, 939number formatting
automatic, 43–44, 552creating
format codes, 558–560overview, 555–557parts of format strings, 557–558
custom, 47–48
60_474877-bindex.indd 98660_474877-bindex.indd 986 3/29/10 11:48 PM3/29/10 11:48 PM
987
Index
Options button, Clipboard task pane, 84Options dialog box. See Excel Options dialog box; Solver
Options dialog boxOr criteria, formulas, 290–291, 306–307OR function, 925order argument, Series formula, 459ordinal numbers, 247–248organizing files, 151–153orientation, chart data, 411Other Charts category, 429–433outliers, 417outline example.xlsx sample file, 939outlines
adding data, 588creating, 584–587displaying levels, 587hiding symbols, 588overview, 581–584removing, 588
outputAnalysis ToolPak add-in, 783Descriptive Statistics tool, 785–786F-Test tool, 786–787Histogram tool, 787–788paired t-Test dialog box, 792
overridingpositioning of category axis, 452time-based category axis, 454–455
Ppadding numbers, 238–239Page Break Preview, 172page breaks, 173, 181–182Page Layout tab, Ribbon, 11Page Layout view, 27, 172page margins, printing, 180–181Page Number button, 186page orientation, printing, 179Page Setup dialog box
displaying, 653Header/Footer tab, 185printing comments, 97Sheet tab, 183
page setup settingsadjusting page margins, 180–181background images, 185changing page orientation, 179choosing printers, 178overview, 177–178
Office Clipboardcells and ranges, 84–85copying and pasting, 79–80versus Windows Clipboard, 616
Office Online Templates section, 161OFFSET function
function of, 926Lookup formulas, 311returning last value in column, 392
OLAP (OnLine Analytical Processing) cube, 678OLAP Cubes tab, Choose Data Source dialog box, 682OLE (Object Linking and Embedding), 622On Error Resume Next statement, 878, 885one-dimensional array
horizontal, 360–361storing, 355vertical, 361
one-input data table, 748–750one-way data table, 338–340OnKey event, 884–885OnLine Analytical Processing (OLAP) cube, 678OnTime event, 883–884Open and Repair option, Open dialog box, 146Open as Copy option, Open dialog box, 146Open DataBase Connectivity (ODBC), 678Open dialog box
compared to Save As dialog box, 148displaying, 143Open and Repair option, 146Open as Copy option, 146Open in Browser option, 146Open in Protected View option, 146Open option, 145Open Read-Only option, 145organizing files, 151resizing, 144Windows Vista, 144
Open event, 876–877Open in Browser option, Open dialog box, 146Open in Protected View option, Open dialog box, 146Open option, Open dialog box, 145Open Read-Only option, Open dialog box, 145operand, 219Operation section, Paste Special dialog box, 88operator precedence, 197–199, 657–658operators, 196–197Option Explicit statement, 817OptionButton control, ActiveX, 844, 861, 869options
headers and footers, 187tables, 107
60_474877-bindex.indd 98760_474877-bindex.indd 987 3/29/10 11:48 PM3/29/10 11:48 PM
988
Index
pasting links, 590Path property, 896Patterned distribution option, Random Number Generation
dialog box, 790Payment (PMT), 330PDF (Portable Document Format), 645PDF files, 645–646Pearson, Chip, 948PEARSON function, 930Pearson Software Consulting Web site, 948peer-to-peer network, 628per function argument, 331Percent Style button
Number Fromat drop-down list, 44Ribbon, 553
Percentage error bar, Format Error Bars dialog box, 462–463Percentage format category, 554Percentage format, Format Cells dialog box, 46–47PERCENTILE function, 918PERCENTILE.EXC function, 931PERCENTILE.INC function, 931PERCENTRANK function, 919PERCENTRANK.EXC function, 931PERCENTRANK.INC function, 931period, interest, 330Period argument, 351periodic interest rate, 334periodic sampling, 792Permissions section, Info options, 154–155PERMUT function, 931Personal Macro Workbook, 809–810PgDn key, 10PgUp key, 10“phantom link” errors, 660photo styles.xlsx sample file, 939PI function, 928Pick from Drop-Down List, AutoComplete feature, 39Picture (Enhanced Metafile) paste option, Paste Special dialog
box, 619Picture (GIF) paste option, Paste Special dialog box, 619Picture (JPEG) paste option, Paste Special dialog box, 619Picture (PNG) paste option, Paste Special dialog box, 619Picture (U) option, 86Picture (Windows Metafile) paste option, Paste Special dialog
box, 619Picture button, 187picture charts, 470–471picture charts.xlsx sample file, 938Picture Fill tab, Format dialog box, 470
page breaksinserting, 181–182removing, 182
printingcell gridlines, 183–184multiple copies, 180row and column headers, 185row and column titles, 182–183
scaling printed output, 183specifying
paper size, 179–180what to print, 178–179
Page View buttons, 6–7PageSetup object, 815Paired two-sample for means t-Test, 792panes, worksheets, 62paper size, printing, 179–180Parameters section, Random Number Generation dialog
box, 789parentheses, mismatched, 650–651Pareto option, Histogram tool, 787Password dialog box, 642passwords
to open workbooks, 641–643protecting work, 637specifying, 150–151
Paste (P) option, 85Paste All button, Clipboard task pane, 84Paste button, Paste Special dialog box, 619Paste command, 5Paste Link (N) option, Paste Special dialog box, 86, 89,
619–620Paste Name dialog box, 205–206Paste Options Smart Tag, 617–618Paste preview option, 5Paste Special dialog box
consolidating worksheets, 599copying formatting, 500copying from Excel to Word, 617–620mathematical operations without formulas, 88overview, 87–88skipping blanks, 89transposing a range, 89
Paste Special option, 86PasteSpecial operation, 807pasting
cells and ranges, 85–86linking workbooks, 591with Office application, 616–617undoing, 79
60_474877-bindex.indd 98860_474877-bindex.indd 988 3/29/10 11:48 PM3/29/10 11:48 PM
989
Index
grouping items manually, 717–718non-numeric data, 715–717overview, 695–696, 715–717pivot charts
example of, 736–738overview, 735
producing reports, 742–743referencing cells, 733–735versus worksheet outlines, 584
PivotTable Field List, 702PivotTable Options dialog box, 705PivotTables object, 815PivotTableUpdate event, 880Plot Area, charts, 444–445plotting mathematical functions, 477–479PMT (Payment), 330PMT function
calculating periodic loan payment, 334function of, 331–332, 924
pmt function argument, 331pointer, data entry, 37Pointy Haired Dilbert Web site, 948Poisson distribution option, Random Number Generation
dialog box, 790POISSON function, 919POISSON.DIST function, 931Popular Commands option, Choose Commands From
drop-down list, 544Portable Document Format (PDF), 645portfolios, optimizing investment, 778–779positioning
axis label, 452data label, 461
POWER function, 928PPMT function, 924pre-1900 dates, 256precedents, 664Precedents option, Go to Special dialog box, 76, 664precision, adjusting, 764Precision as Displayed option, Excel Options dialog box, 48Prepare for Sharing section, Info options, 155–156Present Value (PV), 330Presidents’ Day, date functions, 269Preview box, Page Setup dialog box, 180Preview Now button, Query Wizard, 684PRICE function, 924PRICEDISC function, 924PRICEMAT function, 924Print Area setting, 188
Picture propertydefined, 864Image control, 868
pictures and drawingsClip Art task pane, 531–532displaying worksheet background image, 535Equation Editor feature, 535–537graphics files
inserting, 532–533overview, 531
printingchanging layout, 528changing style, 528–529customizing SmartArt feature, 527–528inserting SmartArt feature, 525–526
screenshots, inserting, 533–535Shape images
adding text to, 520aligning and spacing, 523formatting, 520–522grouping, 522inserting, 518–520overview, 517printing, 524reshaping, 523–524
WordArt feature, 530pie charts, 418, 424–426pie charts.xlsx sample file, 938pie of pie chart, 425pivot charts
example of, 736–738overview, 735
pivot tablesappropriate data, 698–700calculated fields, 724–728calculated items, 724–725, 728–731counting formulas, 298–299creating
formatting, 703–705laying out, 702–703modifying, 706–708specifying data, 701specifying location, 701–702
creating frequency distributions, 722–724examples of, 696–698, 708–714, 739–741filtering with slicers, 731–733formatting option, 4grouping items automatically
by date, 719–721by time, 722
60_474877-bindex.indd 98960_474877-bindex.indd 989 3/29/10 11:48 PM3/29/10 11:48 PM
990
Index
procedure argumentsfunction with no argument, 829function with one argument, 829–831function with range argument, 832–833function with two arguments, 831–832overview, 828–829
ProcessCells2 procedure, 892PRODUCT function, 928production model.xlsx sample file, 941Project Properties dialog box, 912project tracking, 630Project window, VB Editor, 804prompt element
InputBox function, 838MsgBox function, 839
Proofing tab, AutoCorrect feature, 40proper case, macro, 838PROPER function, 200, 239–240, 932properties
adjusting, UserForm controls, 862–864VBA macros, 815–817
Properties dialog box, 178Properties tab, Format dialog box, 189Properties window, 845, 863property
defined, 801VBA, 814
Protect Current Sheet command, Info pane, 155Protect Sheet dialog box, 19–20, 638Protect Workbook button, 150, 154–155Protect Workbook dialog box, 57, 644Protect Workbook Structure command, Info pan, 155Protected View mode, 5, 145protection. See also passwords
digital signaturesgetting digital ID, 647overview, 646–647signing workbooks, 647–648
Information Rights Management (IRM), 638inspecting workbooks, 646marking workbooks as final, 646of projects using custom add-ins, 911–912safeguarding work, 157saving worksheet as PDF file, 645–646types of, 637VB Projects, 644–645workbooks
protecting structures, 643–644protecting windows, 644requiring passwords to open, 641–643
Print button, Page Layout mode, 28Print Preview, 173Print tab, Backstage view, 179Print Titles setting, 188printing
cell comments, 96–97charts, 416–417copying settings to other sheets, 188Custom Views of worksheet, 190–191headers and footers
element codes, 186–187options, 187overview, 185predefined, 186
one click, 171–172page setup settings
adjusting page margins, 180–181background images, 185changing page orientation, 179choosing printer, 178overview, 177–178page breaks, inserting, 181–182page breaks, removing, 182printing cell gridlines, 183–184printing multiple copies, 180printing row and column headers, 185printing row and column titles, 182–183scaling printed output, 183specifying paper size, 179–180specifying what to print, 178–179
page viewNormal view, 173–174overview, 172–173Page Break Preview mode, 175–176Page Layout view, 174–175
pictures and drawingschanging layout, 528changing style, 528–529customizing SmartArt feature, 527–528inserting SmartArt feature, 525–526overview, 525–526
preventing certain cells from being printed, 188–189preventing objects from being printed, 189Shape images, 524
Private keyword, 834PROB function, 931procedure
defined, 801VBA module, 799, 813
60_474877-bindex.indd 99060_474877-bindex.indd 990 3/29/10 11:48 PM3/29/10 11:48 PM
991
Index
customizingadding new commands, 543–545overview, 17–19, 541–542
making macros available on, 855–856overview, 6–7
Quick Access Toolbar tab, Excel Options dialog box, 543–544
Quick Print icon, 171QUOTIENT function, 928
Rradar charts, 419, 430–432radar charts.xlsx sample file, 938RADIANS function, 928RAND function, 829, 928RANDBETWEEN function, 228, 928Random Number Generation dialog box, 789–790Random Number Generation tool, Analysis ToolPak add-in,
789–790random sampling, 792Random Seed field, Random Number Generation dialog box,
790range argument
COUNTIF function, 287SUMIF function, 302
range copy.xlsm sample file, 942range move.xlsm sample file, 942Range object, 816range_lookup argument
HLOOKUP function, 314VLOOKUP function, 312
rangesadjusting external properties, 688–689appropriate for pivot tables, 700converting from table to, 113copying or moving
adjacent cells, 82–83copying to other sheets, 83drag-and-drop, 81–82Office Clipboard, 84–85overview, 78–79, 888–889, 891Paste Special dialog box, 87–89pasting, 85–86Ribbon commands, 79–80shortcut keys, 81shortcut menu commands, 80–81
copying variable-size, 889counting characters in, 371–372counting differences between, 384
worksheetsassigning user permissions, 641overview, 638sheet protection options, 640unlocking cells, 639–640
Protection optionAdd Scenario dialog box, 756Style dialog box, 134
Protection tab, Format Cells dialog box, 639Publish as PDF Or XPS dialog box, 645Publish to Excel Services option, 614pushpin icon, 144PV (Present Value), 330PV function
function of, 924overview, 333
Qquarters, determining, 271QUARTILE function, 919QUARTILE.EXC function, 931QUARTILE.INC function, 931Queries tab, Choose Data Source dialog box, 682query, defined, 678Query application
data returnedadjusting external data range properties, 688–689changing, 690deleting, 690refreshing, 689–690
database files, 681overview, 680Query Wizard
choosing columns, 684–685filtering data, 685–686Finish step, 686–687sort order, 686
selecting data source, 682–684specifying location for data, 687–688using without Wizard
adding and editing records in external database tables, 693
creating query manually, 690–692formatting data, 693using multiple database tables, 692–693
question mark (?) wildcard character, 77, 242Quick Access toolbar
adding Camera tool to, 535adding command, 41
60_474877-bindex.indd 99160_474877-bindex.indd 991 3/29/10 11:48 PM3/29/10 11:48 PM
992
Index
reading comments, cells, 96ReadMe file, 942read-only permission, 628read-only property, 815–816Read-Only Recommended check box, General Options dialog
box, 643real estate table.xlsx sample file, 935rearranging
Quick Access toolbar icons, 545worksheets, 56–57
RECEIVED function, 924Recent Workbooks list, 143Record Macro dialog box, 802–803, 809recording VBA macros
absolute versus relative, 808–809assigning to buttons, 810–811assigning to shortcut keys, 810basics, 802–803editing, 805examining, 804–805, 806–807example of, 803, 806re-recording, 807–808running, 806storing in Personal Macro Workbook, 809–810testing, 805, 808
recordsadding in external database tables, 693defined, 678
Recover Draft Versions command, 149, 156recovering
unsaved work, 149–150versions of current workbooks, 149
Redo tool, Quick Access toolbar, 542#REF! error value, 219, 656RefEdit control, 844reference lines, faking, 510–512reference operators, range, 225Reference text box, Consolidate dialog box, 600referencing
cells within pivot tables, 733–735data in tables, 217–218
Refers To field, New Name dialog box, 91, 212, 224refreshing
consolidating worksheets, 604defined, 678pivot table, 705queries, 689–690Web query, 612
region1.xlsx sample file, 939region2.xlsx sample file, 939
ranges (continued)counting error values in, 380–381determining whether contains valid values, 386displaying calendar, 398–399finding row of value’s nth occurrence, 385intersections, 224–226looping through, 891–893naming
Create Names from Selection dialog box, 91–92creating names, 90–92managing, 92–94Name box, 91New Name dialog box, 90–91overview, 89–90pasting into formulas, 205–206
outline dragging, charts, 457–458picture effects, 534returning lists of unique items, 396–398returning locations of maximum values, 384–385returning longest text, 385returning nonblank cells from, 394–395sorting dynamically, 396summing smallest values in, 372–373summing the n largest values in, 381versus table, 101using references instead of arrays, 376–377VBA macros
copying ranges, 888–889copying variable-size ranges, 889counting selected cells, 895–896determining type of selections, 893–894identifying multiple selections, 895looping through ranges, 891–893moving ranges, 891overview, 887–888prompting for cell values, 893selecting rows or columns, 890–891selecting to end of rows or columns, 890
Rank and Percentile tool, Analysis ToolPak add-in, 790RANK function
function of, 919overview, 392–393
RANK.AVG function, 931RANK.EQ function, 931RATE function
#NUM! error, 655calculating loan information, 332function of, 924
rate function argument, 331Read Only option, File in Use dialog box, 629
60_474877-bindex.indd 99260_474877-bindex.indd 992 3/29/10 11:48 PM3/29/10 11:48 PM
993
Index
result_vector argument, LOOKUP function, 315returning errors, 653reverse pivot table, 731reverse pivot.xlsm sample file, 940reversing actions, 19reversing order of cells, 395–396Review tab, Ribbon, 11RGB components, chart, 430–432Ribbon feature
Accounting Number Format button, 553active chart sheets, 406charts, 442Comma Style button, 553copying ranges, 79–80customizing, 5, 546–549Decrease Decimal button, 553Home tab, 120interface
accessing using keyboard, 15–16command types, 13–15contextual tabs, 13tabs, 11–12
number formatting, 552–553overview, 6–7spinner control, 14–16
Right arrow key, 10RIGHT function, 240–241, 932Right horizontal alignment option, Format Cells dialog box, 123Rights Management Services (RMS), 638ripple effect, 219ROMAN function, 928rotating
Shapes, 523text, 126
ROUND functiondefined, 48floating point number errors, 659function of, 928rounding time values, 279
ROUNDDOWN function, 928ROUNDUP function, 928Row Differences option, Go to Special dialog box, 75ROW function
displaying alternate-row shading, 497–498function of, 926generating array of consecutive integers, 370
Row Input Cell field, Data Table dialog box, 750row labels, pivot table, 705Row numbers, 6–7
region3.xlsx sample file, 940regional settings, data and time, 251Regression dialog box, 791Regression tool, Analysis ToolPak add-in, 790–791relational database, 678, 691relative cell reference, 574relative comparisons, 417relative references
formulas and functions, 210–212problems, 657
Remove Duplicates dialog box, 109removing
Quick Access toolbar icons, 545titles from names, 247
Rename button, Ribbon, 549Repeat button, Quick Access toolbar, 18repeating characters, 236–237, 568REPLACE function, 241–242, 932Replace tab, Find and Replace dialog box, 670Replace Text as You Type option, AutoCorrect dialog box,
40, 673replacing
cell contents, 35within strings, 242–243text with other text, 241–242
report production, pivot tables, 742–743Reports section, Solver Results dialog box, 769REPT function, 236–237, 932Reset button, Excel Options dialog box, 547Reset Ignored Errors button, Excel Options dialog box, 666Reset Only Selected Ribbon Tab option, 547Reset to Match Style option, 416resetting
chart formatting, 443custom template default settings, 168Quick Access toolbar icons, 545
reshaping, Shape images, 523–524Residuals option, Regression dialog box, 791resizing
charts, 414Name Manager dialog box, 93Open dialog box, 144Plot Area, 444windows, 51
resource allocation, Solver tool, 776–777Rest All Customizations option, 547Restore (Maximize) button, 50Restrict Permission by People option, Info pane, 155result cells, 759result set, 678
60_474877-bindex.indd 99360_474877-bindex.indd 993 3/29/10 11:48 PM3/29/10 11:48 PM
994
Index
workbookscontaining macros, 798overview, 147–148, 896
worksheets as PDF files, 645–646Scale with Document check box, 187scaling, printed output, 183scaling values
adding zeros, 563hundreds, 561millions, 562–563thousands, 560–561
scatter plots, 426scattergrams, 426Scenario Manager feature
defined, 747defining scenarios, 754–756displaying scenarios, 757generating scenario reports, 758–759merging scenarios, 758modifying scenarios, 758overview, 753–754
Scenario Name field, Add Scenario dialog box, 756Scenario PivotTable, 759Scenario Summary dialog box, 759Scenario Summary report, 759Scenarios drop-down list, 757Scientific format category, 554Scientific format, Format Cells dialog box, 46–47scope, 91Screen capture tool, 4screen updating, 899screenshots, inserting, 533–535ScreenTip button, Insert Hyperlink dialog box, 610scroll box, 10Scroll Lock key, 9ScrollBar control, ActiveX, 844, 861, 869–870scrollbars, 10ScrollBars property, 872Search button, Help system, 943Search drop-down list, 669Search for a Function field, Insert Function dialog box, 207SEARCH function, 242, 932searching
formatting, 670–671information, 669–670newsgroups, 946–947selecting cells by, 76–78within strings, 242
SECOND function, 272, 921seconds, decimal, 277–278
row_index_num argument, HLOOKUP function, 314row_num argument, INDEX function, 316rows and columns
column width, changing, 67–68defined, 99deleting, 66headers, printing, 185height, changing, 67hiding, 66–67inserting, 65–66keeping visible while scrolling, 63returning last value in, 392row height, changing, 67selecting, 890–891selecting entire, 105selecting to end of, 890shading groups of, 498–499tables, 105–106
ROWS function, 926RSQ function, 931RTD function, 926Rule of 72, 347–348rules
conditional formattingmaking, 484–485managing, 499–500
formula-based, 494–499
Ssales by date.xlsx sample file, 940sales by region pivot chart.xlsx sample file, 940Salvage argument, 351Sample box, Format Cells dialog box, 565sample files, CD, 934–942Sampling tool, Analysis ToolPak add-in, 791–792Save As command, linking workbooks, 596Save As dialog box
compared to Open dialog box, 148Save As Type drop-down list, 798saving file for older version of Excel, 159
Save button, Quick Access toolbar, 18, 28Save Chart Template dialog box, 469Save Files in This Format option, Excel Options dialog box, 148Save to SharePoint option, 614Save to SkyDrive option, 614Save tool, Quick Access toolbar, 542saving
custom templates, 170files for use with older versions, 159–160
60_474877-bindex.indd 99460_474877-bindex.indd 994 3/29/10 11:48 PM3/29/10 11:48 PM
995
Index
shape examples.xlsx sample file, 939Shape images
adding hyperlinks, 611adding text to, 520aligning and spacing, 523formatting, 520–522grouping, 522inserting, 518–520overview, 517printing, 524reshaping, 523–524
Share tab, Backstage view, 614Share Workbook dialog box, 631–633SharePoint server, 614sharing data with Office applications
copying and pasting, 615–617copying from Excel to Word
pasting links, 620–622pasting static information, 617–620
embedding objects in worksheetsnon-Word documents, 623overview, 622Word documents, 623
embedding workbooks in Wordcopying, 624–626creating new Excel objects, 626saved workbooks, 626
sharing workbooksadvanced sharing settings
overview, 631–632resolving conflicting changes between users, 632–633tracking changes, 632updating changes, 632
designating workbook as shared, 631overview, 629with yourself, 633
Sheet Name button, 187sheet protection options, 640Sheet settings, custom templates, 170Sheet tab
Excel screen, 6–7Page Setup dialog box, 183
SheetActivate event, 876, 878SheetBeforeDoubleClick event, 876SheetBeforeRightClick event, 876SheetCalculate event, 876SheetChange event, 876SheetDeactivate event, 876SheetFollowHyperlink event, 876sheets, chart, 406–407SheetSelectionChange event, 876
security, 797–798. See also protectionSecurity Warning, macros, 798Security Warning section, Info options, 153–154Select Case construct, Visual Basic for Applications (VBA)
macros, 819select cells.xlsm sample file, 942Select Data Source dialog box
defined, 446locating Access file, 679
Select Locked Cells option, Protect Sheet dialog box, 640Select Objects control, 844Select Unlocked Cells option, Protect Sheet dialog box, 640Select Versions to Show button, Compatibility Checker
dialog box, 158Selected Table printing option, 178selecting
cellscomplete rows and columns, 71multisheet ranges, 72–74noncontiguous ranges, 71–72ranges, 70by searching, 76–78special types, 74–76
comments, 97–98data from charts, 408–409multiple columns, 67parts of tables, 105rows and columns, 890–891
Selection and Visibility task pane, 521selection change event.xlsm sample file, 942Selection option, Excel Options dialog box, 118Selection printing option, 178selection type.xlsm sample file, 942SelectionChange event, 880, 882–883SelectSpecial method, 892semantic error, 650Send Using E-Mail option, 614serial numbers
dates, 249–250times, 252–253
Series formula, charts, 459–460Series Options tab, Format Data Series dialog box, 425, 475Series Overlap value setting, 475series_name argument, Series formula, 459SERIESSUM function, 928Set Precision as Displayed check box, Excel Options dialog
box, 48, 551, 659Settings tab, Data Validation dialog box, 571shading
rows, 497–498worksheet formatting, 127–128
60_474877-bindex.indd 99560_474877-bindex.indd 995 3/29/10 11:48 PM3/29/10 11:48 PM
996
Index
eliminating intermediate formulas, 374–376finding row of value’s nth occurrence, 385overview, 357–358ranking data, 392–393removing non-numeric characters from strings, 390returning last value in columns, 391–392returning last value in rows, 392returning locations of maximum values, 384–385returning longest text, 385summing digits of integers, 386–387summing every nth value, 388–390summing ranges that contain errors, 379–380summing rounded values, 388summing smallest values in ranges, 372–373summing the n largest values, 381using arrays instead of range references, 376–377
single-cell array formulas.xlsx sample file, 937single-cell goal seeking, 762–764Single-factor analysis of variance, 784SINH function, 928six chart types.xlsx sample file, 93864-bit version, 4, 677Size command, 521sizes argument, Series formula, 459sizing cells, Sparkline graphics, 507SKEW function, 931Skip Blanks option, Paste Special dialog box, 89skip blanks while looping.xlsm sample file, 942skipping blanks, Paste Special dialog box, 89SkyDrive, 614slicers, 4, 731–733SLN function, 350, 924SLOPE function, 931SMALL function
function of, 931nth smallest row number, 385summing values, 373
SmallChange propertyScrollBar control, 870SpinButton control, 871
Smart Icon, 38–39Smart Tag
background error-checking, 665–666Convert to Number option, 230defined, 82Stop Automatically Creating Calculated Columns option,
217Smart Tags tab, AutoCorrect dialog box, 674smartart demo xlsx sample file, 939
shipping cost minimization, Solver tool, 773–776shipping costs.xlsx sample file, 941short date format, 251Shortcut Key option, Record Macro dialog box, 802shortcut keys
assigning macros to, 810cells and ranges, 81number formatting, 553overview, 45, 949–955
shortcut menuscommands, cells and ranges, 80–81overview, 16–17
Show All Properties Another option, 151Show All Windows in the Taskbar option, 52Show button, Scenario Manager dialog box, 757Show Display Units Labels option, 451Show Iteration Results option, Solver Options dialog box, 771Show Margins option, Print Preview, 173show message.xlsm sample file, 941Show Mini Toolbar on Selection option, Excel Options dialog
box, 17Show Office Clipboard Automatically check box, 79, 84Show Page Breaks check box, 174Show Values As tab, Value Field Settings dialog box, 707showing comments, cells, 97ShowUserForm procedure, 909Shrink to Fit option, 124shrinking text, worksheet formatting, 124side by side sheets, worksheets, 61Sign dialog box, 647SIGN function, 928Signature Setup dialog box, 647signatures, digital, 647–648signing workbooks, 647–648Simple buttons, Ribbon, 14simple interest, 343–344simultaneous linear equations, Solver tool, 771–773SIN function, 928Single data type, 901Single File Web Page option, Save as Type drop-down list, 607single file web pages, 607–609single-cell array formulas
computing averages that exclude zeros, 381–382counting characters in ranges, 371–372counting differences in two ranges, 384counting error values, 380–381counting text cells in ranges, 373–374determining closest values, 391determining whether particular values appears, 383–384determining whether range contains valid values, 386
60_474877-bindex.indd 99660_474877-bindex.indd 996 3/29/10 11:48 PM3/29/10 11:48 PM
997
Index
overview, 503specifying date axis, 512–513types of, 504–505
special characters, inserting, 233Special format category, 554Special format, Format Cells dialog box, 46–47specialized lookup examples.xlsx sample file, 937spell checking worksheets, 671–672Spelling dialog box, 672SpinButton control, ActiveX, 844, 861, 870–871spinners, 14Split button control, Ribbon, 14splitting worksheet window into panes, 62Spreadsheet Page, Web site, 947SQL (Structured Query Language), 678SQRT function, 928SQRTPI function, 928stacked area chart, 428stacked column chart, 420, 430Standard Deviation error bar, Format Error Bars dialog box,
462–463Standard Errors check box, Moving Average dialog box, 788STANDARDIZE function, 931start_period argument
CUMIPMT function, 332CUMPRINC function, 332depreciation functions, 351
Startup Prompt dialog box, 594static consolidation, 600, 604static information
copying from Excel to Word, 617pasting, 617–620
Statistical Category Functions, 929–932Status bar, 6, 8StdDev summary formula, 108STDEVA function, 931STDEVP function, 919STDEV.P function, 931STDEVPA function, 931STDEV.S function, 931STEYX function, 931stock charts, 433–436stock charts.xlsx sample file, 938Stop Automatically Creating Calculated Columns option,
SmartTag, 217Store Macro In option, Record Macro dialog box, 803StrConv function, 837String data types, 901
SmartArt featurecustomizing, 527–528overview, 525–526
smartart org chart.xlsx sample file, 939smoothing constant, 786Solve button, Solver Parameters dialog box, 768Solver Options dialog box, 770Solver Parameters dialog box, 767Solver Results dialog box, 768–769Solver tool
appropriate problems for, 765defined, 5examples using
allocating resources, 776–777minimizing shipping costs, 773–776optimizing investment portfolios, 778–779overview, 765–769simultaneous linear equations, 771–773
overview, 761, 764, 770–771, 905Sort dialog box, 111–112Sort option, Protect Sheet dialog box, 640sort order, Query Wizard, 686sorting
range of values dynamically, 396tables, 110–112
source application, 615source data, pivot table, 705source workbook
defined, 589modifying, 596–597Save As command, 596
source.xlsx sample file, 940space character errors, 652space operator, 225spacing, Shape images, 523Sparkline chart, 4, 403sparkline examples.xlsx sample file, 939Sparkline graphics
auto-updating, 513creating, 505–507customizing
adjusting axis scaling, 509–510changing colors and line width, 508changing type, 508faking reference lines, 510–512hidden or missing data, 508highlighting certain data points, 509sizing cells, 507
displaying for dynamic ranges, 514–515
60_474877-bindex.indd 99760_474877-bindex.indd 997 3/29/10 11:48 PM3/29/10 11:48 PM
998
Index
function of, 928overview, 282ranges with error values, 379–380single array formula, 358summing all cells in range, 299–300“top n” values, 302
Sum summary formula, 108sum_range argument, 302SUMIF function
arguments, 302function of, 928overview, 282summing values based on date comparison, 305
SUMIFS function, 282, 928Summarize Values By tab, Value Field Settings dialog box, 707summarizing formula data, 214–216summary formulas
consistency, 585Total Row, 108
summingdigits of integers, 386–387every nth value, 388–390formulas
all cells in a range, 299–300computing a cumulative sum, 300–302“top n” values, 302
n largest values in ranges, 381ranges that contain errors, 379–380rounded values, 388smallest values in ranges, 372–373
SUMPRODUCT function, 282, 358–359, 928SUMSQ function, 282, 928SUMX2MY2 function, 282, 928SUMX2PY2 function, 928SUMXMY2 function, 282, 928surface charts, 432–433surface charts.xlsx sample file, 938switching, Excel windows, 52SYD function, 351, 924Symbol dialog box, 233symbols, hiding in ouline, 588Symbols control, Equation Editor, 536Synchronous Scrolling toggle, 61syntax
PMT function, 331PPMT function, 331HLOOKUP function, 314INDEX function, 316LOOKUP function, 314NPER function, 333PV function, 333
stringsconverting from nondate to date, 261–262counting characters in, 239defined, 229extracting all but the first word of, 245extracting characters from, 240–241extracting the first word of, 244extracting the last word of, 244–245number formatting, 557–558removing non-numeric characters from, 390searching and replacing within, 242–243searching within, 242splitting without using formulas, 247
Structured Query Language (SQL), 678Structures control, Equation Editor, 536Style dialog box
modifying named styles, 133Protection option, 134
Style Gallery, 611Style property, ComboBox control, 867Style settings, custom templates, 170styles
charts, 412–413named
applying, 132–133controlling with templates, 135creating, 134merging from other workbooks, 134–135modifying, 133overview, 131
pictures and drawings, 528–529Styles object, 815Sub procedure
debugging custom functions, 834defined, 801general discussion, 799–800writing to display UserForm, 848
SUBSTITUTE functioncounting number of words in cells, 248function of, 932replacing text, 241
substrings, 243–244SUBTOTAL function, 282, 928subtotals, pivot table, 705subtraction operator, 658SUM formula, 371–372SUM function
array constants, 359counting differences in two ranges, 384displaying totals, 498–499
60_474877-bindex.indd 99860_474877-bindex.indd 998 3/29/10 11:48 PM3/29/10 11:48 PM
999
Index
TBILLEQ function, 924TBILLPRICE function, 924TBILLYIELD function, 924TDIST function, 919T.DIST function, 931T.DIST.2T function, 931T.DIST.RT function, 931templates
chart, 469–470creating workbooks from, 162–164custom
changing workbook defaults, 166–167changing worksheet defaults, 167–168editing, 168ideas, 170overview, 165–166resetting default settings, 168saving, 170
modifying, 164–165viewing, 161–162
Templates icon, 470test scores.xlsx sample file, 940testing
custom number format, 565UserForms, 848, 852, 854–855
textadding to Shape images, 520alignment
controlling the direction, 126–127displaying at an angle, 125–126horizontal alignment options, 122–123merging cells, 124–125vertical alignment options, 124wrapping or shrinking, 124
case changing, 239–240counting occurrences of, 292–293counting text cells, 285displaying, 40entering and editing, 32–33entries, 30free-floating, 445number formatting, 566–567replacing with other text, 241–242
text alignment.xlsx sample file, 936Text Axis option, 454Text Category Functions, 932text data, 29–31Text Direction setting, 126Text Filters option, 113Text format category, 554
RATE function, 332Series formula, 459
syntax error, 649system requirements, CD-ROM, 933
TT function, 932Tab list, 6, 8tab order, UserForm, 856–857tab scrolling controls, 53tab split control, 53table and chart.xlsx sample file, 935Table Filter, pivot table, 705table formulas.xlsx sample file, 936table headings, 63Table Style Options group, 107table_array argument
HLOOKUP function, 314VLOOKUP function, 312
tables. See also data tables; Pivot tablesAccess, importing, 679–680changing look of, 103–105converting back to ranges, 113creating, 102–103creating outlines, 585filtering, 112–113formulas within, 216–217moving, 106–107navigating, 105options, setting, 107overview, 99–102parts, selecting, 105referencing data, formulas, 217–218rows and columns
adding, 105–106deleting, 106removing duplicate, 109
selecting entire, 105sorting, 110–112summarizing formula data, 214–216Total Row feature, 107–109
Tables pane, Microsoft Query, 691, 693tabs
changing color, 55–56Ribbon interface, 11–12, 546–547
TabStrip control, 844TAN function, 928TANH function, 928target cells, 765task pane, 22tasks, Query application, 681–682
60_474877-bindex.indd 99960_474877-bindex.indd 999 3/29/10 11:48 PM3/29/10 11:48 PM
1000
Index
themesapplying, 137customizing, 138–139overview, 135–136
thermometer charts, 472–473thermometer chart.xlsx sample file, 938thousands, number formatting, 560–561three products.xlsx sample file, 9413 × 4 array constant, 361–3623-D area chart, 4283-D charts, 464–4653-D clustered column chart, 4213-D data point, surface chart, 4323-D line chart, 423three-dimensional range, 72three-part header, 186tilde (~) character, 78, 242Time category, 254Time format category, 554Time format, Format Cells dialog box, 46–47TIME function, 921time functions
adding hours, minutes, or seconds to a time, 278calculating the difference between times, 274–275converting decimal hours, minutes, or seconds to a time,
277–278converting from military time, 277displaying any time, 273displaying current time, 272–273non–time-of-day values, 279–280rounding time values, 279summing times that exceed 24 hours, 275–277
Time option, Data Validation dialog box, 571time sheet.xlsm sample file, 936time values
entering and editing, 34of money, 329–330rounding, 279
timesdata entering, 42grouping in pivot tables, 722number formatting, 566
TimeStamp procedure, 807–808TIMEVALUE function, 272–273, 884, 921TINV function, 919T.INV function, 931T.INV.2T function, 931title bar, Excel window, 6, 8title element
InputBox function, 838MsgBox function, 839
Text format, Format Cells dialog box, 46–47text formulas
changing case of text, 239–240character codes, 231–233counting
characters in strings, 239number of words, 248occurrences of substrings in cells, 243–244specific characters in cells, 243
creatinghistograms, 237–238ordinal numbers, 247–248
determining identical strings, 233–234displaying
formatted currency values as text, 236formatted values as text, 235–236
extractingall but first word of strings, 245characters from strings, 240–241filename from path specification, 244first word of strings, 244last word of strings, 244–245names, 245–247
joining cells, 234–235overview, 229–230padding numbers, 238–239removing
excess spaces and nonprinting characters, 239titles from names, 247
repeating characters or strings, 236–237replacing text with other text, 241–242searching and replacing within strings, 242–243what is considered text, 229–230
TEXT functiondisplaying formatted values as text, 235–236formatting numbers, 567function of, 932
text functions. See text formulastext histogram.xlsx sample file, 936Text Length option, Data Validation dialog box, 572text string
defined, 229splitting without using formulas, 247
TextAlign property, 872TextBox control, ActiveX, 844, 861, 871–872Texture Fill option, Format dialog box, 470Thanksgiving Day, date functions, 271The Changes Being Saved Win option, Share Workbook
dialog box, 633theme examples.xlsx sample file, 936
60_474877-bindex.indd 100060_474877-bindex.indd 1000 3/29/10 11:48 PM3/29/10 11:48 PM
1001
Index
Two-sample assuming unequal variances t-Test, 792two-way data tables, 340–341two-way lookup, 323–326TYPE function, 925type function argument, 331Type Your Text Here window, SmartArt, 527
UUndo command, Quick Access toolbar, 18–19Undo tool
pasting, 79Quick Access toolbar, 542
Unformatted Text paste option, Paste Special dialog box, 619Unformatted Unicode Text paste option, Paste Special dialog
box, 619Unfreeze Panes option, 63Unhide dialog box, 58unhiding
columns, 67rows, 67worksheets, 57–58
Uniform distribution option, Random Number Generation dialog box, 790
unique values, counting formulas, 293–294unlocking
cells, 639–640nonformula cells, 169
Unmerge Cells option, 125Unprotect Workbook option, 643–644Up arrow key, 10up-bars, 434–435Update Changes settings, Share Workbook dialog box, 632Update Now button, Links dialog box, 621–622Update Values dialog box, 592updating
changes when sharing workbooks, 632links, 594–595Sparklines, 513
UPPER function, 239, 932U.S. English language date format, 249USB drive, 157Use AutoFilter option, Protect Sheet dialog box, 640Use Automatic Scaling option, Solver Options dialog box, 771Use Labels In check boxes, Consolidate dialog box, 601Use PivotTable Reports option, Protect Sheet dialog box, 640Use Relative References control, 809Usenet, 945user interface
creating for add-in macros, 912–913customizations, 546
titlescharts, 445–446removing from names, 247
TODAY function, 258–259, 829, 921ToggleButton
ActiveX control, 872Ribbon, 14
ToggleButton control, 844, 861Tool Tabs, Ribbon, 548Toolbox controls, 844Tools control, Equation Editor, 536Top Bottom Rules command, Conditional Formatting drop-
down list, 483“top n” values, formulas, 302Top property, 864Top Row check box, Consolidate dialog box, 602Top vertical alignment option, Format Cells dialog box, 124Total Row feature, tables, 107–109tracking workbook changes
reviewing, 635turning track changes on and off, 633–635
TRANPOSE function, 390Transition Navigation Keys option, Excel Options dialog
box, 949Transpose (T) option, Paste Special dialog box, 86, 89TRANSPOSE function
arrays, 363function of, 926transposing arrays, 369–370
transposingarrays, 369–370ranges, Paste Special dialog box, 89
TREND function, 371, 931trendlines, charts, 463–464trial and error method, 455TRIM function, 239, 652, 932TRIMMEAN function, 931troubleshooting, 942TRUE function, 925TRUNC function, 928Trust Center dialog box, 797TTEST function, 919T.TEST function, 931t-Test tool, Analysis ToolPak add-in, 792Tufte, Edward, 505two-dimensional array, 355, 361–362Two-factor with replication analysis of variance, 784Two-factor without replication analysis of variance, 784two-input data tables, 750–753Two-sample assuming equal variances t-Test, 792
60_474877-bindex.indd 100160_474877-bindex.indd 1001 3/29/10 11:48 PM3/29/10 11:48 PM
1002
Index
#VALUE! error value, 219, 656Value Field Settings dialog box, 707VALUE function, 932Value property
defined, 864ScrollBar control, 870SpinButton control, 870
valuesactual versus displayed errors, 658–659converting to, 228counting formulas, 286creating array constants from, 367creating arrays from, 366–367custom functions, 826displaying as text, 235–236entering and editing, 32–33formulas, 304–305looking up by using closest match, 327–328looking up from multiple lookup tables, 321lookup formulas, 318–320pie chart, 425returning only positive, 394sorting dynamically, 396summing, 388–390tracing errors with Excel Auditing tools, 665
Values (V) option, Paste Special dialog box, 86, 87Values & Number Formatting (A) option, Paste Special
dialog box, 86, 88Values & Source Formatting (E) option, Paste Special dialog
box, 86Values area, pivot table, 705values argument, Series formula, 459Values in Reverse Order option, 450VAR function, 919Var summary formula, 108variables
declaring types, 901–902Visual Basic for Applications (VBA) macros, 817
Variant data types, 901VARP function, 919VAR.P function, 931VARPA function, 932Vary Colors by Point option, 474VB Projects, protecting, 644–645VBA (Visual Basic for Applications) functions, 800–801, 823VBA (Visual Basic for Applications) macros. See Visual Basic
for Applications macrosvba functions.xlsm sample file, 941vbAbortRetryIgnore constant, MsgBox function, 840vbCritical constant, MsgBox function, 841vbDefaultButton1 constant, MsgBox function, 841
user interface (continued)customizing
Quick Access toolbar, 541–546Ribbon feature, 546–549
modifying, 913user permissions, 641UserForms
accelerator keys, 856ActiveX controls
adding, 843–844, 862adjusting properties, 844–845, 862–863CheckBox, 866–867ComboBox, 867–868CommandButton, 868common properties, 863–864creating macros for, 864–866design mode, 862Image, 868Label, 868linking controls to cells, 864ListBox, 868–869OptionButton, 869overview, 861reasons for using, 859–861ScrollBar, 869–870SpinButton, 870–871TextBox, 871–872ToggleButton, 872
alternatives toInputBox function, 838–839MsgBox function, 839–842
controlling tab order, 856–857defined, 801displaying, 846examples of
creating, 847–848, 850–852creating event-handler procedures, 849, 853–854overview, 846testing, 848, 852, 854–855
handling events, 846macros
making available from worksheet button, 855making available on Quick Access toolbar, 855–856
overview, 837–838, 842–846, 909–910reasons for creating, 837–857
VValidation option, Paste Special dialog box, 88value axis, 407, 448–452
60_474877-bindex.indd 100260_474877-bindex.indd 1002 3/29/10 11:48 PM3/29/10 11:48 PM
1003
Index
overview, 795–796ranges
copying, 888–889copying variable-size, 889counting selected cells, 895–896determining type of selections, 893–894identifying multiple selections, 895looping through, 891–893moving, 891overview, 887–888prompting for cell values, 893selecting rows or columns, 890–891selecting to end of rows or columns, 890
recordingabsolute versus relative, 808–809assigning to buttons, 810–811assigning to shortcut keys, 810basics, 802–803editing, 805examining, 804–807example of, 803, 806re-recording, 807–808running, 806storing in Personal Macro Workbook, 809–810testing, 805, 808
saving with .xlsx file extension, 148saving workbooks
all, 896closing and, 896–897containing macros, 798
security, 797–798speed tips
declaring variable types, 901–902preventing alert messages, 900simplifying object references, 900–901turning off screen updating, 899
Sub procedures, 799–800writing VBA code
entering and editing, 812event-handler procedures, 874–875For-Next loops, 818how VBA works, 812–814If-Then construct, 818macro that can’t be recorded, 819–821methods, 817objects and collections, 814–815overview, 811properties, 815–817Select Case construct, 819variables, 817With-End With construct, 818–819
vbDefaultButton2 constant, MsgBox function, 841vbDefaultButton3 constant, MsgBox function, 841VBE (Visual Basic Editor). See Visual Basic Editor (VBE)VBExclamation constant, MsgBox function, 841vbInformation constant, MsgBox function, 841vbOKCancel constant, MsgBox function, 840vbOKOnly constant, MsgBox function, 840vbQuestion constant, MsgBox function, 841vbRetryCancel constant, MsgBox function, 841vbYesNo constant, MsgBox function, 840vbYesNoCancel constant, MsgBox function, 840VDB function, 351, 924vector-based image, 531Versions section, Info options, 149, 156vertical alignment options, worksheet, 124vertical page break, 181–182vertical scrollbar, 6, 8Veterans Day, date functions, 270View tab, Ribbon, 549views
chart data, 411page
Normal view, 173–174overview, 172–173Page Break Preview mode, 175–176Page Layout view, 174–175
templates, 161–162worksheets
freezing panes, 62–64multiple windows, 60–61overview, 58side by side sheets, 61splitting window into panes, 62Watch Window, 64–65zooming, 59–60
Visible Cells Only option, Go to Special dialog box, 76visible digital signature, 647Visible property, 864Visual Basic Editor (VBE)
creating macros for controls, 864–865defined, 801disabling Mini toolbar, 118Project window, 804sizing and aligning controls, 852window, 798
Visual Basic for Applications (VBA) functions, 800–801, 823Visual Basic for Applications (VBA) macros
chartsapplying formatting, 899modifying properties, 898modifying type, 898
displaying Developer tab, 796–797
60_474877-bindex.indd 100360_474877-bindex.indd 1003 3/29/10 11:48 PM3/29/10 11:48 PM
1004
Index
When File Is Saved setting, Share Workbook dialog box, 632Whole Number option, Data Validation dialog box, 571Wide setting, Page Layout view, 180Width property, 864wildcard characters, 77–78Window Close button, 6, 8Window Maximize/Restore button, 6, 8Window Minimize button, 6, 8WindowActivate event, 876WindowDeactivate event, 876WindowResize event, 876windows
closing, 52–53moving, 51overview, 49–51resizing, 51splitting, 62switching, 52
Windows Clipboard, 79–80, 616Windows Control Panel
adjusting date and time, 42Regional and Language Options, 251specifying two-digit years, 257
Windows object, 814, 815Windows Vista, 144Win/Loss Sparkline
displaying goal achievement, 511overview, 504
With-End With construct, VBA macros, 818–819Within drop-down list, 669Word documents
copying from Excel, 617–622embedding, 624–626
wordart examples.xlsx sample file, 939WordArt feature, 530WordArt Styles command, 521Words that contain X conditional formatting rule, 482WordWrap property, 872work days, date fuctions, 263–264work days.xlsx sample file, 936Workbook Connections dialog box, 689Workbook events, 873workbook file, 5Workbook_BeforeClose procedure, 879Workbook_BeforePrint procedure, 875Workbook_BeforeSave procedure, 878–879Workbook_Open procedure, 876–877, 879workbooks
adding digital signatures, 646changing default number of worksheets, 55closing, 156
Visual Basic (VB) protection, 637VLOOKUP function
function of, 926general discussion, 312–313looking up values, 327Lookup formulas, 311
WWatch Window
formula results, 747worksheets, 64–65
watermark, 184weather combination chart.xlsx sample file, 938Web formats
HTML files, 607overview, 606single file web pages, 607–609
Web Options dialog box, 608Web pages, 607–609Web queries, 612–613Web sites
contextures, 948daily dose of Excel, 948David McRitchie’s Excel Pages, 948Jon Peltier’s Excellge, 948Mr. Excel, 948Pearson Software Consulting, 948Pointy Haired Dilbert, 948spreadsheet page, 947
webpage.xlsx sample file, 940WEEKDAY function, 258, 267, 577, 921WEEKNUM function, 258, 921WEIBULL function, 919WEIBULL.DIST function, 932What You See Is What You Get (WYSIWYG) mode, 406what-if analysis
creating data tablesone-input, 748–750two-input, 750–753
example of, 745–747goal seeking and Solver tools, 761manual, 747Scenario Manager feature
defining scenarios, 754–756displaying scenarios, 757generating scenario reports, 758–759merging scenarios, 758modifying scenarios, 758overview, 753–754
types of, 747
60_474877-bindex.indd 100460_474877-bindex.indd 1004 3/29/10 11:48 PM3/29/10 11:48 PM
1005
Index
workgroupsfile reservations, 628–629sharing workbooks
advanced sharing settings, 631–633designating workbook as shared, 631overview, 629with yourself, 633
tracking workbook changesreviewing, 635turning track changes on and off, 633–635
using on networks, 627worksheet button, making macros available, 855worksheet controls.xlsm sample file, 941Worksheet events, 873Worksheet_Change procedure, 880worksheets
activating, 53adding to workbook, 54changing sheet tab color, 55–56consolidating
example of, 601–603overview, 597–598refreshing, 604using Consolidate command, 600–601using formulas, 598using Paste Special dialog box, 599
creatingappearance, 25creating charts, 26formatting numbers, 24–25month names, 23printing, 27–28sales data, 23–24saving, 28starting, 22–23summing values, 25–26
custom functionsdebugging, 833–834example of, 824–826function procedure arguments, 828–833function procedures, 826–828inserting, 834–836using in formulas, 828VBA functions, 823
Custom Views of worksheet, printing, 190–191defined, 49deleting, 54entering formulas, 203–205events
BeforeRightClick, 883Change, 880
creatingoverview, 141–143from templates, 162–164
defined, 49embedding when saved, 626events
BeforeClose, 879BeforeSave, 878–879NewSheet, 878Open, 876–877overview, 875–876SheetActivate, 878
inspecting, 646linking
avoiding potential problems, 595–597external reference formulas, 590–595overview, 589–590
marking as final, 646opening
with external reference formulas, 592–594Favorite Links list, 146file display preferences, 147filtering filenames, 146–147overview, 143–146
overview, 5–8protecting
overview, 637requiring passwords to open, 641–643structures, 643–644windows, 644
referencing from, 213–214renaming or moving source, 596saving
containing macros, 798overview, 147–148, 896
setting up, 908sharing
advanced sharing settings, 631–633designating workbook as shared, 631overview, 629with yourself, 633
signing, 647–648source workbooks, 596–597templates, 168testing custom add-ins, 910–911tracking changes in, 633–635VBA macros, 896–897
Workbooks object, 814–815WORKDAY function, 258, 264, 921WORKDAY.INTL function, 201, 258, 921
60_474877-bindex.indd 100560_474877-bindex.indd 1005 3/29/10 11:48 PM3/29/10 11:48 PM
1006
Index
Worksheets object, 815Worst Case scenario, Scenario Manager, 755Wrap Text option, 124wrapping text, worksheet formatting, 124WYSIWYG (What You See Is What You Get) mode, 406
XX icon
Formula bar, 36New Formatting Rule dialog box, 491–492
XDATE demo.xlsm sample file, 936XIRR function, 924XLSA format, 159XLSB format, 159XLSK format, 159XLSM format, 159, 934XLStart folder, 135, 147XLSX format, 159, 934XLTM format, 159XLTX format, 159XML files, 159XNPV function, 924XPS format, 645XY charts, 426–427xy charts.xlsx sample file, 938
YYEAR function, 258, 265, 921YEARFRAC function, 258, 265, 921yearly calendar.xlsx sample file, 937years between dates, calculating, 265YIELD function, 924YIELDDISC function, 924YIELDMAT function, 924
ZZero option, 461–462zeros, 563–564Zip-compressed text files, 159Zoom control, 6, 8Zoom to Page option, Print Preview, 173zooming, worksheets, 59–60ZTEST function, 919Z.TEST function, 932z-Test tool, Analysis ToolPak add-in, 792
worksheets, events (continued)monitoring specific range for changes, 881overview, 879–880SelectionChange, 882–883
formattingbackground images, 130–131borders and lines, 128–129colors and shading, 127–128document themes, 135–139fonts, 119–122named styles, 131–135text alignment, 122–127tools for, 115–119
function references, 917–932hiding/unhiding, 57–58inserting functions into formulas, 206–208naming, 54–55navigating, 9–10, 950overview, 5–10pasting range names into formulas, 205–206protecting
assigning user permissions, 641overview, 637–638sheet protection options, 640unlocking cells, 639–640
rearranging, 56–57referencing from, 212–213rows and columns
changing height, 67–68changing width, 67–68deleting, 66hiding, 66–67inserting, 65–66
saving as PDF file, 645–646spell checking, 671–672views
multiple windows, 60–61overview, 58panes, freezing, 62–64side by side sheets, 61splitting windows into panes, 62Watch Window, 64–65zooming, 59–60
windowsclosing, 52–53moving, 51overview, 49–51resizing, 51switching, 52
60_474877-bindex.indd 100660_474877-bindex.indd 1006 3/29/10 11:48 PM3/29/10 11:48 PM