cover.eps

Title page image

Trademark Acknowledgments

Contact Us

Credits

Acquisitions Editor
Aaron Black

Project Editor
Lynn Northrup

Technical Editor
Donna Baker

Copy Editor
Lynn Northrup

Production Editor
Barath Kumar Rajasekaran

Manager, Content Development & Assembly
Mary Beth Wakefield

Vice President, Professional Technology Strategy
Barry Pruett

About the Author

Paul McFedries is a full-time technical writer. He has been authoring computer books since 1991 and has more than 85 books to his credit. Paul’s books have sold more than four million copies worldwide. These books include the Wiley titles Teach Yourself VISUALLY Windows 10, Windows 10 Simplified, The Facebook Guide for People Over 50, iPhone 6 Portable Genius, and iPad Portable Genius. Paul is also the proprietor of Word Spy (www.wordspy.com), a website that tracks new words and phrases as they enter the language. Paul invites you to drop by his personal website at www.mcfedries.com or follow him on Twitter @wordspy.

Author’s Acknowledgments

It goes without saying that writers focus on text, and I certainly enjoyed focusing on the text that you will read in this book. However, this book is more than just the usual collection of words and phrases designed to educate and stimulate the mind. A quick thumb through the pages will show you that this book is also chock-full of treats for the eye, including copious screenshots, beautiful colors, and sharp fonts. Those sure make for a beautiful book, and that beauty comes from a lot of hard work by the production team at SPi Global. Of course, what you read in this book must also be accurate, logically presented, and free of errors. Ensuring all of this was an excellent group of editors that I got to work with directly, including project and copy editor Lynn Northrup and technical editor Donna Baker. Thanks to both of you for your exceptional competence and hard work. Thanks, as well, to Aaron Black for asking me to write this book.

How to Use This Book

Who This Book Is For

This book is for the reader who has never used this particular technology or software application. It is also for readers who want to expand their knowledge.

The Conventions in This Book

001 Steps

This book uses a step-by-step format to guide you easily through each task. Numbered steps are actions you must do; bulleted steps clarify a point, step, or optional feature; and indented steps give you the result.

002 Notes

Notes give additional information — special conditions that may occur during an operation, a situation that you want to avoid, or a cross reference to a related area of the book.

003 Icons and Buttons

Icons and buttons show you exactly what you need to click to perform a step.

004 Tips

Tips offer additional information, including warnings and shortcuts.

005 Bold

Bold type shows command names, options, and text or numbers you must type.

006 Italics

Italic type introduces and defines a new term.

image

Teach Yourself VISUALLY™ Excel® 2016

CHAPTER 1

Working with Ranges

image

In Excel, a range is a collection of two or more cells that you work with as a group rather than separately. This enables you to fill the range with values, move or copy the range, sort the range data, and insert and delete ranges. You learn these and other range techniques in this chapter.

Select a Range

Fill a Range with the Same Data

Fill a Range with a Series of Values

Flash Fill a Range

Move or Copy a Range

Insert a Row or Column

Insert a Cell or Range

Delete Data from a Range

Delete a Range

Hide a Row or Column

Freeze Rows or Columns

Merge Two or More Cells

Transpose Rows and Columns

Select and Enter Data Using Touch Gestures

Select a Range

To work with a range in Excel, you must first select the cells that you want to include in the range. After you select the range, you can fill it with data, move it to another part of the worksheet, format the cells, and perform the other range-related tasks that you learn about in this chapter.

You can select a range as a rectangular group of cells, as a collection of individual cells, or as an entire row or column.

Select a Range

image

Select a Rectangular Range

001.eps Position the mouse (9781119074731-ma016.tif) over the first cell you want to include in the range.

002.eps Click and drag the 9781119074731-ma016.tif over the cells that you want to include in the range.

dga.jpg Excel selects the cells.

003.eps Release the mouse button.

image

Select a Range of Individual Cells

001.eps Click in the first cell that you want to include in the range.

002.eps Hold down ctrl and click in each of the other cells that you want to include in the range.

dga.jpg Each time you click in a cell, Excel adds it to the range.

003.eps Release ctrl.

image

Select an Entire Row

001.eps Position the mouse (9781119074731-ma016.tif) over the header of the row you want to select (9781119074731-ma016.tif changes to 9781119074731-ma018.tif).

002.eps Click the row header.

dga.jpg Excel selects the entire row.

To select multiple rows, click and drag across the row headers or hold down ctrl and click each row header.

