Index SPECIAL CHARACTERS AND NUMERICS # (hash mark), 220–221, 657 * (asterisk) symbol, 240–241, 590 = (equal sign), formula, 196, 205 3-D area chart, 449 3-D clustered column chart, 441–442 100% stacked column chart, 440–441 1900 date system, 252 1904 date system, 252, 277 A Above average conditional formatting, 504 ABS function, 953 absolute cell references conditional formatting, 516–517 data validation, 598 defined, 211–212 absolute recording, macros, 841 absolute references, 664 accelerator key (hot key), 19, 887 Accelerator property CheckBox control, 897 OptionButton control, 899 Access files, 687 Accessibility Checker task pane, 652–653 Accounting number format, 47, 576 Accounting Number Format button, Ribbon, 575 ACCRINT function, 948 ACCRINTM function, 948 ACOS function, 953 ACOSH function, 953 ACOT function, 953 ACOTH function, 953 Activate event, 906, 909 activating chart, 423 Active cell indicator, Excel screen, 6 active cells, worksheet, 8 active window, 51 ActiveX controls adding to UserForms, 875–876 CheckBox, 896–897 ComboBox, 897–898 CommandButton, 898 defined, 890 Image, 898 ListBox, 898–899 OptionButton, 899 overview, 891 ScrollBar, 900 SpinButton, 901 TextBox, 901–902 ToggleButton, 902 actual values, formula, 665–666 Add a Digital Signature option, Protect Workbook drop-down list, 156 Add button, Consolidate dialog box, 626 Add Constraint dialog box, 800 Add operation, Paste Special dialog box, 624 Add Scenario dialog box, 788 Add to Dictionary option, Spelling dialog box, 680 Add View dialog box, 192 Add-In Manager, 932–933 add-ins. See also Analysis ToolPak Add-In Manager, 932–933 adding descriptive information, 937 creating, 934–935 creating user interface for, 937–938 defined, 931 installing, 939 Module1 code module, 936 My Extended Date Functions add-in, 259 Power Utility Pak add-in, 709 protecting project, 938–939 reasons to convert workbook to, 933–934 saving workbook as, 939 testing workbooks, 937 typical uses for, 931–932 UserForms, 936 Add-Ins dialog box, 932 Add-Ins tab, Ribbon, 11 967 COPYRIGHTED MATERIAL
46
Embed
Index [] · add-ins. See also Analysis ToolPak Add-In Manager, 932–933 adding descriptive information, 937 creating, 934–935 creating user interface for, 937–938 defined, 931
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
IndexSPECIAL CHARACTERS AND NUMERICS# (hash mark), 220–221, 657* (asterisk) symbol, 240–241, 590= (equal sign), formula, 196, 2053-D area chart, 4493-D clustered column chart, 441–442100% stacked column chart, 440–4411900 date system, 2521904 date system, 252, 277
AAbove average conditional formatting, 504ABS function, 953absolute cell references
allocating resources, 809–810appropriate problems for, 797example, 797–798
minimizing shipping costs, 806–809optimizing an investment portfolio, 810–812solving simultaneous linear equations, 804–806
And criterionconditional sums and, 312counting cells based on, 293–295
AND function, 951annual percentage rate (APR), 340annuity (future value of series of deposits), 352–354anova (analysis of variance), 815–816ANSI character set, 233Any Value option, Data Validation dialog box, 593Application object, properties, 849Apply Names dialog box, 228Apply These Changes to All Other Cells with the Same
Setting check box, Data Validation dialog box, 594
creating array constant from values in range, 385–386
creating from values in range, 385displaying calendar in range, 417–418generating array of consecutive integers, 388–389
968
57_9781118490365-bindex.indd 96857_9781118490365-bindex.indd 968 1/24/13 10:12 AM1/24/13 10:12 AM
Index
overview, 374–375, 384performing operations on, 386–387returning list of unique items in range, 416–417returning nonblank cells from range, 414returning only positive values from range, 413–414reversing order of cells in range, 414–415sorting range of values dynamically, 415–416transposing, 387–388using functions with, 386–387
computing average that excludes zeros, 400–401counting characters in range, 390–391counting number of differences in two
ranges, 402–403counting number of error values in
range, 398–399counting text cells in, 392–393determining closest value in range, 410determining whether range contains
valid values, 404–406determining whether value appears in
range, 401–402eliminating intermediate formulas, 393–394finding row of value’s nth occurrence
in range, 404overview, 376removing nonnumeric characters from string, 409returning last value in column, 410–411returning last value in row, 412returning location of maximum value
in range, 403–404returning longest text in range, 404summing digits of integer, 406summing every nth value in range, 408–409summing largest values in range, 399summing range that contains errors, 397–398summing rounded values, 407–408summing three smallest values in range, 391–392using instead of range reference, 395
Blanks option, Go to Special dialog box, 76book.xltx template, 166–167Boolean data type, VBA, 929Border tab, Format Cells dialog box, 133–134borders, adding to worksheets, 132Bottom alignment option, Format Cells dialog box, 128BoundColumn property
ComboBox control, 897ListBox control, 899
Browse button, Consolidate dialog box, 626bubble charts, 452–453By category method, data consolidation, 625By position method, data consolidation, 625Byte data type, VBA, 929
area, 364–365dates of holidays, 271–273difference between two times, 276–277grade-point average, 326–327investment calculations, 347–354number of days between two dates, 264number of workdays between two dates, 264–266number of years between two dates, 266–267perimeter, 364person’s age, 267–268right triangle, 362–363surface, 366volume, 365–366
Calculation modes, formula, 222–223calendar, displaying in range, 417–418Camera tool, 557candlesticks (up-bars), stock chart, 453Capitalize First Letter of Sentences option,
AutoCorrect dialog box, 681Capitalize Names of Days option, AutoCorrect
copying cells that contain conditional formatting, 522counting number of words in, 250counting specific characters in, 246counting total number of, 288–289defined, 69fill handle, 22Go to Special dialog box, 75–77joining two or more, 236–237locating cells that contain conditional formatting, 523nonblank
counting, 289returning from range, 414
nontext, 290numeric, 290Paste Special dialog box, 88–91pasting options, 87–88pasting with Office Clipboard, 85–86Quick Analysis icon, 71referencing within pivot tables, 759–761reversing order of in ranges, 414–415
selecting by searching, 77–79selecting specific types of, 75–76sizing, Sparklines, 529text, 290unlocking, 645–646
Center across Selection alignment option, Format Cells dialog box, 127
Center alignment option, Format Cells dialog box, 127, 128
columns, worksheetadjusting width, 67defined, 8deleting, 66hiding, 66inserting, 64–65joining, 702–703printing column headers, 184rearranging, 703returning last value in, 410–411selecting, 71–72, 918selecting to end of, 917–918
Constant Is Zero option, Regression dialog box, 823constants
MsgBox function, 872using names for, 224
Constants option, Go to Special dialog box, 76Constraint Precision option, Solver Options
dialog box, 803constraints, Solver, 797
57_9781118490365-bindex.indd 97457_9781118490365-bindex.indd 974 1/24/13 10:12 AM1/24/13 10:12 AM
975
Index
contextual tabs, Ribbon, 12controls, VBA, 833conversion functions, 361CONVERT function, 359–362, 700, 947Convert software, 362Convert Text to Columns Wizard, 694converting
decimal hours, minutes, or seconds to time, 280formulas to values, 230from military time, 280nondate string to date, 263tables to ranges, 118values, 700
copyingcells that contain conditional formatting, 522chart formatting, 469charts, 434formulas, 229Page Setup settings across worksheets, 189pivot table content, 731
copying rangesto adjacent cells, 84to other sheets, 85overview, 79–80Paste Special dialog box, 88–91pasting options, 87–88pasting with Office Clipboard, 85–86using drag-and-drop, 83–84using Ribbon commands, 80–81using shortcut keys, 82using shortcut menu commands, 81–82variable-size ranges, 916–917
Correct Accidental Use of cAPS LOCK key option, AutoCorrect dialog box, 681
Correct TWo INitial CApitals option, AutoCorrect dialog box, 681
counting cells based on multiple criteria, 292–295counting cells by using COUNTIF function,
291–292counting most frequently occurring entry, 296counting number of unique values, 298–299counting occurrences of specific text, 297–298creating frequency distribution, 299–304overview, 291
basiccounting blank cells, 289counting error values in range, 290–291counting logical values, 290counting nonblank cells, 289counting nontext cells, 290counting numeric cells, 290counting text cells, 290counting total number of cells, 288–289overview, 287–288
Current Array option, Go to Special dialog box, 76Current Region option, Go to Special dialog box, 76CurrentDate macro, 832Curve Shape, 541custom conditional formatting, 504Custom error bar, 485custom functions, 860. See also function procedures,
VBA codecustom number formats
adding, 48codes for, 580creating, 577–581for dates and times, codes used in creating, 581defined, 576displaying fractions, 586–587displaying leading zeros, 585displaying negative sign on right of number, 587displaying text with numbers, 588filling cell with repeating character, 590formatting dates and times, 587–588scaling values, 582–585specifying conditions, 586suppressing certain types of entries, 589–590testing, 589
Custom option, Data Validation dialog box, 594custom templates
chart, 491–492ideas for creating, 169
overview, 167–168saving, 168
Custom Views featureoverview, 191–192PDF file format, 192worksheet outlines, 612
CVS (comma separated values) file format, 687–690, 712–713
cylinder, calculating volume, 366
Ddamping factor (smoothing constant), 818data
cleaning-upadding text to cells, 710–711changing case of text, 698changing vertical data to horizontal data, 705–707checklist, 712classifying values, 701–702converting values, 700
57_9781118490365-bindex.indd 97657_9781118490365-bindex.indd 976 1/24/13 10:12 AM1/24/13 10:12 AM
977
Index
extracting filename from URL, 703filling gaps in imported report, 707–708fixing trailing minus signs, 711identifying duplicate rows, 692joining columns, 702–703matching text in list, 704–705Power Utility Pak add-in, 709randomizing rows, 703rearranging columns, 703removing duplicate rows, 690–691removing extra spaces, 698–699removing strange characters, 699replacing or removing text in cells, 709spell checker feature, 708–709splitting text, 692–697
exportingto other file formats, 713to text file, 712–713
importing into worksheetscopying and pasting data, 690from files, 686–688importing text file into specified range, 688–690
Data Analysis dialog box, 815data bars conditional formatting
defined, 504simple data bar, 507–508using instead of chart, 509
Data Bars option, Conditional Formatting drop-down list, 505
data consolidation. See consolidating worksheetsData Interchange Format (DIF) files, 687, 713data labels, chart
overview, 482–483specifying arbitrary range to be used as, 482–483
Data Model feature, 771data points, chart, 425, 452data series
adding to chart, 478–479deleting or hiding in chart, 478line chart, 444modifying data
changing range by dragging range outline, 480editing SERIES formula, 481–482overview, 479using Edit Series dialog box, 480–481
data types, worksheetsformulas, 31numeric values, 30overview, 29text, 30–31
data validationadding comments to cell, 98cell references, 596creating drop-down list, 595formulas
accepting dates by day of the week, 600accepting larger value than previous cell, 598accepting nonduplicate entries only, 598–599accepting only values that don’t exceed total, 600accepting text only, 598accepting text that begins with specific
57_9781118490365-bindex.indd 97757_9781118490365-bindex.indd 977 1/24/13 10:12 AM1/24/13 10:12 AM
978
Index
data-entry techniques (continued)automatically moving cell pointer after entering
data, 36–37entering current date or time, 42entering decimal points automatically, 38entering numbers with fractions, 40forcing text to appear on new line within cell, 40selecting range of input cells before entering data, 37using AutoFill to enter series of values, 38–39using Ctrl+Enter to place information into multiple
cells simultaneously, 38using data entry form, 41–42using navigation keys instead of pressing Enter, 37
date axis, Sparklines, 535Date category axis, charts, 474–475Date data type, VBA, 929DATE function, 260, 946Date number format, 47, 576Date option, Data Validation dialog box, 593DATEDIF function, 267–268date-related worksheet functions
calculating number of days between two dates, 264calculating number of workdays between two
dates, 264–266calculating number of years between two
dates, 266–267
calculating person’s age, 267–268converting nondate string to date, 263DATE function, 260DATEVALUE function, 260DAY function, 260DAYS function, 260DAYS360 function, 260determining date of most recent Sunday, 270determining dates of holidays, 271–273determining date’s quarter, 274determining day of week, 269determining day of year, 268–269determining first day of week after date, 270determining last day of month, 273determining nth occurrence of day of week in
month, 270determining week of year, 269determining whether year is leap year, 273–274displaying any date, 261–262displaying current date, 260–261EDATE function, 260EOMONTH function, 260generating series of dates, 262–263ISOWEEKNUM function, 260MONTH function, 260NETWORKDAYS function, 260NETWORKDAYS.INTL function, 260NOW function, 260offsetting date using only workdays, 266overview, 259–260TODAY function, 260WEEKDAY function, 260WEEKNUM function, 260WORKDAY function, 260WORKDAY.INTL function, 260YEAR function, 260YEARFRAC function, 260
dates. See also date-related worksheet functionsdate serial numbers, 251–252entering, 33, 42, 252–254Excel recognized formats, 253formatting, 256–257generating series of, 262–263inconsistent date entries, 258–259leap year, 257–258nondates, 252overview, 251, 257pre-1900 dates, 258
cell comments, 100cell content, 34chart elements, 434charts, 434conditional formatting, 522–523data series in chart, 478names, 95worksheets, 53–54
Delimited option, Convert Text to Columns Wizard, 694DELTA function, 947dependent list, creating using data validation, 600–601dependents, cell, 671–673Dependents option, Go to Special dialog box, 76depreciation calculations, 354–357Description option, Record Macro dialog box, 835Descriptive Statistics tool, 817–818Design mode, 892design time, UserForm property controls, 877determining
date of most recent Sunday, 270dates of holidays, 271–273
date’s quarter, 274day of week, 269day of year, 268–269first day of week after date, 270last day of month, 273nth occurrence of day of week in month, 270week of year, 269whether year is leap year, 273–274
Developer tab, Ribbon, 11, 828–829DEVSQ function, 956DGET function, 945dialog box launcher, Ribbon, 14dialog boxes. See also UserForms
Excel Web App, 631–632excess spaces, removing, 241–242executing function procedures, VBA code
calling custom functions from procedure, 860overview, 859using custom functions in worksheet formula, 860
EXP function, 953exploding pie chart, 445EXPONDIST function, 943EXPON.DIST function, 956exporting data, 712–713Extensible Markup Language (XML) files, 688External Data Range Properties dialog box, 641external reference formulas
changing link source, 619creating link formula by pointing, 615creating links to unsaved workbooks, 616–617general syntax for, 614–615intermediary links, 621modifying source workbook, 620–621
opening workbooks with, 617–618overview, 614pasting links, 616renaming or moving a source workbook, 620severing links, 619Startup Prompt dialog box, 618–619updating links, 619using Save As command, 620
ExtractElement function, 865–866extracting
all but first word of string, 248filename from URL, 703first names, middle names, and last names, 248–249first word of string, 247last word of string, 246
Find and Replace dialog boxFind What text box, 677locating cells that contain specific formatting, 523overview, 676–677Replace tab, 678replacing text in cells, 709searching for dates, 254searching for formatting, 678–679selecting cells by searching, 77–79
FIND function, 244–246FINV function, 943F.INV function, 956F.INV.RT function, 956First Point highlighting option, Sparklines, 531FISHER function, 956FISHERINV function, 956five-way combination chart, 490FIXED function, 960Fixed value error bar, 485Fixed Width option, Convert Text to Columns
Wizard, 694Flash Fill feature, 695–698floating point number errors, 666–667FLOOR function
defined, 367, 944rounding currency values, 369
FLOOR.MATH function, 954Font tab, Format Cells dialog box, 124
57_9781118490365-bindex.indd 98357_9781118490365-bindex.indd 983 1/24/13 10:12 AM1/24/13 10:12 AM
Don’t Move or Size with Cells option, 542modifying chart elements with, 461Move and Size with Cells option, 542Move But Don’t Size with Cells option, 542overview, 435
Format Trendline task pane, 486
Formats option, Paste Special dialog box, 89formatted currency values, displaying as text, 239formatted values, displaying as text, 237–238formatting. See also conditional formatting; formatting
Formatting option, Home tab, 88formatting worksheets
adding background image, 134adding borders and lines, 132–134changing text alignment, 126–131controlling text direction, 130–131displaying text at angle, 130–131document themes, 140–144
checkerboard shading, 519displaying alternate-row shading, 519displaying total only when all values are
entered, 520–521
57_9781118490365-bindex.indd 98457_9781118490365-bindex.indd 984 1/24/13 10:12 AM1/24/13 10:12 AM
985
Index
highlighting row based on value, 518–519overview, 515–516relative and absolute references, 516–517shading groups of rows, 520
consolidating worksheets with, 623converting to values, 230copying, 229creating frequency distribution with, 301–302data validation
accepting dates by day of the week, 600accepting larger value than previous cell, 598accepting nonduplicate entries only, 598–599accepting only values that don’t exceed total, 600accepting text only, 598accepting text that begins with specific
dead, 230defined, 31depreciation calculations, 354–357editing, 210entering into worksheets
function entry tips, 209–210inserting functions into formulas, 207–209manually, 205overview, 202–205pasting range names into formulas, 206–207by pointing, 205–206
errorsabsolute references, 664actual versus displayed values, 665–666array formula entry, 656blank cells are not blank, 658cells filled with hash marks, 657circular references, 221–222, 656, 673#DIV/0!, 660–661error-checking feature, 673–675extra space character, 658floating point number, 666–667Formula Evaluator, 675–676formulas not calculated, 665identifying cells of particular type, 668–669incorrect reference, 655logical, 655mismatched parentheses, 656#N/A, 661#NAME?, 662#NULL!, 662#NUM!, 662–663operator precedence, 664–665overview, 220–221
naming, 223–228not hard-coding values, 228operator, 196–199overview, 195parentheses, use of, 198–199, 201renaming or moving source workbook, 620ripple effect, 220rounding, 367–368
57_9781118490365-bindex.indd 98557_9781118490365-bindex.indd 985 1/24/13 10:12 AM1/24/13 10:12 AM
986
Index
formulas (continued)summing
computing cumulative sum, 305–307conditional sums using multiple criteria, 311–312conditional sums using single criterion, 309–311ignoring errors when summing, 307overview, 285–287, 304summing all cells in range, 304–305summing top n values, 307–308
transforming data with, 243, 699using cell references in, 211–215using COUNTIF function, 292using custom functions in worksheet formula, 860using Formula bar as calculator, 229using functions in, 199–202using in tables
overview, 215referencing data in table, 219–220summarizing data in table, 215–217using formulas within table, 217–218
using operators in, 196–197using Save As command, 620worksheet, debugging, 866
Formulas and Number Formats optionHome tab, 87Paste Special dialog box, 89
Formulas optionGo to Special dialog box, 76Home tab, 87Paste Special dialog box, 89
Formulas tab, Ribbon, 10FORMULATEXT function, 201, 952For-Next loop, VBA code, 851, 926Fourier Analysis tool, 819Fraction number format, 47, 576Frame control, UserForms, 876free-floating text, adding to chart, 467FreeForm Shape, 541, 546freezing panes, worksheet, 61–62frequency distribution
creating with Analysis ToolPak, 302–303creating with formulas, 301–302creating with FREQUENCY function, 299–300creating with pivot table, 304, 748–749overview, 299
defined, 314, 952looking up value by using closest match, 326–327lookup_value argument, 317range_lookup argument, 318row_index_num argument, 317table_array argument, 317
creating single file web page, 635importing, 688overview, 632–633saving workbook as, 634–635
HYPERLINK function, 952
57_9781118490365-bindex.indd 98757_9781118490365-bindex.indd 987 1/24/13 10:12 AM1/24/13 10:12 AM
988
Index
hyperlinksdefined, 636following from Shapes, 639inserting, 637–638style controls, 639
Hypertext Markup Language files. See HTML filesHYPGEOMDIST function, 944HYPGEOM.DIST function, 957hypocycloid curve, XY chart, 447–448
Iicon set conditional formatting, 504, 512–515Icon Sets option, Conditional Formatting
drop-down list, 505IF function
avoiding #DIV/0! error, 658defined, 315, 951finding row of value’s nth occurrence in range, 404using to hide cumulative sums for rows, 306–307writing formula using, 200
IFERROR functionchecking for error condition, 661defined, 315, 951extracting all but first word of string, 248extracting first word of string, 247summing range that contains errors, 398
KKeep Source Column Width option, Home tab, 87Keep Source Formatting option, Home tab, 87keyboard
accessing Ribbon with, 14–15navigating within task panes with, 21navigating worksheets with, 8–9selecting chart elements with, 459
keyboard shortcutsediting keys in Formula bar, 963formatting keys, 963–964function keys, 965–966grouping and ungrouping worksheet outlines, 609moving within range selection, 963navigating worksheet, 961–962selecting cells in worksheet, 962
KURT function, 957
LLabel control, UserForm, 876, 891, 898Label Options section, Format Data Labels
task pane, 482Labels section, Format Axis task pane, 472Labor Day, calculating date of, 272landscape page orientation, 179LARGE function, 399, 957LargeChange property, ScrollBar control, 900Last Cell option, Go to Special dialog box, 76Last Point highlighting option, Sparklines, 531layouts
changing link source, 619creating link formula by pointing, 615creating links to unsaved workbooks, 616–617general syntax for, 614–615intermediary links, 621modifying source workbook, 620–621opening workbooks with, 617–618overview, 614pasting links, 616renaming or moving a source workbook, 620severing links, 619Startup Prompt dialog box, 618–619updating links, 619using Save As command, 620
general discussion, 613–614List Box control, UserForm, 891List option, Data Validation dialog box, 593ListBox control, UserForm, 876, 898–899ListFillRange property
57_9781118490365-bindex.indd 99057_9781118490365-bindex.indd 990 1/24/13 10:12 AM1/24/13 10:12 AM
991
Index
RTD, 952TRANSPOSE, 952VLOOKUP, 952
lookup formulascalculating grade-point average, 326–327determining cell address of value within range, 330determining letter grades for test scores, 325–326functions relevant to, 314–315HLOOKUP function, 317–318INDEX function, 319–321looking up exact value, 322–323looking up value by using closest match, 331–332looking up value from multiple lookup tables, 325looking up value to left, 323–324LOOKUP function, 318–319MATCH function, 319–321overview, 313–314performing case-sensitive lookup, 324–325performing two-column lookup, 329–330performing two-way lookup, 327–329VLOOKUP function, 316–317
LOOKUP functiondefined, 315, 952determining whether value appears in range, 401lookup_value argument, 318lookup_vector argument, 318#N/A error value and, 658range references, 319result_vector argument, 318
lookup_array argument, MATCH function, 319lookup_value argument
arguments for function in formula, 209Chart Area, 463–464chart axes, 469–477chart properties, 926–927chart type, 926data used in data series, 479–482named styles, 137–138pivot tables, 729–730Plot Area, 464–465source workbook, 620–621templates, 1643-D charts, 487–488
modules, VBA code, 833, 845money
rounding fractional dollars, 369time value of, 333–334
multicell array formulascreating array constant from values in
range, 385–386creating from values in range, 385
displaying calendar in range, 417–418editing rules, 383expanding or contracting, 384generating array of consecutive integers, 388–389overview, 374–375performing operations on, 386–387returning list of unique items in range, 416–417returning nonblank cells from range, 414returning only positive values from range, 413–414reversing order of cells in range, 414–415sorting range of values dynamically, 415–416transposing, 387–388using functions with, 386–387
adding, 48codes for, 580creating, 577–581for dates and times, codes used in creating, 581defined, 576displaying fractions, 586–587displaying leading zeros, 585displaying negative sign on right of number, 587displaying text with numbers, 588filling cell with repeating character, 590formatting dates and times, 587–588scaling values, 582–585specifying conditions, 586suppressing certain types of entries, 589–590testing, 589
57_9781118490365-bindex.indd 99557_9781118490365-bindex.indd 995 1/24/13 10:12 AM1/24/13 10:12 AM
996
Index
Page Setup settings (continued)choosing printer, 178copying across sheets, 189overview, 177–178page breaks, 181–182printing cell gridlines, 184printing multiple copies of report, 180printing row and column headers, 184printing row and column titles, 182–183scaling printed output, 183–184specifying, 178–179specifying paper size, 180
Page View buttons, Excel screen, 6–7paired arguments, 294–295Paired two-sample for means t-test, 824parentheses, use in formulas, 198–199, 201, 656password, workbook, 152–153, 647–649Password dialog box, 648Paste Link option, Home tab, 88Paste Name dialog box, 206–207Paste option, Home tab, 87Paste Special dialog box
consolidating worksheets with, 624overview, 88–90performing mathematical operations without
formulas, 90skipping blanks when pasting, 90transposing range, 90–91
Paste Special option, Home tab, 88pasting data, 690pasting options. See also copying ranges
ranges, 87–88worksheet cells, 87–88
Patterned distribution, Random Number Generation dialog box, 822
pictures. See graphic toolspie charts, 438–439, 445–446pivot charts, 761–765pivot tables
banking example, 731–737creating automatically, 722–723creating calculated field or calculated item, 750–756creating from non-numeric data, 739–741creating manually
rangeschanging by dragging outline, 480converting tables to, 118copying or moving
to adjacent cells, 84to other sheets, 85overview, 79–80Paste Special dialog box, 88–91pasting options, 87–88pasting with Office Clipboard, 85–86
using drag-and-drop, 83–84using Ribbon commands, 80–81using shortcut keys, 82using shortcut menu commands, 81–82
counting characters in, 390–391counting number of differences in two, 402–403counting number of error values in, 398–399defined, 69determining closest value in, 410determining whether range contains valid
values, 404–406determining whether value appears in, 401–402displaying calendar in, 417–418finding row of value’s nth occurrence in, 404formatting with shortcut keys, 125multisheet, 73–75naming, 91–95noncontiguous, 72–73pasting names into formulas, 206–207reference operators for, 226returning list of unique items in, 416–417returning location of maximum value in, 403–404returning longest text in, 404returning nonblank cells from, 414returning only positive values from, 413–414reversing order of cells in, 414–415selecting, 70summing cells in, 304–305summing every nth value in, 408–409summing largest values in, 399summing range that contains errors, 397–398summing three smallest values in, 391–392versus tables, 103taking picture of, 557VBA macro language
copying, 916copying variable-size range, 916–917counting selected cells, 923–924determining type of selection, 922–923looping, 919–920moving, 918–919multiple selection, 923overview, 915–916prompting for cell value, 920–921selecting row or column, 918selecting to end of row or column, 917–918
SERIES formula, 481–482Series Options section, Format Data Series task pane, 497series_name argument, SERIES formula, 481SERIESSUM function, 954Set Precision as Displayed option, Excel Options
activating worksheet, 52assigning macro to, 842–843editing keys in Formula bar, 963formatting keys, 963–964formatting ranges, 125function keys, 965–966moving within range selection, 963navigating worksheet, 961–962number formatting, 45, 575recalculating formulas, 223selecting cells in worksheet, 962
based on date comparison, 310–311based on different range, 310based on text comparison, 310negative values, 310
Single data type, VBA, 929single file web page, 635single-cell array formulas
computing average that excludes zeros, 400–401counting characters in range, 390–391counting number of differences in two ranges, 402–403counting number of error values in range, 398–399counting text cells in, 392–393defined, 374determining closest value in range, 410determining whether range contains valid
values, 404–406determining whether value appears in range, 401–402eliminating intermediate formulas, 393–394finding row of value’s nth occurrence in range, 404overview, 376removing nonnumeric characters from string, 409returning last value in column, 410–411returning last value in row, 412returning location of maximum value in
range, 403–404returning longest text in range, 404summing digits of integer, 406summing every nth value in range, 408–409summing largest values in range, 399summing range that contains errors, 397–398summing rounded values, 407–408summing three smallest values in range, 391–392using instead of range reference, 395
single-cell goal seeking, 793–796single-factor analysis of variance, 816SINH function, 954Size & Properties section, Format Axis task pane, 475Size command, Shapes, 543sizes argument, SERIES formula, 482SKEW function, 958SKEW.P function, 958Skip Blanks option, Paste Special dialog box, 90SkyDrive, 631
STDEVPA function, 958STDEV.S function, 958STEYX function, 959stock charts, 453–455Store Macro In option, Record Macro dialog box, 835String data types, VBA, 929strings
counting characters in, 242defined, 231determining if identical, 236extracting all but first word of, 248extracting characters from, 243–244extracting first word of, 247extracting last word of, 246finding and searching within, 244–245removing nonnumeric characters from, 409repeating, 239searching and replacing within, 245
function procedures, VBA codeSUBSTITUTE function, 244, 246, 960SUBTOTAL function, 286, 955subtotals, pivot table, 727subtraction operator, formula, 665SUM function
array constants, 377–378defined, 286, 955single-cell array formulas, 376summing all cells in range, 305summing digits of integer, 406
Sum summary formula, Total Row, 111sum_range argument, SUMIF function, 309SUMIF function
defined, 286, 955single-criterion sum formulas, 309–311
SUMIFS function, 286, 955summary formulas, Total Row, 110–111summing formulas
computing cumulative sum, 305–307conditional sums using multiple criteria, 311–312conditional sums using single criterion, 309–311ignoring errors when summing, 307overview, 285–287, 304summing all cells in range, 304–305summing top n values, 307–308
summing times that exceed 24 hours, 277–280
57_9781118490365-bindex.indd 100457_9781118490365-bindex.indd 1004 1/24/13 10:12 AM1/24/13 10:12 AM
chart, 491–492controlling named styles with, 139creating workbook from, 162–163custom, 167–169default, 165–167locking formula cells, 168modifying, 164overview, 161viewing, 161–162
test scores, determining letter grades for, 325–326testing
custom number formats, 589macros, 837, 840UserForms, 880, 883–884, 886
text. See also text functionsadding to cells, 710–711adding to Shapes, 543advanced text formulas
counting number of words in cell, 250counting occurrences of a substring in cell, 246counting specific characters in cell, 246creating ordinal number, 250extracting all but first word of string, 248extracting first names, middle names, and last
names, 248–249extracting first word of string, 247extracting last word of string, 247overview, 246removing titles from names, 250
changing case of, 698controlling direction, 130–131counting occurrences of specific text, 297–298displaying at angle, 130–131entering, 30–31free-floating, adding to chart, 467matching in list, 704–705merging cells to create additional text space, 129–130overview, 30–31, 231–232replacing or removing in cells, 709
57_9781118490365-bindex.indd 100557_9781118490365-bindex.indd 1005 1/24/13 10:12 AM1/24/13 10:12 AM
1006
Index
text (continued)splitting, 692–697wrapping or shrinking to fit cell, 129
counting characters in string, 242creating text histogram, 239–240determining whether two strings are identical, 236displaying formatted currency values as text, 239displaying formatted values as text, 237–238extracting characters from string, 243–244finding and searching within string, 244–245joining two or more cells, 236–237overview, 232–233padding number, 240–241
removing excess spaces and nonprinting characters, 241–242
repeating character or string, 239replacing text with other text, 244searching and replacing within string, 245
Text Import Wizard, 687Text Length option, Data Validation dialog box, 594Text number format, 48, 576Text Options tab, Format Task Pane, 435Text to Columns Wizard, 694–695Text Tools, Power Utility Pak add-in, 709TextAlign property, TextBox control, 901–902TextBox control, UserForm, 876, 901–902Thanksgiving Day, calculating date of, 273themes, document
themes, table, 105–106thermometer charts, 494–495ThisWorkbook code module, 9043-D area chart, 4493-D clustered column chart, 441–442Tick Marks section, Format Axis task pane, 472TIME function, 274, 275–276, 280–281, 946Time number format, 47, 576Time option, Data Validation dialog box, 593time value of money, 333–334time-based category axis, charts, 475Timeline, 758–759time-related functions
adding hours, minutes, or seconds to time, 280–281calculating difference between two times, 276–277converting decimal hours, minutes, or seconds
to time, 280converting from military time, 280displaying any time, 275–276displaying current time, 275HOUR function, 274MINUTE function, 274NOW function, 274overview, 274rounding time values, 281–282SECOND function, 274summing times that exceed 24 hours, 277–280TIME function, 274TIMEVALUE function, 274working with non-time-of-day values, 282–283
times. See also time-related functionsentering, 255–256entering current date or time, 42entering into worksheet, 34
57_9781118490365-bindex.indd 100657_9781118490365-bindex.indd 1006 1/24/13 10:12 AM1/24/13 10:12 AM
1007
Index
Excel recognized formats, 255–256formatting, 256–257overview, 251time serial numbers, 254–255
valuesclassifying, 701–702converting, 700converting formulas to, 230determining cell address of value within range, 330determining whether appears in range, 401–402determining whether range contains valid
values, 404–406displaying total only when all values are
entered, 520–521exact, looking up, 322–323finding row of value’s nth occurrence in range, 404formatted, displaying as text, 237–238formula, not hard-coding, 228hard-code, avoiding in formulas, 779highlighting row based on, 518–519imported, treated as text, 232looking up by using closest match, 331–332looking up from multiple lookup tables, 325looking up values to left, 323–324negative, summing, 310prompting for, 920–921returning location of maximum value in
range, 403–404rounded, summing, 407–408summing based on date comparison, 310–311summing based on different range, 310summing based on text comparison, 310
Values and Number Formats option, Paste Special dialog box, 90
Values & Number Formatting option, Home tab, 88Values & Source Formatting option, Home tab, 88values area, pivot table, 727values argument, SERIES formula, 481Values in Reverse Order option, Format Axis
task pane, 471Values option
Home tab, 88Paste Special dialog box, 89
VAR function, 944Var summary formula, Total Row, 111VARA function, 959variables, VBA code, 847, 850Variant data types, VBA, 929VARP function, 944
57_9781118490365-bindex.indd 100857_9781118490365-bindex.indd 1008 1/24/13 10:12 AM1/24/13 10:12 AM
copying, 916copying variable-size range, 916–917counting selected cells, 923–924determining type of selection, 922–923looping, 919–920moving, 918–919multiple selection, 923overview, 915–916prompting for cell value, 920–921selecting row or column, 918selecting to end of row or column, 917–918
recording macrosabsolute versus relative recording, 841adding macro to Quick Access toolbar, 844assigning macro to button, 843assigning macro to shortcut key, 842–843editing macro, 837–838examining macro, 836–837, 839example, 835–836, 838overview, 834–835rerecording macro, 840running macro, 838–839storing in Personal Macro Workbook, 842testing macro, 837, 840
macro languageVisual Basic (VB) protection, 643, 650–651VLOOKUP function
col_index_num argument, 316defined, 315, 952looking up value by using closest match, 326–327lookup_value argument, 316range_lookup argument, 316table_array argument, 316
file compatibilityCompatibility Checker, 158–159file formats, 159overview, 158saving file for use with older version of Excel, 160
Group mode, 74inspecting, 651marking as final, 651naming ranges in, 92–94Office Compatibility Pack, 160opening, 146–149organizing, 153–155overview, 145password-protecting, 152–153Protect Workbook drop-down list, Info pane, 155–156Protected View, 148pushpin icon, 146reasons to convert to add-ins, 933–934referencing cells in, 214–215requiring password to open, 647–649saving
on Internet, 631–636overview, 26–27, 149–150workbooks that contain macros, 830
data-entry techniques, 36–43defined, 49deleting, 53–54deleting cell content, 34–35draw layer, 5, 29editing cell content, 35–36entering dates and times, 33–34entering formulas into
Formula AutoComplete feature, 203–204function entry tips, 209–210inserting functions into formulas, 207–209manually, 205overview, 202pasting range names into formulas, 206–207by pointing, 205–206
entering text and values, 32–33
eventsChange event, 909–910monitoring specific range for changes, 910–911overview, 903RightClick event, 912SelectionChange event, 911–912
freezing panes, 61–62hiding and unhiding, 57importing data into
copying and pasting data, 690from files, 686–688importing text file into specified range, 688–690
naming, 54, 152navigating
with keyboard, 8–9with mouse, 9–10overview, 8
number formattingautomatic, 44custom format, 48overview, 43–44using Format Cells dialog box, 45–48using Ribbon, 44–45using shortcut keys, 45
saving as PDF, 651splitting worksheet window into panes, 60–61templates, 166unlocking cells, 645–646viewing in multiple windows, 59–60Watch Window, 62–63zooming, 57–58
workspace files, 155Wrap Text option, Format Cells dialog box, 129wrapping text, cell, 129writing VBA code
assigning values to variables, 847collections, 846, 848entering and editing code, 844–845For-Next loop, 851
57_9781118490365-bindex.indd 101157_9781118490365-bindex.indd 1011 1/24/13 10:12 AM1/24/13 10:12 AM
1012
Index
writing VBA code (continued)function procedures, 846If-Then programming construct, 850–851inserting comments, 845macro that can’t be recorded, 852–853methods, 847, 850modules, 845objects, 846, 847–848overview, 844procedures, 845properties, 846–847, 848–850Select Case programming construct, 852variables, 850With-End With programming construct, 851–852
XXIRR function, 950XLA file format, 686XLM file format, 686XLS file format, 686XLSA file format, 159XLSB file format, 159XLSK file format, 159XLSM file format, 159XLStart folder, 149, 166XLSX file format, 159XLT file format, 686XLTM file format, 159XLTX file format, 159XML (Extensible Markup Language) files, 688
XML Paper Specification (XPS) files, 713XNPV function, 950XOR function, 952XPS (XML Paper Specification) files, 713XPS format, 192, 651XY (scattergrams; scatter plots) charts
general discussion, 446–448plotting mathematical functions with one
variable, 500–501plotting mathematical functions with two