image

Select an Entire Column

001.eps Position the mouse (9781119074731-ma016.tif) over the header of the column you want to select (9781119074731-ma016.tif changes to 9781119074731-ma019.tif).

002.eps Click the column header.

dga.jpg Excel selects the entire column.

To select multiple columns, click and drag across the column headers, or hold down ctrl and click each column header.

Fill a Range with the Same Data

If you need to fill a range with the same data, you can save time by getting Excel to fill the range for you. The AutoFill feature makes it easy to fill a vertical or horizontal range with the same value, but you can also fill any selected range. This method is much faster than manually entering the same data in each cell.

See the previous section, “Select a Range,” to learn how to select a range of cells.

Fill a Range with the Same Data

image

Fill a Vertical or Horizontal Range

001.eps In the first cell of the range you want to work with, enter the data you want to fill.

002.eps Position the mouse (9781119074731-ma016.tif) over the bottom-right corner of the cell (9781119074731-ma016.tif changes to 9781119074731-ma021.tif).

003.eps Click and drag 9781119074731-ma021.tif down to fill a vertical range or across to fill a horizontal range.

image

004.eps Release the mouse button.

dga.jpg Excel fills the range with the initial cell value.

image

Fill a Selected Range

001.eps Select the range you want to fill.

002.eps Type the text, number, or other data.

003.eps Press ctrl+ent.

image

dga.jpg Excel fills the range with the value you typed.

Fill a Range with a Series of Values

If you need to fill a range with a series of values, you can save time by using the AutoFill feature to create the series for you. AutoFill can fill a series of numeric values such as 5, 10, 15, 20, and so on; a series of date values such as January 1, 2016, January 2, 2016, and so on; or a series of alphanumeric values such as Chapter 1, Chapter 2, Chapter 3, and so on.

You can also create your own series with a custom step value, which determines the numeric difference between each item in the series.

Fill a Range with a Series of Values

image

AutoFill a Series of Numeric, Date, or Alphanumeric Values

001.eps Click in the first cell and type the first value in the series.

002.eps Click in an adjacent cell and type the second value in the series.

003.eps Select the two cells.

004.eps Position the mouse (9781119074731-ma016.tif) over the bottom-right corner of the second cell (9781119074731-ma016.tif changes to 9781119074731-ma021.tif).

005.eps Click and drag 9781119074731-ma021.tif down to fill a vertical range or across to fill a horizontal range.

dga.jpg As you drag through each cell, Excel displays the series value that it will add to the cell.

image

006.eps Release the mouse button.

dgb.jpg Excel fills the range with a series that continues the pattern of the initial two cell values.

image

Fill a Custom Series of Values

001.eps Click in the first cell and type the first value in the series.

002.eps Select the range you want to fill, including the initial value.

003.eps Click the Home tab.

004.eps Click Fill (9781119074731-ma022.tif).

005.eps Click Series.

image

The Series dialog box appears.

006.eps In the Type group, select the type of series you want to fill (9781119074731-ma001.tif changes to 9781119074731-ma002.tif).

007.eps If you selected Date in step 6, select an option in the Date unit group (9781119074731-ma001.tif changes to 9781119074731-ma002.tif).

008.eps In the Step value text box, type the value you want to use.

009.eps Click OK.

image

dgc.jpg Excel fills the range with the series you created.

Flash Fill a Range

You can save time and effort by using the Flash Fill feature in Excel to automatically fill a range of data based on a sample pattern that you provide.

Although there are many ways to use Flash Fill, the two most common are flash filling a range with extracted data and flash filling a range with formatted data. For example, if you have a column of full names, you might want to create a new column that includes just the first names extracted from the original column. Similarly, if you have a column of phone numbers in the form 1234567890, you might want a new column that formats the numbers as (123) 456-7890.

Flash Fill a Range

image

Flash Fill a Range with Extracted Data

001.eps Make sure the column of original data has a heading.

002.eps Type a heading for the column of extracted data.

003.eps Type the first value you want in the new column.

004.eps Begin typing the second value.

dga.eps Excel recognizes the pattern and displays suggestions for the rest of the column.

005.eps Press ent.

image

dga.jpg Excel flash fills the column with the extracted data.

image

Flash Fill a Range with Formatted Data

001.eps Make sure the column of original data has a heading.

002.eps Type a heading for the new column of formatted data.

003.eps Type the first value you want in the new column.

004.eps Begin typing the second value.

dga.jpg Excel recognizes the pattern and displays suggestions for the rest of the column.

005.eps Press ent.

image

dga.jpg Excel flash fills the column with the formatted data.

Move or Copy a Range

If your worksheet is not set up the way you want, you can restructure or reorganize the worksheet by moving an existing range to a different part of the sheet.

You can also make a copy of a range, which is a useful technique if you require a duplicate of the range elsewhere, or if you require a range that is similar to an existing range. In the latter case, after you copy the range, you can then edit the copied version of the data as needed.

Move or Copy a Range

image

Move a Range

001.eps Select the range you want to move.

002.eps Position the mouse (9781119074731-ma016.tif) over any outside border of the range (9781119074731-ma016.tif changes to 9781119074731-ma023.tif).

003.eps Click and drag the range to the new location (9781119074731-ma023.tif changes to 9781119074731-ma009.tif).

dga.jpg Excel displays an outline of the range.

dga.jpg Excel displays the address of the new location.

image

004.eps Release the mouse button.

dga.jpg Excel moves the range to the new location.

image

Copy a Range

001.eps Select the range you want to copy.

002.eps Press and hold ctrl.

003.eps Position the mouse (9781119074731-ma016.tif) over any outside border of the range (9781119074731-ma016.tif changes to 9781119074731-ma024.tif).

004.eps Click and drag the range to the location where you want the copy to appear.

dga.jpg Excel displays an outline of the range.

dga.jpg Excel displays the address of the new location.

image

005.eps Release the mouse button.

006.eps Release ctrl.

dga.jpg Excel creates a copy of the range in the new location.

Insert a Row or Column

You can insert a row or column into your existing worksheet data to accommodate more information. The easiest way to add more information to a worksheet is to add it to the right or at the bottom of your existing data. However, you will often find that the new information you need to add fits naturally within the existing data. In such cases, you first need to insert a new row or column in your worksheet at the place where you want the new data to appear, and then add the new information in the blank row or column.

Insert a Row or Column

image

Insert a Row

001.eps Click any cell in the row below where you want to insert the new row.

002.eps Click the Home tab.

003.eps Click the Insert 9781119074731-ma007.tif.

004.eps Click Insert Sheet Rows.

image

dga.jpg Excel inserts the new row.

dga.jpg The rows below the new row are shifted down.

005.eps Click the Insert Options smart tag (9781119074731-ma028.tif).

006.eps Select a formatting option for the new row (9781119074731-ma001.tif changes to 9781119074731-ma002.tif).

image

Insert a Column

001.eps Click any cell in the row to the right of where you want to insert the new column.

002.eps Click the Home tab.

003.eps Click the Insert 9781119074731-ma007.tif.

004.eps Click Insert Sheet Columns.

image

dga.jpg Excel inserts the new column.

dga.jpg The columns to the right of the new column are shifted to the right.

005.eps Click the Insert Options smart tag (9781119074731-ma028.tif).

006.eps Select a formatting option for the new column (9781119074731-ma001.tif changes to 9781119074731-ma002.tif).

Insert a Cell or Range

If you need to add data to an existing range, you can insert a single cell or a range of cells within that range. When you insert a cell or range, Excel shifts the existing data to accommodate the new cells.

Although it is often easiest to create room for new data within a range by inserting an entire row or column, as explained in the previous section, “Insert a Row or Column,” this causes problems for some types of worksheet layouts. (See the first tip to learn more.) You can work around such problems by inserting just a cell or range.

Insert a Cell or Range

image

001.eps Select the cell or range where you want the inserted cell or range to appear.

image

002.eps Click the Home tab.

003.eps Click the Insert 9781119074731-ma007.tif.

004.eps Click Insert Cells.

Note: You can also press ctrl+shift+equal.

image

The Insert dialog box appears.

005.eps Select the option that corresponds to how you want Excel to shift the existing cells to accommodate your new cells (9781119074731-ma001.tif changes to 9781119074731-ma002.tif).

Note: In most cases, if you selected a horizontal range, you should click the Shift cells down option; if you selected a vertical range, you should click the Shift cells right option.

006.eps Click OK.

image

dga.jpg Excel inserts the cell or range.

dga.jpg The existing data is shifted down (in this case) or to the right.

007.eps Click the Insert Options smart tag (9781119074731-ma028.tif).

008.eps Select a formatting option for the new row (9781119074731-ma001.tif changes to 9781119074731-ma002.tif).