navigate site menu

Start learning with our library of video tutorials taught by experts. Get started

Excel 2010 Essential Training
Richard Downs

Excel 2010 Essential Training

with Bob Flisser

 


In Excel 2010 Essential Training, Bob Flisser demonstrates the core features and tools in Excel 2010. The course introduces key Excel skills, shows how to utilize these skills with in-depth tutorials on Excel functions and spreadsheet formatting. It also covers prepping documents for printing, working with large worksheets and workbooks, collaborating with others, using Excel as a database, analyzing data, charting, and automating and customizing Excel. Exercise files are included with the course.
Topics include:
  • Copying and pasting techniques
  • Working with formulas and functions
  • Dealing with formula errors
  • Creating lookup tables
  • Naming cell ranges
  • Formatting data and worksheets
  • Finding and replacing data
  • Creating SmartArt diagrams
  • Creating charts and PivotTables
  • Recording macros
  • Sharing workbooks

show more

author
Bob Flisser
subject
Business, Computer Skills (Windows), Spreadsheets
software
Excel 2010
level
Beginner
duration
6h 21m
released
Jun 09, 2010

Share this course

Ready to join? get started


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Welcome
00:04Welcome to Excel 2010 Essential Training.
00:07I'm Bob Flisser, and I'm excited to bring this course to you.
00:11I'll show you everything you need to get up to speed in Excel quickly.
00:14So you can be productive in the shortest possible time.
00:17We'll start by making sense of the interface and by using the Ribbon toolbar.
00:22I'll even show you how to customize it.
00:24Of course, the most important part of Excel is knowing how to write formulas.
00:28I'll make it understandable, so you'll be writing formulas with the best of them in no time.
00:33Once your worksheet has the information you need, you'll want to make it look good.
00:37We'll build a worksheet from start to finish that not only looks good, but also
00:41conveys the information clearly.
00:43Do you want to know how to create great looking 3D charts, or maybe you want a
00:47powerful way of summarizing or analyzing data?
00:50We'll do all that and more.
00:52So, let's get started learning how to use Microsoft Excel 2010.
Collapse this transcript
Using the exercise files
00:00If you are premium monthly member or a premium yearly member of the lynda.com
00:04Online Training Library, you have access to the Exercise Files that I use
00:09throughout this title.
00:10On this computer I've placed the Exercise Files on the desktop.
00:14On your computer, you can place the Exercise Files anywhere you like.
00:17There are files for most movies and they reside in subfolders named according to the chapters.
00:22Now it isn't absolutely necessary for you to use these files.
00:26You can use files of your own in place of them.
00:28If you're a monthly or annual subscriber to lynda.com, you don't have access to
00:33the Exercise Files, but you can follow along with your own work.
00:37So let's get to it.
Collapse this transcript
1. Getting Started
Exploring three common uses for Excel
00:00Before we start using Excel, I just want to take a few moments to talk about what
00:05is Excel for and what does it do.
00:07Well, just by the fact that you're watching this movie, I'm pretty sure that you
00:10have an idea of what you want to use Excel for.
00:12But you might not know what all its capabilities are.
00:15And I kind of group that into three basic categories, and those are
00:19calculations, charting and database features, and database integration.
00:23Now other people might have their own ideas own ideas, but I think this
00:25pretty much covers it.
00:26Let's talk about calculations, and you can see here we have a pretty
00:30typical Excel worksheet.
00:32Calculations could be simple.
00:34They could be complex.
00:35Over here we have simple adding up numbers.
00:38We're adding across, we're adding down.
00:40But Excel could do complicated engineering.
00:42It could do differential equations, all sorts of really cool stuff.
00:46Excel is also good at analysis and what-if questions.
00:51So you could look at different possibilities.
00:52For example, if you're going to borrow money, you might say well, what if
00:56interest rate is higher or lower, if I borrow more or borrow less, what will the
01:00result come out to be?
01:01And Excel is very good putting all that together.
01:03Just keep in mind Excel doesn't teach math to you, although it's a fairly good
01:08learning tool. You have to understand the concept of what you're doing.
01:11What Excel is great at is taking away the drudgery and the tedium of all the
01:16complex calculations.
01:18Let's talk about charting.
01:19If you click down here, we have the Charting tab.
01:23And this is a pretty cool chart, isn't it?
01:25It took me just about maybe two or three clicks to create, and you could
01:29create all kinds of really neat looking charts and lines, bars, pies,
01:35doughnuts, all kinds of things.
01:37And change them, all you want and do all kinds of formatting.
01:40You can use built-in formatting; you could use custom formatting.
01:44Well, here's what's also really great is once you know charting in Excel,
01:49you know it for all of the other programs in Microsoft Office.
01:52What I mean by that is let's say if you're in Word or in PowerPoint and you need
01:55to create a chart, they will open Excel for you.
01:59And they will use Excel as charting, so if you go and create a chart in Word,
02:03or go to create a chart in PowerPoint, they will open Excel and you'll have that chart.
02:08So that's pretty neat.
02:10If you're going to do data analysis, like summarizing large amounts of data,
02:14we'll do that in this course also, Excel can create what are called PivotCharts,
02:18which is sort of a combination of all the rows and all of the
02:22information of a database, and a nice- looking chart like this and kind of put
02:27it together for you.
02:28And I think that's pretty neat.
02:29We'll look at that also a little bit later.
02:31The third thing is Database, and here's a sample of a pretty simple Database.
02:35Excel is great to use as a database even if you have thousands, even hundreds
02:40of thousands of rows.
02:41Now it's not meant to be an enterprise wide database. You wouldn't do
02:44airline reservations on it.
02:46But if you have a lot of products like you have here, a lot of people, or who
02:50knows what, Excel does a very good job of sorting and filtering and connecting
02:57even to external databases.
02:59And there are special calculations you could do in Excel where it actually treats
03:03Excel as a database in some special ways.
03:07And we'll also look at that later in the course.
03:09So, now that we have a good idea of what Excel is for and what it can do,
03:13we'll take a look at the interface and make some sense of it.
Collapse this transcript
Touring the interface
00:00Excel screens can look kind of intimidating, especially if you're a new user.
00:04So I want to give you little tour of what's happening here, make things a
00:07little easier for you.
00:08Let's start near the top. First thing, most obvious thing is this giant toolbar
00:12and that's called the Ribbon bar.
00:14And instead of having drop-down menus and multiple rows of toolbars, like a
00:19typical program or like Excel had a couple versions ago, we have these tabs,
00:23kind of like a tabbed dialog box.
00:25And you can click any of these and see different sections of the Ribbon bar.
00:30Now this tab over here on the left labeled File, that's kind of special.
00:33Click the File tab, and this is what's called backstage view.
00:37Backstage view doesn't deal with the content of your workbook. This deals with
00:41the files themselves, the workbook as a whole, things like saving, opening,
00:45closing, printing, and so on.
00:47Now the keyboard shortcuts are the same as in other versions of Excel and just
00:51about every other program.
00:52So for example, you can press Ctrl+S to Save, you can press Ctrl+Open, you can
00:58press Ctrl+P to print.
01:00So if you know what some of these keyboard shortcuts are, they can reduce some
01:04of your mouse clicks.
01:05Now because we are in the Home tab, before we click the File tab, if you press
01:09the Escape key on your keyboards, it's on the upper left probably,
01:12that brings you out of backstage view and back to the Home tab.
01:16So it kind of remembers where you were.
01:18Now above the Ribbon bar, you have this little mini toolbar and that's called
01:22Quick Access toolbar.
01:24And the Quick Access toolbar is where you could put commonly used commands,
01:28things that you use a lot, rather than having to go and find them on the Ribbon bar.
01:32Now you also have here this little box it's called the Name box. Right now it
01:36says A3, because the currently selected cell is A3, where column A meets row 3.
01:42To the right of that we have this empty box, it's called the Formula bar.
01:46When you're typing in text or editing formulas, that's where the magic happens.
01:51Now across here, we have our columns, and columns are always letters and there
01:54are over 60,000 columns available going across.
01:58Now the rows, you can see here are numbered. You have over a million rows going down.
02:03They are about or a little bit more than 16.7 million cells in this worksheet.
02:09Now this is one worksheet. Take a look down here.
02:12We have Sheet 1, 2 and 3.
02:14By default a new Excel workbook will have three sheets.
02:18Now you can click them, see there's nothing in these.
02:22You can add worksheets, you can remove worksheets, you have to have at least one
02:25worksheet in a workbook. It kind of makes sense.
02:27You can have as many as you want. There's no limit.
02:30If you have a lot of worksheets, you can use these little VCR type of buttons to
02:35navigate back and forth through them.
02:37In the lower left corner, this Ready command simply means Excel is ready and
02:40waiting for you to do something.
02:41So for example, you can select stuff.
02:44Now over here in the lower right corner, we have these three little buttons
02:48here, are just different ways of viewing the worksheet.
02:50We'll talk about those.
02:51And you have this little Zoom assembly and you click this little minus to zoom
02:56out and you can click this plus to zoom in, or you could use this little handle
03:00on the middle and drag that left and right to zoom in and out.
03:04I really don't use that for using very often, because I find there's a better way.
03:08If you hold the Ctrl key down and then use the rolling wheel of your mouse and
03:12roll backwards, you can zoom out. If you hold the Ctrl key down and roll
03:17forwards, you can zoom inwards.
03:19If you are using a laptop, many laptops have like a little side panel on the
03:24right that you can move your finger back and forth and that works the same way
03:28as the rolling wheel on the mouse.
03:30So my advice is get yourself kind of familiar with what's happening on the
03:33screen and you'll find that your life in Excel is going to be a lot easier.
Collapse this transcript
Finding the commands you need
00:00Let's talk a little bit about the Ribbon bar.
00:02If you've used older versions of Excel or other Windows programs, this looks
00:06a little new because you're probably used to drop-down menus and multiple rows of toolbars.
00:11If you use the 2007 version, this looks pretty familiar and the deal is you have
00:15about eight tabs going across here, and these are like tabs of a dialog box and
00:20you click any of these tabs, and it shows you all the different parts of the Ribbon.
00:24So there are no drop-down menus here in Excel 2010.
00:26The Home tab is the default tab and that contains all around things that you
00:31would need at just about any time.
00:32Like dealing with the Clipboard, font formatting, alignment, dealing with
00:36formatting numbers and so on.
00:38The Insert tab is what you use to insert things.
00:41If you want to insert a picture, or a clipart, or a text box, or equations,
00:45that's what you do here.
00:46Page layout is how does your page look. Are you dealing in portrait oriented, or
00:50landscape oriented. You have page break, size of the page and so on.
00:54Formulas deals with your calculations. It might look a little intimidating if
00:58you're not familiar with this, but don't worry, we'll come back to this.
01:01The Data tab, some of this deal with connecting to external data, maybe a
01:06website, maybe a database, and on the right side here it deals with data analysis.
01:10The Review tab is helpful if you need to collaborate with others on your work.
01:14Maybe passing comments back and forth.
01:16So if you need to work in a collaborative environment, you want to get familiar
01:20with the Review tab.
01:21The View tab, a lot of this is personal preference. How does your page look, do
01:25see the gridlines or do not see the gridlines.
01:28How far in or out are you zoomed, did you split the screen, all sorts of options.
01:33Let's get back to the Home tab here.
01:35You notice that the Ribbon bar is broken up into sections that are called groups.
01:39So we have the Clipboard group, the Font group and so on.
01:42Now some of these like the Font group has this little launcher and if you rest
01:46your mouse pointer on it, it gives you a little bit of help.
01:48Not all groups have them, so for example, the Styles, Group, Cells,
01:52Editing, they don't have.
01:52Let's click the little arrow here at the launcher and the Font group, and
01:56you'll see that brings up the Font tab of the Format Cells dialog box.
02:00I'll just close this here.
02:01Click the launcher for the Alignment group and that brings up the Alignment tab
02:06on the same dialog box, so close that.
02:08Click the Launcher for the Number group and that brings up the Number tab of
02:12the same dialog box.
02:13So a lot of these kind of lead to the same place, and by the way if you're
02:16familiar with the Format Cells dialog box from older versions, this hasn't
02:20changed in many, many versions.
02:23Close out of here.
02:24By the way, another way to get to that Format Cells dialog box is Ctrl+1, not F1,
02:30just the number 1, hold down Ctrl and press 1 and that will bring you into
02:34the Format Cells dialog box. I'll just cancel that.
02:36Now also you notice that we have a graphic on the screen, we have this image here.
02:41If you click that image, you see you get another little tab and you have
02:44a Picture Tools section and there's one tab underneath it.
02:48There'll be other times when you have a section that has multiple tabs.
02:51Picture Tools has only one. Click Format.
02:53And you see this has everything to do with formatting that image.
02:57If you deselect it, click off it, you see that section goes away.
03:01Now there's another way that you could access the Ribbon bar and that is if
03:05you press the Alt key on your keyboard, you get these little letters showing
03:10these are mnemonics, so for example if you press P, that brings up the Page Layout tab.
03:15And if you press O, not zero, but the letter O, that brings up Orientation.
03:20Now I'm just going to click over here to get rid of that.
03:22Now hit the Alt key one more time. If you've got these letters there, maybe
03:26you hit the Alt by accident, and you want to get rid of these, you can just
03:30hit the Escape key, some of you need to hit a couple of times, and that will
03:33get rid of those mnemonics.
03:34Now if you don't like Ribbon bar, I have some bad news for you.
03:37That all of the Office 2010 applications are using the Ribbon bar, but the good
03:42news is that once you learn how to deal with the Ribbon bar in Excel, it works
03:46pretty much the same way in all of the other Microsoft Office applications.
Collapse this transcript
Using Backstage view or the File tab
00:00When it comes time to manage your file,
00:02saving, opening, and closing, Excel 2010 just like all of the other 2010
00:06applications has one place where you can do it all, and that's Backstage View.
00:11Click the File tab and that brings in a Backstage View.
00:14Now let's talk about what's going on here.
00:16Some things are typical.
00:17Saving, opening, and closing.
00:19I'll just go on and open a file.
00:21Let's open up this file here called backstage view.
00:24It doesn't really matter what's on there.
00:26Here is something that's pretty cool.
00:29Let's close Backstage View.
00:30Now, you can just click this little X here or you can press Ctrl+F, but when
00:35you go back to Backstage View and click this Recent section, you see it's up
00:40here as a recently opened file.
00:42You can just click it, and it comes up.
00:43Well, that's probably not a big deal, but here is what's kind of neat.
00:47Let's go back here to Recent, is that Excel will remember the last 50 files
00:53that you had opened.
00:55Over here, it will remember Recent Places where you work.
00:58But wait, there is more.
00:59What if this backstage view file is a file that you need to get to very often?
01:03We see this little pushpin.
01:05If you click that pushpin, and now you notice it's blue and it's pushed in,
01:08it means that Excel is going to retain it and it's always going to be in that position.
01:12Now if you hit the Escape key on your keyboard, that kind of brings you out
01:16of Backstage View and back to the Home tab or really whatever tab you were in recently.
01:21Now again, if we close it, go back here, and you see it's there and we can open
01:28it as many times as we want.
01:29Let's go back here to Recent.
01:31When you have any of these pushpins pushed in, they will always stay at the top.
01:36So the pushed in files will always be at the top of the list above any of these.
01:42Let's take a look at some of the other things here.
01:44If you click Info, here is all the information about this particular file.
01:49You have various properties here and you can assign permissions.
01:52We're going to come and deal with this in more detail in a later movie.
01:55Let's go to the New section and then in the New section, this is how we
01:58can create new files.
02:00We have templates, and we can create blank files.
02:03We'll also look at this in some detail later.
02:06Printing, it's right here.
02:08This is a new Print dialog box in this version.
02:10Everything you'd need to know about printing, anything you'd need to do, is right
02:14here in this window.
02:15You notice Print Preview is over here.
02:17So this is sort of a unified dialog box.
02:19Of course, you can always press Ctrl+P to get to Print.
02:22If you go to Save & Send, this is all about collaboration.
02:26If you want to send your file to someone, if you want to save it up on a
02:30website, save it under a SharePoint portal, if you have access to it.
02:34You can change your File Type to many different file types here.
02:38See all sorts of different options available.
02:40You can also create an Adobe Acrobat PDF directly from within Excel.
02:45We're going to come and look at all of this in more detail later.
02:48If you need help, you can click Help and get into the Help system.
02:52If you go down here to Options, this is how you can set all of the options for Excel.
02:57You see on the left side, this is broken into different categories.
03:01I'm just going to cancel out here.
03:04Notice because we went into the Print dialog box, we now have this dotted line
03:08here showing us a page break.
03:10So what's really nice about Backstage View is all of the Office 2010
03:14programs have them.
03:15If you go into Word or PowerPoint or Access, you'll have the Backstage View and
03:20you'll know immediately how to use it.
03:22I think that's a really great addition to this version.
Collapse this transcript
Maintaining file compatibility
00:00One great thing about Excel 2010 is that the file format hasn't changed from the 2007 version.
00:07The four letter .XLSX file format of Excel 2010 is the same format used by Excel
00:142007 and also by Excel 2008 on the Mac.
00:18Now, this is different from the three letter .XLS format of older versions of
00:23Excel, that is 97 to 2003.
00:26Even so, there is formatting that you can apply in Excel 2010 that won't be
00:31fully recognized in Excel 2007.
00:34Now at some point, it's only a matter of time that you will need to share files
00:38with someone using an older version.
00:40So the info I give you in this movie will hopefully save you some headaches down the road.
00:44Now if we take a look here, we've got these little icons here.
00:48These are from conditional formatting.
00:49We also have SmartArt down there.
00:51We'll take a look at conditional formatting and SmartArt a little bit later.
00:55But these particular icons were introduced in 2010.
00:59So if you were to open up this file in Excel 2007, these icons wouldn't even be
01:05visible, but the SmartArt would be completely visible.
01:08If you try to open this document up in Excel 2003, well, you might not be
01:12able to open it at all.
01:13If you were able to open it, not only will these icons not be there, but the
01:17SmartArt will just be a regular old graphic.
01:20So let's see how we can see this down to the 2003 version.
01:25Well, we'll go to Backstage View.
01:25So I'd go up here, and click the File tab.
01:29Then down over here choose Save & Send.
01:31Under File Types, choose Change File Type.
01:34Well, we want to change it to the 97-2003 Workbook.
01:37All those versions in the same format, choose that.
01:40Now over here click Save As.
01:43Now we can save this as Excel 97-2003.
01:45I don't know about you, but I think that's just way too many steps to get to this version.
01:50So just cancel that.
01:52An easier way is on your keyboard, just press the F12 key.
01:56The F12 key immediately brings up the Save As dialog box.
02:00That will work in all of the Office programs in just about any version you can think of.
02:03So now what we have to do is click the Save As Type and now choose Excel 97-2003.
02:11Well, let's call this, instead of current format, let's change the file name.
02:15We'll call this current format 2003, just so we know what that is, and click Save.
02:21Now this pop-up comes up.
02:22I'm just going to stretch this out here a little bit.
02:24This tells us that the conditional formatting won't survive the trip.
02:28You can see this Significant loss of functionality.
02:31This tells us that some of these things simply will be removed, some of the
02:35things will not be editable, some cells, you can read this.
02:40Down here, we have Minor loss of fidelity.
02:43You might wonder, all right, well, where are all these things?
02:45If you click Find, it will select.
02:48Let me just hit F12 again.
02:50Go back, and we'll call this again current format 2003 and Save.
02:58The same pop-up comes up.
03:00So any of these, you can click Find, and it will select exactly what it is that
03:05is going to cause a problem.
03:06So, someone who opens this in Excel 2003, they won't see the
03:10conditional formatting.
03:12It tells us the SmartArt won't be editable.
03:14That'll be converted to regular shapes. All of these we went over. Now let's do this.
03:18Let's throw caution to the wind and I say that's fine, we'll deal with it. So click Continue.
03:22Now that goes away, and you see this tells us that in it's current format 2003.xlsx.
03:29The worksheet looks fine.
03:30We can see the icons.
03:32We can click the SmartArt.
03:33We have this little pop-up.
03:34As I said, we'll talk about SmartArts some more.
03:36Well, what's the difference?
03:38The reason is that we still have it open.
03:40Well, let's close it.
03:41You can either press Ctrl+F4 or click your Close button.
03:44Let's go back to Backstage View, back to Recent, and here is the file we just saved,
03:49current format 2003, three letter extension, XLS, click it.
03:54Now you see on top, it shows us we're in Compatibility Mode.
03:58Now you can see those icons are gone.
04:00And the SmartArt, if you click this, you have regular shape editing.
04:05It's really not fully editable.
04:08Now, let's open another file.
04:09I'm just going to press Ctrl+O to bring up my File > Open.
04:13We have this older format workbook, and open that up. You see this.
04:18We even have an older header on top and this also shows us Compatibility Mode.
04:23So this is an older format.
04:25Now what if we want to save this up to the newer version?
04:28Well, the same thing.
04:29We can go to File and we can choose Save As, or press F12.
04:34And because this is 2003, we can click this and I'll save this as a regular
04:40Excel Workbook with a four letter extension.
04:43Now let's call this an upgraded format workbook.
04:48Click Save.
04:49It still says it's Compatibility Mode.
04:51So if we close it, go back to Recent and reopen it, now it's no longer
04:57in Compatibility Mode.
04:58This is now fully editable and we can do anything with this, as though we
05:02created it in Excel 2010.
05:04So this may seem a little confusing at first, but there are so many
05:08installations of older versions of Excel still in use.
05:12You really want to be aware of what you can and cannot do and how you can get
05:16from one version to another in Excel.
05:18You're going to be a lot happier.
Collapse this transcript
2. Worksheet Basics
Creating a worksheet
00:00Now, what we'll do is create a brand- new worksheet from scratch and this is a
00:06very typical thing that you open Excel, you have a blank sheet rather than
00:09something that somebody has given to you, and you go.
00:12So let's click Cell A1 if you need to, where Column A meets Row 1, and let's just start typing.
00:17I'll say Two Trees is the name of our company, Olive Oil Company.
00:23Now when you're done typing you know you're done typing but Excel doesn't know
00:27you're done typing, and you see you have your cursor flashing there.
00:31Well, in order to tell Excel that you're done and you want to make this
00:35permanent, you have to press the Enter key.
00:38If you start typing, let's say go down here and type Sales, if you don't press
00:42Enter nothing happens and in fact if you hit the Escape key, then it goes away.
00:47Now that's not an undo because you haven't done anything yet.
00:51So let's type in, again, let's say Sales of bath soap, first half of year.
00:58And again, you know you're done typing, you have to tell Excel.
01:01So we press Enter and notice also that when you press Enter, you're not just
01:06entering what you're doing.
01:07You're also going down one row below.
01:09We'll talk about that also in a little bit.
01:11So let's click back on this and it looks like we have some words in A2 and that
01:17you have other words in the other cells.
01:19But that's not what's really happening.
01:21When you have A2 selected, look up here, in the formula editing bar, you see all
01:24of the text and if you go to cell B2 or C2, D2, you notice that the formula
01:30editing bar is empty.
01:32So what's happening is the text is really contained in A2.
01:35It's just kind of borrowing the space next to it.
01:38Well, what happens if you go here into B2, which is the formula editing bar?
01:41It tells you it's empty and available to type.
01:43Let's just type in some stuff and Enter.
01:47Now you notice that the text isn't continuing because there is text in the way. Cell B2 is filled.
01:53If you take that and delete, now your text can continue.
01:56All right, let's put some other things in here. Let's go here to A5 and let's
02:00type in Region. I want to say what region of the companies we are looking at.
02:04Let's put in say North, South, Central, and West.
02:08Okay, and let's put in the months.
02:10So let's go over here and I'll type January and I'm just going to hit the
02:14Tab key to get to the next cell or I could hit the Right arrow key to get to the next cell.
02:24And there is an easier way to type in the months that we'll look at in a little
02:27while, but right now, we just want to do this.
02:28Now here's something that's kind of important.
02:30When I'm done typing, and I see a lot of new Excel users will do this, they'll
02:34type in a whole sheet and when they get to the very last cell they're typing in,
02:36they just kind of sit there.
02:38Well, you can't do that.
02:39You have to press Enter.
02:40But here's what's also important is, instead of pressing Enter and going down
02:44one row, what if I wanted to Enter and stay put on cell G5?
02:49Well, instead of pressing the Enter key by itself, hold down the Ctrl key and
02:53press Enter and that way you can enter G5 and stay put on G5.
02:58Well, let's look at a few editing techniques here.
03:01You can use the four cursor keys on your keyboard to navigate up, down, right, and left.
03:07Let's go out here.
03:09If you hit the Home key, you zip all the way to Column A but staying in the same row.
03:14If you press Ctrl+Right arrow, you stay in the same row and go all the way
03:18to the last column.
03:19You could do this going up or down also.
03:21If you press Ctrl+Home, you get to the first cell, Cell A1.
03:26If you press Ctrl+End, not Ctrl+N like New File, but END, that brings you to the
03:32end of the worksheet.
03:34Now let's look at a few editing techniques here.
03:36Let's say instead of June, I wanted this to be a Total column.
03:39Well, you can click it and just delete and that gets rid of it and I'm going to
03:44undo and you have your Undo button up here where you could press Ctrl+Z to undo.
03:48Ctrl+Z works in every program, whether it's Microsoft or not, and if you have a
03:53hard time remembering that, you might go on to think that Z stands for Zap,
03:56the last thing I did.
03:57Well, if I want to put the word Total here, I could just type the word Total.
04:00I don't have to delete anything.
04:02I'll just press Ctrl+Enter to stay put on that cell.
04:05Now, what if I wanted to edit what's in one of the cells?
04:09Well, a few things I could do is maybe if I wanted this to say Regions instead
04:13of Region, I could just double-click and that puts my cursor in there and I can type.
04:18I'm just going to escape out of there. Or when your cell is selected you
04:22can click up here in the formula editing bar and you can type.
04:26I'm just going to escape out of there or you could press the F2 key on your
04:30keyboard and that will also let you edit.
04:33So there's three ways that you could edit.
04:35Well, here's a nice little technique.
04:36If you want to select one word in a cell that has bunch of things,
04:41so, for example, Sales of bath soaps first half year, we have a bunch of words in here.
04:44What if I wanted to select the word Sales only and not the rest of the words and
04:48that cell is not active, that's two double-clicks.
04:51The first double-click puts your cursor in the cell; the second
04:54double-click selects the word.
04:56So I'm going to put my mouse pointer on the word Sales.
04:58First double-click inserts the cursor, second double-click selects the word, and
05:03now if I want to type something like Volume or whatnot.
05:07So that's a handy thing to do.
05:08Again, I'm just going to press Escape to get out of there.
05:11So now that you know some handy editing techniques, you really want to keep them
05:15in mind because it's going to make your life in Excel a heck of a lot easier and
05:19remember some of those shortcuts too. I think you're going to like those.
Collapse this transcript
Techniques for copying and pasting
00:00I want to show you some copying and pasting techniques.
00:03First thing we do before even copying and pasting is I want to show you
00:06some moving techniques.
00:07Let's just select this area here.
00:09Now most of the time when you're using Excel, your mouse pointer is this big old
00:12Plus sign, but put the mouse pointer anywhere on the edge of the selected area
00:17and you see your mouse pointer becomes a four-headed arrow.
00:20When you get that four-headed arrow, you could just drag anywhere on the
00:23worksheet you want and that whole area goes together.
00:26Now I want to undo, so I could hit this Undo button over here.
00:29You could also press Ctrl+Z and Ctrl+Z will undo in every application under the
00:34sun whether it's Microsoft or not.
00:36To remember it I always think that Z stands for zap the last thing that I did.
00:41Well, I want to copy this area.
00:43So when I get that four-headed arrow mouse pointer, let's hold down the Ctrl
00:47key on the keyboard.
00:48When you hold down the Ctrl key, see that four-headed arrow turn to a regular
00:51arrow with a little plus sign next to it.
00:52When you get that little plus sign, keep holding the Ctrl key and drag down a
00:57little bit and let go of the mouse first before letting go the keyboard and
01:02now you've copied it.
01:03We could do that again for practice.
01:04Select an area here, get a four-headed mouse pointer, hold down the Ctrl key
01:09and drag to the right and always remember to let go of the mouse first and let
01:13go of the key second.
01:14So that's a nice handy way to be able to copy some data.
01:18I'm just going to delete that.
01:20Here's another handy tip.
01:21Let's say Column A was a little bit wider and if you put your mouse pointer up
01:25here on the border between Column A and Column B and the header, you see the
01:30mouse pointer is that two-headed arrow.
01:32That has to be up there in the header.
01:33It can't be in the worksheet and when you get that two-headed arrow, just drag
01:37to the right a little bit, just so Column A is a little wider.
01:40Now here's why we're doing that.
01:41Let's select this and just copy to the Clipboard, I'll press Ctrl+C, and
01:46let's come over here.
01:48Now if you simply do a regular old paste, just press Ctrl+V, it pastes in, but
01:52you notice that the first column here Column J is narrow, the same width as all these others.
01:57It's not wide like it is in the original.
01:59And again, just Ctrl+Z or hit the Undo key. Let's click back there.
02:03Up here in the Home tab, you have your Paste button and if you click it, there's
02:07a whole bunch of options here.
02:09The first one is just the regular paste, just like we did before.
02:13You notice that when I move my mouse away the thing disappears.
02:15This is just a preview.
02:16We actually haven't done it yet.
02:18This is new to this version, by the way.
02:19Now, if I go down here, now you see that Column J is as wide a Column A.
02:24So the destination columns are the same width.
02:27You can see that's a little pop-up help there.
02:29Here's another option that is really great.
02:31If you choose this one here that's Transpose and now you see what had been
02:35the rows are now the columns, what had been the columns are now the rows, just by a simple click.
02:39Now let's take a look down here.
02:41This is Paste link and you might be wondering, what the heck are all those zeros doing?
02:45Well, this is taking the values from the cells in the original and linking to
02:51the cells where you are pasting.
02:52Now, an empty cell has a value of zero. That's why you're getting all those zeros.
02:56This one here we'll paste as a picture.
02:59You might wonder well, what's that all about?
03:00We'll click that and now you see this is a picture and you have your selection handles.
03:06Put your mouse pointer on one of these dots and now you can shrink it, you can
03:10enlarge it, and you have this little green dot on the top, put your mouse pointer
03:14there, and you can rotate it.
03:16That's interesting but why would I want to do that?
03:18Well, maybe if you're creating a presentation in PowerPoint or in Word, you want
03:21to overlay some of your numbers there, that might be something useful.
03:25I'm just going to delete that.
03:26Now you see the marching ants are around this original area. That means that
03:30these cells are still in the Clipboard so you can still paste.
03:33In fact, let's maybe go to Sheet 2 and we can paste and maybe go to Sheet 3 and we can paste.
03:38Now, let's go back to Sheet 1 and if you hit the Escape key, now it clears
03:43out the Clipboard and the marching ants are gone. Notice the Paste button is
03:46grayed out. If you press Ctrl+V, nothing happens because we've cleared out the Clipboard.
03:51So those are some really great handy features of using the Clipboard and
03:54hopefully that'll save you a little bit of time later on.
Collapse this transcript
Entering data automatically with Auto Fill
00:00Rather than typing a lot of repetitive data, why not let Excel do it for you?
00:04If you take a look here at this sheet, we have months and we did this in
00:08the previous movie.
00:10Now let's just select all those cells and delete. Let's get back to this first
00:14one here in B5 and type the word January and instead of pressing Enter, which
00:20would move us down to the next row, let's press Ctrl+Enter so we stay there.
00:24Now, if you take the close look at the cell, you'll notice in the lower right
00:28corner of the cell is a little square dot.
00:31Now your mouse pointer is usually this big plus sign, but if you put the mouse
00:35pointer on that square dot, the mouse pointer turns to a crosshair.
00:38That's what's called the Autofill mouse pointer or the Autofill handle.
00:43When you get that and it has to be that, it can't be another mouse pointer, drag
00:46to the right and look what happens.
00:49It fills in the months for you.
00:51Well that's pretty cool and there's a few other things we could do.
00:54Let's go down here to Sheet 2.
00:56And this Sheet 2 is expecting to see weekly average.
01:00So in that same cell B5, type Monday and again press Ctrl+Enter, put your mouse
01:06over that dot so you get the crosshair and then drag out here until you get to Friday.
01:12Well that's pretty cool, but there's a few other things we can do.
01:16Let's go to Sheet 3 and just show you a few things.
01:19Let's say we wanted January, but we wanted to abbreviate it and you can just
01:24type this here in the first cell.
01:25So I'll just type January again, press Ctrl+Enter, and this Autofill works going
01:30down a column, not just across a row.
01:31When you get that crosshair, you can drag down and see what happens is it repeats.
01:37Once it gets down to the end of the series, the series just starts again.
01:42And the same for the days. Now you can type in the day, type in Monday and
01:48Autofill down to the bottom and it repeats.
01:49It'll just make the columns be a little wider.
01:51If you abbreviate it, press Ctrl+ Enter, it will repeat abbreviated.
01:57Well, that's pretty handy.
01:58What do you do for numbers? Numbers are a little different.
02:01Let's go up to the top here and maybe just type the number one, Ctrl+Enter, and
02:05when you Autofill it, notice it just gives you a whole lot of ones, and the
02:09reason is that there is no built-in series.
02:11Let's go over here and type in a 1. Ctrl+Enter. This time if you hold the Ctrl
02:16key down, when you get that Autofill handle, now when you drag down and I'll
02:20just let go off the mouse first, now it will increment.
02:24Well what if you want to create your own series?
02:27Let's go over here in column H, maybe you type in 10, press Enter and maybe you
02:31type in 20. Remember to press Enter.
02:33Now select both of these cells together.
02:36When you have multiple cells selected, they share a common Autofill handle.
02:41Now put your mouse pointer on it, get the crosshair, now when you drag down,
02:46you notice that it keeps that series.
02:49So that's all pretty cool.
02:51Well this is all fine because months and days are built-in series, but wouldn't
02:57it be nice if you could create your own sort of pre-made series?
03:01It could be a series of your clients, or vendors, or people you work with. It could be anything.
03:07Well, let's say we wanted a list of regions where our company operates.
03:12We can create a custom list.
03:14So here's what we do.
03:16Go up to the File menu, so in Backstage view, go down here to Options and then
03:22in the left side here, go to Advanced and let's scroll down. Down towards the
03:28bottom, we find this button Edit custom lists.
03:31Click that and here it shows you the days and the months, so it's great.
03:34Now over here it says List Entries. Click in this empty box and maybe let's type
03:38a few things. Let's say we operate in New England and the Mid-Atlantic,
03:45Southeast, Midwest, Southwest, and maybe also in Pacific.
03:54Now click Add and you see that adds the list here. Now that's great.
03:58Click OK, click OK again.
04:01Anywhere you want you can type in New England.
04:05I'll press Ctrl+Enter and I'll make that count little wider.
04:08Now when we Autofill, you'll notice if gives you that list.
04:12What's also really great is you don't have to start at the beginning of the list.
04:15Maybe if you started with let's say Pacific, it would still give you that list.
04:22Or maybe if you started on Thursday, and Autofill and this will work if you fill
04:28across as well as down.
04:30It'll give you that list.
04:31So this is a really great feature. Let Excel do a lot of the typing for you.
Collapse this transcript
Targeting large data groups
00:00In Excel, as with all other Windows programs, you have to know how to select
00:05your data if you want to modify it.
00:07So let's take a look at a few techniques.
00:09Well some are pretty straightforward. Put your mouse pointer here at the
00:12beginning and you can just drag and as long as you don't let go off the mouse
00:16button, you can reduce or enlarge the selection area.
00:20Okay, that's great, but what if you wanted to select some things that are not
00:24quite so straightforward?
00:26Well let's do this.
00:27Click on the first cell here A5.
00:29Now if you scroll down, you can see there's the end of this selection area.
00:33Well, it can be kind of hard to try to drag to select that, because Excel starts
00:37doing that and it can scroll much faster than you can select.
00:42So I'm just going to press Ctrl+Home.
00:44So here's an easier way to do that.
00:46Click the first cell, scroll down, so I'm just to use going to use the rolling
00:49wheel on the mouse, put your mouse pointer on the last cell there, and before you
00:52click hold the Shift key down.
00:54So if you Shift+click, now you can select that entire area.
00:57Then you could go in reverse too.
00:59Just click to deselect, click the last cell, go up here and Shift+click the first one.
01:06Now let's say if you know where you want to select to, so for example, this cell
01:10here we know is cell G28.
01:13Let's click over here and now click up on that Name box.
01:17Now if you simply type G28 and press Enter, your cursor goes to G28.
01:23Well, that's great but if you click there and click in the Name box, type G28 and
01:28press Shift+Enter, now you can select that entire area.
01:32So if you want to select large areas of cells, I think that's a pretty good way to do it.
01:37Well, you could also select random areas.
01:40So for example, I'll select this row, hold the Ctrl key down, and with the Ctrl
01:45key down, you can select random areas, even individual cells, as long as you're
01:52holding the Ctrl key down and then click anywhere and you can deselect.
01:56Now you could do this with entire columns and entire rows.
01:59So example, you can click the header for Column B and if you hold Ctrl key down,
02:05you can click headers for other columns and select other columns.
02:08Why would you want to do this?
02:09Well, maybe you want to make them Bold, so you hit the Bold button, or maybe you
02:12want to make them Italic or some other formatting.
02:15So that's what that's for, and that's the Ctrl key.
02:18If you click the header for column B and Shift+click the header for column G,
02:23now you select all of them.
02:25You could also drag to select.
02:26Make sure that it's a down arrow.
02:28Then you can drag to select, and rows work the same way.
02:32You can click a row, hold down your Shift key, and then Shift+click to select
02:37more, Shift+click to select fewer.
02:39If you use the Ctrl key you can select one and any random other rows that you
02:45want and again you can click somewhere to deselect.
02:49Now if you wanted to select an entire column or an entire row, of course you
02:53can click just the header of one or the header for the other and there's a
02:57little shortcut for that.
02:58If you press Ctrl+Spacebar, you can select an entire column.
03:02If you press Shift+Spacebar that will select an entire row.
03:06Now what if we wanted to select this whole data area?
03:10Now this data area, this begins at row 5 ends at row 28, and ends at column G.
03:16This is what's called a current region in Excel terminology.
03:21Click anywhere in this current region and to select all the cells in this
03:25region, press Ctrl+A and that selects all the cells in that current region.
03:30But what happens once your current region is selected and you press Ctrl+A
03:34again, that selects the entire sheet.
03:37So if you want to select all 16.7 million cells in the worksheet and the current
03:41cell is cell there that's surrounded by other cells, just press Ctrl+A twice.
03:46Well, what if you have the cell out here that selected that's surrounded by
03:50empty cells, then you only have to press Ctrl+A once.
03:52Now there is another technique. Over here in the upper left corner where the
03:57columns and rows meet is this little gray box. Click that and that always
04:01selects all of the cells in the worksheet, not just current area.
04:05And again, why would you want to do that?
04:06Well maybe you want to change the font. Now I'll click the font selection here, and
04:10I'll choose something else.
04:11Now I've changed the font of all of the cells including cells that I
04:16haven't typed in yet.
04:18So as long as you know how to select and how to move around in the worksheet,
04:22you're going to find that you're doing Excel much faster.
Collapse this transcript
Changing a worksheet's structure
00:00Very often you'll find the need to insert cells into an existing worksheet.
00:05So let me show you how you can do that with rows and columns and even cells
00:09right in the middle of a row and column.
00:11Well, for example, let's say we wanted a blank column between June and Total.
00:16Well let's go up here to the header for Column H and notice the mouse pointer
00:21is this down arrow.
00:22And just click with the right mouse button and from the pop-up, choose Insert
00:27and it inserts a brand-new column right before the column that you clicked.
00:32And that's just kind of a Windows standard is new items generally go before the
00:36current item, whatever that item is. Could be row or column and so forth.
00:39And I am just going to press Ctrl+Z to undo that.
00:42Well, what if I select more than one column?
00:44Let's go over here and let's select Column B and C. And I have a few
00:49techniques to do that.
00:50Once you have both Column B and C selected, again, make sure it's this down
00:54pointing arrow on the header, right-click, choose Insert, and now it inserts two columns.
00:59So you now have a new Column B and a new Column C. And I'll just press Ctrl+Z to undo that.
01:04Rows work the same way.
01:06Let's say we want a row above Row 5, put your mouse pointer here on the
01:10header for Row 5 so it's that right pointing arrow, click the right mouse button
01:14and choose Insert, and it inserts a new row.
01:17Notice also that it picked up the formatting of the row above it, because that's
01:21where you inserted the row.
01:22Now, of course you can always get rid of that color.
01:24But we'll talk about that in another movie.
01:26Again, I'll just press Ctrl+Z to undo.
01:29What if we select a few rows?
01:31Maybe this time I'll select three rows here.
01:34So I am just putting my mouse pointer on this first row so it's that right
01:37pointing arrow and I am just clicking and dragging down.
01:40And then when I right-click and choose Insert, you see it inserts three rows,
01:44because I have three rows selected.
01:45Again, let's just undo.
01:47Well let's say you wanted to insert cells in the middle of a worksheet.
01:51Let's select from this January down to the Total, right-click in the highlighted
01:56area, and choose Insert.
01:58Now, because you're inserting cells in the middle of the worksheet, Excel has to
02:02figure, all right, if we are going to do that, we have got to push the stuff
02:05aside and which way are we going to push it?
02:07Up, down, left or right?
02:08Well, Excel is pretty good at guessing and here if we choose Shift cells
02:12right and click OK,
02:13now you see everything is pushed up.
02:15Look what's happened here.
02:16This area has been pushed out to Column I, so it's not quite a new column
02:20that's been inserted.
02:21It's new cells being put in, in the middle.
02:23I'll just Ctrl+Z to undo.
02:25And the same thing if you go across a row.
02:28If we select across a row here, right-click and Insert.
02:32And this says okay, again, which way do you want to go?
02:35Because we selected across the row, Excel correctly guesses that we want to
02:38shift the cells down. Click OK.
02:40Now it has picked up the formatting, but you see it's shifted everything down
02:44and now we have this empty row.
02:45And you can just again Ctrl+Z to undo.
02:49So most of the time, you want to insert an entire new column or an entire new row,
02:53not cells in the middle of the worksheet.
02:55But now you see the technique is the same so you could do it either way.
Collapse this transcript
3. Excel Formula Basics
Understanding formulas and functions
00:00Let's talk a little bit about calculations.
00:03Excel does calculations using formulas and using functions.
00:08Yes, I know the term sounds similar.
00:10So let's make this a little bit more clear.
00:12Formulas and functions are the same in that they always start with an equal sign.
00:18There's never any exception.
00:20When you're calculating in pencil and paper, well the equals sign comes in
00:23the middle, doesn't it?
00:24Well, that's not the way it is with Excel.
00:26With Excel, you always start it at the beginning.
00:28So let's talk a little bit about formulas.
00:31Formulas are basic arithmetic:
00:33addition, subtraction, multiplication, division, and exponents.
00:38And if you're not familiar, an exponent is simply raising something to a power.
00:41Like if you're taking a number and squaring it or cubing it.
00:44Well, let's take a look at what's happening in Excel.
00:48In this workbook, we have a very simple formula.
00:51And I think it'll make sense to you if we do this kind of the wrong way first,
00:56and then the right way.
00:57In the first worksheet here, the Formulas worksheet, we have got a couple of numbers, right?
01:01There is one number.
01:02There is another number, and two ways of calculating it.
01:07This way I have it hard-coded and this way I have it using a formula.
01:11Now, the formula here, I'm simply saying = 2 + 2.
01:16But we don't really want to do that.
01:18We really want to say not what is 2+2, but what is the total of this cell, D4,
01:25where Column D meets Row 4, plus the content of this cell, D5.
01:31So the wrong way is to say =2+2.
01:34The right way is to say equals the contents of D4 plus the content of D5.
01:39You might wonder well, what's the big difference?
01:41They're both fine, they both have the correct number.
01:44But what if we do this?
01:44Let's take that number, and let's just change that.
01:46I'll just change it to a 3 and Enter.
01:49Well, now this is wrong, because it's still 2+2.
01:54So this formula has absolutely nothing to do with what's happening over
01:58there, because it's 2+2.
01:59It's not the content of D4 and D5.
02:03This one has a correct number because this formula is D4+D5.
02:09Let's talk about functions here.
02:11There are over 300 functions and don't worry, we are not going to go
02:15through every single one.
02:16But you should know that there are functions for so many different tasks.
02:20Finance, statistics, engineering, physics, and so on.
02:24So functions are like pre-made named formulas.
02:28Every one has its own specific task, and they all use at least one set of parentheses.
02:34Let's take a look at the syntax.
02:36The general syntax of a function is you have the equal sign, we know that.
02:40Then you have the name of the function and then you have at least one set of parentheses.
02:44Now, in the parenthesis, some functions will have a lot inside the parenthesis.
02:50There are some functions that had nothing inside the parenthesis, but you have
02:54to have at least one.
02:56Well, here are some sample functions.
02:57An Average function, if you want to take the average of some numbers.
03:01You might want to take the square root of some numbers.
03:03Or you might want to figure out what's the payment if you are going to borrow
03:07some money and we have an interest rate, and payment periods and all that jazz.
03:11So you could find out how much you're going to have to pay every month.
03:14We are going to use that also later in the course.
03:16So let's take a look at an example of using the function.
03:20In this workbook here, go down and click the functions worksheet.
03:24Now, assume we have a column of numbers and we want to get the average.
03:27Now, the wrong way to do it is to do it manually.
03:30And we could add up all of these numbers here in Column D and then divide by how
03:34many numbers there are.
03:35Well, that's really not a great way of doing it, because first thing we have to
03:39figure out is how many numbers are.
03:40I can click on the first one and see well it's Row 2, click on the last one see that's Row 15.
03:45You could figure out there are 14 numbers, and that's not a very good way of doing it.
03:49You could select all of the numbers, and then down here in the status bar, this
03:53will show you that you have 14 selected. Still too prone for errors.
03:56But the thing is, you're looking at it and say well, wait a minute doing it the
03:59manual way, and I have this using the Average function, they are both correct.
04:04So what's the problem?
04:05Well, what happens if you change something?
04:07Let's take this number.
04:08Maybe if I just change a number, well the numbers are still correct.
04:12Now, I'll take this number here, and I'll change it, and the numbers are still the same.
04:17But what happens if we delete a few?
04:18Now, all the sudden there aren't 14 numbers. There are 12 numbers.
04:23Well, this one is still divided by 14, so that's a wrong number.
04:26This one is using the Average function.
04:28And this is saying hey just take the average of this bunch of numbers.
04:32So that's why this is giving you the correct answer.
04:34So now that we see what formulas and functions are all about, let's go and do
04:39something useful with them.
Collapse this transcript
Entering data in a worksheet
00:00What we have in this worksheet is the beginning or maybe close to the ending of
00:05a simple basic expense report.
00:07And I want to show you few editing techniques before we go and use this.
00:12First thing you can see this Column A is not quite wide enough.
00:15Now you may know already but if you put your mouse pointer up here in the
00:18header in the border between Column A and Column B, when you get that
00:22two-headed mouse pointer, you can just sort of click and drag to the right.
00:25But how far you are supposed to go.
00:27Maybe you went too far, maybe not far enough.
00:29I am just going to press Ctrl+Z to undo.
00:31A little tip here is when you get that two-headed arrow there between two
00:34columns, if you double- click the column auto fits.
00:39So it's now as wide as the widest item in the column.
00:42That's pretty cool.
00:43Now, let's fill in the months.
00:45You may know already to auto fill, so if you click on January, put the mouse
00:48pointer on that little Auto Fill dot in the lower right corner.
00:51Make sure the mouse pointer is a crosshair. It has to be the crosshair.
00:55And if you drag that out, you can fill in the months.
00:58And I'll just go over here and type the word Total.
01:01And let's take a look at the numbers.
01:03If you want to fill-in these numbers fairly quickly, what you do is this.
01:06Let's select the whole range.
01:08So that's all three months.
01:10That's all the cities.
01:11Now, in this selected area, you notice that the cell in the upper left corner
01:15is a little different.
01:17If you hit the Enter key, you notice that the active cell is just in
01:21that selected area.
01:23So there is always one active cell no matter what is selected.
01:26Well, here is what we do. Let's go down here to the number for Dallas and
01:30January and let's just type in 7532, press Enter, and the number here is 2589 for Boston.
01:38Now, that's the end of Column B in that selected area.
01:41When you press Enter, it just cycles back to the top of the next column.
01:45So I'll put in 3421 for San Francisco.
01:49And I'll simply hit the Enter key, and then when I get down to Boston for
01:52February, I'll put in say 2080.
01:56And when I Enter, I go up to the top the next column.
01:59So if you select an area like that, you could fill the numbers fairly quickly.
02:04And if you are using a full-size keyboard that has a numeric keypad on the right
02:08side, then you can type those numbers in using this selection technique and get
02:13things done very quickly.
02:14It's a lot faster than using the numbers across the top of the keyboard.
02:17Okay, that's great!
02:18But before you actually start adding some numbers here, we need to talk a little
02:21bit about the order of operations.
02:25So here is a little math test for you.
02:28What is the right answer to 2 plus 3 times 4?
02:32Sounds simple, doesn't it?
02:33Well, is the correct answer 20?
02:36Or is the correct answer 14?
02:38Well, here is how you can figure out?
02:40The order of operations priority goes to parenthesis.
02:44Second priority is exponents, but that's if you are raising the number to a
02:48power like squaring the number or cubing the number.
02:51Multiplication and division come next. It doesn't matter what you do first,
02:55multiplication or division.
02:56And then, addition and subtraction. Again, it doesn't matter what you do first,
02:59addition or subtraction.
03:01So the answer to 2+3*4 is you multiply 3*4 first and then add 2.
03:08So the correct answer is 14.
03:11The easiest way to remember this, you may remember this from school, is please
03:15excuse my dear Aunt Sally.
03:17Excel does it the same way that you will do it on pencil and paper.
Collapse this transcript
Adding numbers manually
00:01If you completed your expense report worksheet from the movie on entering data,
00:05then you should have a worksheet that looks something like this.
00:09I want to show you how to add numbers.
00:11Now, adding numbers is probably the most common calculation that you could do in Excel.
00:16And it's so common that there are whole bunch of different ways to do it,
00:20probably about a half dozen different ways.
00:22So let's start off simple.
00:23I'm going to show you the basic manual way.
00:26I kind of think of it as the Cherry Pick method.
00:29So we want to start off by adding across Row 6.
00:32We want to add the numbers here for San Francisco.
00:35So click on cell E6, and in E6 we want to say add this number and that
00:42
00:42number and that number.
00:43Well, we know that every formula, every function starts off with an equal sign.
00:47So type in an equal sign.
00:49As soon as you do, you're in Editing Mode, and you can see the toolbar is mostly
00:54grayed out because we're editing.
00:56So we want to click that first number here.
00:57Here click that 6100.
00:58As soon you do, you see the marching ants are around the 6100, you see =B6 is in
01:04the cell, and up here in the Formula bar, you can see =B6.
01:08And this is ready to roll.
01:10So type a plus, click the next number, type the plus.
01:13You can see it's color coded.
01:15The first cell is blue.
01:16The second cell is green.
01:18Click the next one, you get the marching ants, and that's purple.
01:21So now our formula reads =B6+C6+D6.
01:25Those three cells and that's it.
01:28Just press Enter, and it enters the number and goes down to the next cell.
01:33Now, what you don't want to do is you don't want to type a plus at the end.
01:38And I see a lot of people new to Excel will do that.
01:41And if that happens you get an error.
01:42There's good chance Excel is going to fix it for you.
01:45Let's just try that one more time.
01:46So over here, we want to add across the row for Los Angeles.
01:49So we'll say equals, click the first number, type the plus, click the second number,
01:56type the plus, click the third number.
01:58No more plus, we're done.
02:00Also, if you're using full-size keyboard and you have the keypad on the right side,
02:04you are probably best off using the plus on the right side than trying to
02:07use the plus that's next to the Backspace key. Because if you're using a plus
02:10next to the Backspace key, you have to remember to hold the Shift key down and
02:13it's just not as efficient.
02:15Now, we're done with adding these numbers for LA.
02:19So instead of pressing the Enter key, just press Ctrl+Enter. All right?
02:22Hold the Ctrl key down and press Enter.
02:25So we're right there.
02:26And we can Auto Fill this.
02:28Put the mouse pointer on that Auto Fill handle down in the lower-right corner.
02:32When you get that crosshair, you can click and drag down to the bottom and that
02:37fills in all the numbers. But wait!
02:39There is more.
02:39You could do this even easier than that.
02:41I'm just going to press Ctrl+Z to undo.
02:43When you put your mouse pointer on that Auto Fill handle, instead of generally
02:47clicking-and-dragging, when you get that crosshair just double-click.
02:52And when you double-click, it automatically fills down to the bottom of the row.
02:55Let's take a look ay what's going on.
02:57Click on that first number, that 23,000 and change, you could see this is B7, C7, D7.
03:03Click the next one, B8, and the next one.
03:06You see what Excel is doing is it's not literally copying the formula. It's adjusting it.
03:11It's adjusting based on the row.
03:14Excel could do it, because the way we're writing these cell references, these
03:19are what are called relative cell references.
03:22Relative meaning that Excel can adjust them if necessary.
03:26And you might wonder well, if this is a relative cell reference, might there be
03:29something called an absolute cell reference, and there absolutely is.
03:33We'll look at that in a little bit.
03:35Here's something else that will make it easier for you to see what's going on.
03:39Rather than looking at each individual result and then having to look up here in
03:43the Formula bar to see the formulas that created it, wouldn't be really nice if
03:47we could see all the formulas all at the same time?
03:50Well, if you look at the upper-left corner of your keyboard, probably to the
03:54left of the number 1 and above the Tab key, there is a Tilde.
03:58If you press Ctrl+Tilde you see that now Excel shows you all of the formulas all at the same time.
04:04So it's now very easy to eyeball how those formulas were adjusted.
04:10And to get back to normal, if you press Ctrl +Tilde again, Excel shows you all those numbers.
04:15Well, let's cherry pick going down the column for January.
04:19So click here in cell B14, type equals, first number for January, plus, second number,
04:26plus and so on, and all I have got to do is click each cell and type a plus.
04:33And when you get to the last one, remember there is no more plus, because if you
04:36do Excel says hey, plus what?
04:38And then just Ctrl+Enter and there you go.
04:42You have your number.
04:44Now, here is our Auto Fill handle, and you could just click-and-drag to the right.
04:48Double-clicking the Auto Fill handle won't work going across the row, only down a column.
04:52And now you have those numbers filled in.
04:54Now, that's kind of a slow manual way, so I'm going to show you some faster and
04:59easier ways of doing this.
Collapse this transcript
Adding numbers using Sum and AutoSum
00:01If you completed the exercise in the movie about adding numbers manually,
00:05you have a worksheet that looks pretty much like this.
00:08Well, cherry picking numbers is okay when you have the small worksheet like this,
00:11but if you have a lot of numbers, if you have lots of rows and lots
00:15of columns, adding those numbers manually is going to get pretty old pretty quickly.
00:19So let's show you some easier and faster ways of adding numbers.
00:23Let's select all the numbers down here in the Total column and just press Delete
00:28on the keyboard, and let's select these cells here across the Total row and
00:32again press Delete on your keyboard.
00:34Let's do this a different way.
00:36Let's click up here in Cell E6, and we're going to add the numbers, and here
00:41we're going to see a function.
00:42And we're going to use the Sum function and as it sounds, the Sum function adds numbers.
00:48It's probably the number one most commonly used function in Excel.
00:51So type in an equal sign and now you have to type the name of the
00:55function, which is Sum.
00:57And when you do that, you see you get a little pop-up help. Let's just
01:00ignore that for now.
01:01Open up your parenthesis and you see it's giving you some help.
01:04Here is what we do.
01:05We simply drag across these three numbers.
01:09So we're telling Excel, give us the sum of B6:D6.
01:14That is B6 through and including D6.
01:18Be very careful that you don't drag onto E6, because if you do, you're going to get an error.
01:23It's basically saying what's the total of B6 through E6 including E6.
01:27It doesn't really make a lot of sense.
01:29So just press Enter, and there you have the sum.
01:33If you click there, you can see in the Formula bar, there you go.
01:35Let's try that one more time just for practice.
01:37So I'll add across the row for Los Angeles. So we'll say equals.
01:41Sum, open up the parenthesis, drag across these three numbers, make sure it's
01:45only those three numbers.
01:47See where those marching ants are going? Just around those three numbers.
01:51And this time let's press Ctrl+Enter, so we enter and stay on the same cell.
01:57Put your mouse pointer on the Auto Fill handle, see your mouse pointer becomes a
02:01crosshair, and double-click.
02:04And it fills it all in.
02:05Let's take a look, make sure this is right.
02:07If you press Ctrl+Tilde. The Tilde key is to the left of the 1 and above your Tab key.
02:13So you could see here, Excel rewrote these functions so it's always =SUM
02:20of Column B through Column D, but Excel rewrote which row it is, which is really great.
02:26So just press Ctrl+Tilde so we get back.
02:28And let's do the Sum function for January.
02:30Click on cell B14 and let's type =SUM, open up the parenthesis, and drag
02:36down these numbers in the January column.
02:41And again, press Ctrl+Enter.
02:43So we have the number.
02:44Put your mouse pointer on the dot so we get that crosshair, and when you get
02:48that crosshair, just drag across to Column E to the Totals column, and there you go.
02:53Well, that's great.
02:54That's a lot easier and a lot faster than adding it manually, but wait, there's
02:58an even easier way of putting in the Sum function.
03:02Once again, let's select all those numbers in Column E and delete.
03:06Select these numbers across the Total row and delete.
03:09Now, let's go back where we started in Cell E6.
03:12Well, because the Sum function is so common, it's used so often, Excel gives us
03:18an easier way of using it rather than typing it in.
03:22So let's make sure we're on Cell E6.
03:24Also, we want to be on the Home tab.
03:27And over here on the right side, you see we have the AutoSum tool.
03:31Now, just click the AutoSum tool and look at that.
03:34Excel puts in the formula for us, correctly selects those cells, and just press Enter.
03:40Press the AutoSum tool again and again Excel fills those numbers in
03:44correctly. Press Enter.
03:47Well, the AutoSum tool is great, but it's not perfect.
03:51Look what happens here.
03:52Right now when we're in Cell E8,
03:54we have three numbers to the left, we have two numbers above.
03:58When you click the AutoSum tool, look at what it's doing.
04:01Excel can't read our minds.
04:03It says hey, you probably add numbers down more often than you add numbers across.
04:08So let's take those numbers . Well, that's obviously the wrong answer.
04:11Well, you don't have to panic.
04:12All you have to do is leave the formula open, leave the marching ants there and
04:16just manually drag across the correct numbers, and Excel rewrites the formula as
04:22it's open for editing, which is great, and just press Enter.
04:26And if you do it down here again, and click the AutoSum tool, again Excel makes
04:30that mistake of trying to add the incorrect numbers, but not a big deal.
04:34You can drag across the correct numbers and fix it.
04:38Now, you don't have to worry about that too much, because if you remember to
04:41Auto Fill, and you take the Auto Fill handle on the number and drag or
04:45double-click, then Excel does put in the correct numbers.
04:48So you don't have to worry about that.
04:50Well, let's use the sum function going down the column.
04:53So click in Cell B14, I am going to type =Sum, open up the parenthesis, drag down the
05:00numbers in January, and you can see where the marching ants are, then I'm just
05:04going to press Ctrl+Enter so we have that number.
05:07So let's go to February and this time let's click the AutoSum tool and great!
05:13But a little bit of difference though is when you click the AutoSum tool,
05:16you notice that Excel picks up that blank cell where it didn't pick up the blank
05:21cell over here if you typed it manually.
05:22Well, the number is going to be correct because an empty cell has a value of
05:26zero, but Excel tends not to like when it thinks your formulas are inconsistent.
05:30Like if you're adding more cells in one place than in another.
05:34So you might want to manually drag that.
05:37But the AutoSum tool can get a little confused here.
05:40If you click in Cell D14 and click AutoSum, look what it's doing.
05:44Again, it's doing incorrectly the opposite of what it did before.
05:48So you may have to manually drag those correct numbers to put it in.
05:52But honestly, you really don't have to worry about this too much.
05:54Let's just select those two numbers and delete.
05:57If you take the first number that you did in January and get the AutoSum handle
06:01and drag to the right, then it will give you the correct numbers.
06:04So you really want to be careful when you're using the AutoSum just to make sure
06:08that it's giving you the right answer.
Collapse this transcript
Adding a whole worksheet
00:01Now if you have completed the exercise in the movie about using the AutoSum
00:05function in the AutoSum tool, you will have a worksheet that looks pretty much like this.
00:11Well, any numbers manually using the cherry pick method is okay. Using the
00:15AutoSum tool and Auto Fill are even better but, when you have a worksheet like
00:20this that's compact, you don't have any blank columns,
00:24you don't have any blank rows, you can add up the numbers very, very quickly.
00:28You don't have to write even a single formula.
00:30So let's select all the numbers going down that column and press Delete.
00:35Let's select the numbers going across the Total row and press Delete.
00:38So again, you have just your data and their totals.
00:41Here's what you want to do.
00:43Let's select cells starting from the very first number, select down and across.
00:48So you have not only all of your input data selected but your Total column is
00:54the last column selected and your Total row is the last row selected and all you
01:00have to do is click the AutoSum tool and you are done.
01:05You don't have to Auto Fill, you don't have to check answers, it is done. Pretty cool, huh?
01:10Let me show one other slightly different way to do that.
01:14I am just going to press Ctrl+Z to undo.
01:16When you have that area selected, you can press Alt+Equals. Hold down the Alt key and press Equals.
01:22That's the shortcut for the AutoSum tool and if you take a look here, I am
01:26just going to press Ctrl+Tilde and now you can see that Excel has written the
01:31formulas correctly going down that column, and it's written the formulas
01:34correctly going across this row.
01:37And I will press Ctrl+Tilde to come back.
01:38So when you have a compact worksheet like this, use that feature and you could
01:45get yourself done and in no time at all.
Collapse this transcript
Working with numbers in columns
00:00Now if you've completed the exercise on adding a whole worksheet at once or
00:05one of the AutoSum movies, you should have a worksheet that looks something like this.
00:10So we have our Totals column.
00:12We added across all the rows.
00:14We have the totals down here.
00:15We added down all the columns.
00:17But there are a few other things that we might want to know about these numbers.
00:20So let's click down here in Cell A15 and type the word Average.
00:25We want to know what the average is of these numbers. I'll just press Tab.
00:28So we'll use the Average function.
00:30I'll type =Average. Now by the time I type the first four letters of the word
00:35average, you see Excel is suggesting that I probably want the Average function.
00:39So I'll just press the Tab key and Excel will fill in the rest.
00:43So we want the average of what?
00:44Well, we want the average of these numbers in January.
00:47So just drag over those numbers.
00:49Be sure you don't drag anywhere below Row 12.
00:52You just want San Francisco through Boston, and that's it.
00:55Just press Ctrl+Enter and it gives us that average.
00:59Let's just try one more time.
01:00Click over here in Cell C15. Type =Average.
01:05Just type the first four letters.
01:06You can press Tab and it fills in the rest of Average.
01:09And just select those numbers in February.
01:12Make sure not to select any more or any less and just press this time
01:17Ctrl+Enter so we stay in that cell.
01:19And now when you put your mouse pointer on that heavy dot in the little right
01:22corner and you get the crosshair, you can just drag across to Auto Fill.
01:26And now we see what the average is of each of those columns.
01:30Now there are decimals in there, which you might want, you might not want.
01:33That's a formatting issue and we'll look at that in a little bit.
01:36But let's go down here under Average. Click in Cell A16.
01:39Maybe we want to find what's the highest number in the series. So type the word
01:44Highest and again press Tab.
01:47The function that tells us what's the highest number in the series is =Max, and
01:52open up the parenthesis.
01:54And again, select those same numbers down the January column.
01:58So this is telling us, well, find the maximum value in B6 through B12.
02:03And just press Ctrl+Enter to stay in one spot.
02:07Put your mouse pointer on that dot in the lower right corner of the cell, so you
02:10get the crosshair, and drag the Auto Fill handle across to the right.
02:14And now you can see what's the highest number in each of those columns.
02:18Well, if we find out what's the highest number, we might want to know what's the lowest number.
02:22So let's go over here into A17 and type the word Lowest and again press Tab.
02:28Well, if the =Max function finds the highest number in the series, what
02:33do you suppose is the name of the function that finds us the lowest number in the series?
02:36Yes, you're right.
02:37It's the MIN function.
02:38So we type =Min, open up the parenthesis.
02:42And again drag down those same numbers.
02:44Recognize a pattern here? And press Ctrl+Enter
02:47so we stay in the same spot.
02:49Put your mouse pointer on that heavy dot, so you get the crosshair, and drag the
02:53Auto Fill handle across.
02:55And now we can see what's the lowest number in the series.
02:58One other thing we might want to know is not so much the value but how
03:02many numbers do we have?
03:03How many cells are filled in?
03:06So click over here.
03:07And let's simply type in the word Quantity and press Tab.
03:13The function that tells us how many cells are filled in is Count.
03:17So we say =Count, and you see it's already suggesting that to us, and open up
03:22the parenthesis and guess what? We drag those same numbers from San Fran down to Boston.
03:29Press Ctrl+Enter so we stay in the same spot.
03:32And this of course is going to be 7 all the way across because we have seven in each one.
03:36And you might wonder, oh gee, that's really big news.
03:39But if you just click one, let's say we didn't go to Chicago in February, press
03:43Delete and over here we have only six numbers.
03:47And I'm going to undo it.
03:49I kind of like Chicago.
03:50So we now have all those seven.
03:52Now here's what's really pretty neat.
03:54And let's just maybe delete those numbers there in the Average row and go here to January.
04:00Remember the AutoSum tool? If you click that down arrow, look what you have.
04:05In addition to AutoSum we have sort of like an auto Average sort of Count, not
04:09quite as automatic as Sum, but if you choose Average, you see it puts in the
04:14function but of course, you still have to manually drag across those numbers.
04:19And Ctrl+Enter and drag the Auto Fill. Or the same thing for the Lowest.
04:23Let's just delete those.
04:25Go back over here to Cell B17.
04:27And now if you click this down arrow here and you choose Min, all it does is it puts that in.
04:33But it's selecting the wrong cells.
04:34So you still have to select that.
04:36Remember Excel can't quite read your mind. Maybe in the next version.
04:39And Ctrl+Enter and get your Auto Fill handle and drag across.
04:43So those are some of the most common functions in Excel and there are over 300
04:48functions, but just because those are so common, I think you'll find these pretty handy.
Collapse this transcript
Preventing errors using absolute references
00:00We've added numbers across.
00:02We've added numbers down.
00:03We did some more statistical information down there on the lower rows, but
00:08there's something else here that we really want to do.
00:11And let's take a look here.
00:12We have a grand total for all of the trips that we took in the first quarter.
00:17And we also have the total of each individual trip. Kind of think of a pie chart.
00:22If you're going to do a pie chart, and you want to know how much did each of the
00:26cities contribute to the grand total, you'd come out with a percent.
00:30So that's what we want to figure out here in Column F, is what percentage did
00:35each city contribute to our total expense for all of our travel?
00:39So let's go here to F5 and just type Percent or maybe Percent of Total.
00:46And if you want, you can take Column F and stretch it out.
00:49When you get that two headed arrow you could double-click and stretch that out.
00:53Well this is simple division, but things could go a little haywire.
00:56And I'm going to do this in two ways.
00:57First, we're going to do it the wrong way.
00:59You'll see there's a problem.
01:00Once we identify the problem, we'll delete it.
01:03We'll go back and do it the right way.
01:04So let's start here in Cell F6.
01:07And we're going to say Equals.
01:09And we want to take the total for the first city for San Francisco, divide, so
01:14you type a forward slash and divide by what?
01:16Well, divide by the grand total.
01:19So we have E6/E14, the total of San Francisco divided by the grand total for all the travel.
01:26And just press Enter.
01:28And we could see that San Francisco contributed to about 15% of all our travel.
01:33First thing we want to do though is let's fix it.
01:35Rather than making it 0.14 or some horrible number, let's make it look like percentages.
01:41So we could simply select all of these cells here from San Francisco down to the Total.
01:46And to make it look like percentages,
01:48we want to be on the Home tab and over here in the Number section, click this
01:52Percent and that will make it percent style.
01:55So we can see it's 15%.
01:55Now maybe you want some decimals in there.
01:58So over here you have these two little buttons here, and if you click this one,
02:03this will increase the decimals that it displays and if you click this button
02:07here next to it, it'll decrease the decimals that display.
02:11Keep in mind this is not actually rounding the numbers off.
02:14This is just formatting.
02:15Excel is still calculating based on that whole long number.
02:19Okay, that's great.
02:20So we see it's about 14.9%.
02:22Now here's where things can go a little haywire.
02:25You figure okay, great.
02:26I don't have to do this for every single row.
02:28I can just take my Auto Fill and I'll drag down here to the total, hoping
02:32that I'll get 100%. Look at this.
02:35What we have is 100% garbage. Why is that?
02:39Well, let's click the first number we did, okay E6/E14, total of San Fran
02:45divided by the grand total. That's great.
02:47What's happening here?
02:49Here this is E7, the Los Angeles total.
02:51That's great. Divided by the average.
02:53Now it's kind of meaningless.
02:55And over here we have the Philadelphia total, E8/E16.
03:00Again, meaningless.
03:01Now by time we get down here, we've got these divided by zero errors.
03:05So what's happening is when we took that Auto Fill and we dragged down, remember
03:09these were relative references.
03:11And Excel rewrote the formula for us the way it was designed to do.
03:16Changing the numerator, changing the denominator, and maybe let's press Ctrl+Tilde
03:21and we can see this a little more clearly.
03:23So it changes E6 to E7 to E8 to E9. That's great.
03:27But the denominator, it's changing E14 to E15, E16-- well it doesn't make a lot of sense.
03:32What we want to do is we want to find someway that when we Auto Fill down at
03:36the column, the numerator changes from E6 to 7, 8, 9 but denominator stays fixed on 14.
03:43I'll just press Ctrl+Tilde, so we get back.
03:46Well, let's just delete all the stuff.
03:48Select those cells and delete.
03:50Let's go back here to F6.
03:51Now that we see what the problem is, let's go and do it the right way.
03:55It's going to be just a slight difference.
03:57So we type Equals, again the San Fran total, use the forward slash divided by
04:02the grand total there.
04:03But don't enter it yet.
04:05Press the F4 key on your keyboard.
04:07When you press F4, you notice that it changes the denominator because that's
04:12where the cursor is from E14 to $E$14.
04:17This is an absolute reference.
04:19How is it an absolute reference?
04:20Well $E means stay fixed on Column E. $14 means stay fixed on Row 14, which is
04:26just another way of saying stay fixed on Cell E14.
04:29Well press the F4 key again and notice this changes a little bit to E$14.
04:34So it's plain E, meaning that Excel can wear off Column E if necessary but
04:39still fixed on Row 14. Press F4 again.
04:42That's just kind of the reverse. Now we have $E14.
04:44$E meaning we're fixed on Column E, 14 meaning, well, it can veer off.
04:51Press F4 again, and it cycles back to the beginning.
04:53This is a purely relative reference.
04:56One last time press the F4 key.
04:58Normally you don't have to go through all this.
04:59I just wanted you to see what the options are.
05:01So we have E6/$E$14.
05:05Now press Ctrl+Enter, and now get your Auto Fill handle and fill down to Row 14.
05:11Now we have some numbers that make sense.
05:13And this here, of course, we're diving 0 by the number.
05:16So we can just delete that.
05:17Well, press Ctrl+Tilde and let's take a look at what we have here.
05:21So our numerator changes E6 to E7 to E8.
05:24That's the way it did before.
05:25That's the way we want it and now because we have $E$14, those dollar signs make
05:32the Column E and the Row 14 fixed and when we get down to the last one,
05:37of course the number divided by itself is 100%.
05:40So that is what an absolute reference is.
05:44If you've never seen this before, I know it might be a little confusing but
05:48absolute references are absolutely necessary because Excel uses them in many
05:53different places and we'll see them later in this course.
Collapse this transcript
Working with times and dates
00:00Now if you've completed the movie on absolute references, you should have a
00:05worksheet expense report that looks kind of like this.
00:08And what we want to do here is put in some dates and some time, so that if you
00:14open this up later you can see the date.
00:17So let's go down here to Cell A20.
00:20Now there's sort of two basic ways of putting in the date.
00:23One way is you could put it in so that it's permanent.
00:26It doesn't change, kind of like typing it in.
00:28The second way is putting it in as a function so that it will change depending
00:33upon when you open it.
00:34Now I really shouldn't say a function. There are two functions that will let
00:38you put in the date.
00:39So let's take a look at the first way just manually.
00:42All you have to do is press Ctrl+Semicolon.
00:44Semicolon is just right to the letter L on your keyboard.
00:47And you see it simply puts in the date.
00:48Now I'll just press Enter.
00:50Now that's just a timesaving step.
00:53So you don't have to type it in manually, which means that if you open it up
00:56tomorrow, next week, next month, it's still going to have the date that you just put in there.
01:01Well, what if you want this so that when you open it up, whatever day you open it up,
01:05it reads the current date?
01:07Well to do that, we use the function called =today.
01:11And it has an open and close parenthesis with nothing in it.
01:15It's a date function. It doesn't have anything in the parenthesis.
01:18But it's a function, so it does have to have the parenthesis, and I'll Enter it.
01:21The Today function reads the date that's in your clock and I want you to see
01:25that this actually will change.
01:27Now I don't know about you but I don't feel like sitting around and looking at
01:30this video for the next week or so.
01:33So we're going to fake it out.
01:34We're going to go and change the date manually.
01:36So I'm just going to go over here to the computer clock.
01:39And I'm going to click here, Change date and time.
01:41I'm just going to put this up to the end of the week, TGIF, and click OK.
01:45So now we can see it shows Friday.
01:47Now we come back to Excel and you see it hasn't changed.
01:50The reason is that Excel will change the date only when the
01:54worksheet recalculates.
01:56Now the worksheet will recalculate if you type something in, if you change something.
02:00So I'm just going to go over here to this number.
02:02I'm just going to type the same number again.
02:03And I type that in, and I press Enter.
02:06And now the whole worksheet recalculates, and you can see the date has changed.
02:11If you don't want to do that, you can use a shortcut to force a worksheet to
02:15recalculate just by pressing the F9 key.
02:18Well, let's leave it at that date.
02:20And another function that you can use, let's go over here to A22 and let's type
02:26=now, and again this is an open and closed parenthesis without anything in it. Press Enter.
02:31And now you see this gives us the date and the time.
02:34Now don't worry if you don't like that formatting. We're going to take care of
02:37formatting at some point later.
02:39But Excel is still reading off the clock.
02:42And now let's go and change this back.
02:43I'm going to go over here to Change date and time.
02:46I'm going to change this back to Monday. Click OK.
02:50I'm going to go back here.
02:51And I'll just type that number in again.
02:54And when I enter in Excel, you can see it changes those numbers back and again
02:58I could also have press the F9 key.
03:01So you have a few different ways of putting in the date and the time.
03:04We'll come back to this in a later movie.
Collapse this transcript
Using IF
00:00Sometimes you want the value that's displayed in a cell to depend on a condition
00:05that's happening somewhere else.
00:07This is where you use a conditional statement and it's a statement that you can test.
00:12The way it works is that you output one result if that statement is true, and
00:17you output a different result if that statement is false.
00:20To do this, you use the IF function.
00:23The IF function gets three arguments.
00:26The first argument is a statement that you test.
00:28For example, you might say the content of Cell C6 > 500.
00:34But when you make that statement or when you have that condition, well, there
00:36are two possibilities.
00:38Either it's true or it's false.
00:40So the IF function will output one value if that statement is true and it'll
00:45output another value if that statement is false.
00:48So, the general syntax of the IF function is say =IF
00:53and then you make the statement.
00:55Then you have the value of true and then you have the value of false.
00:59You notice that these three arguments are separated with commas.
01:03That's really all there is to it.
01:04So let's take a look.
01:05What we have here in this sheet is people selling stuff.
01:11We have here our salespeople.
01:13We have here what they're selling and the commission rate.
01:15What we are going to do is we are going to say if the person sold at least $500,
01:21they are going to get a commission rate of 10%.
01:24If they sold less than $500, they will get a commission rate of 5%.
01:29Over here, you see we have a little table.
01:31Now once we stuff that commission rate in Column C, we go to Column D and the
01:36formula is already done for you.
01:37We are simply going to multiply the sale amount times the rate and then we have
01:41the dollar amount of the commission.
01:43So, this will be a little more clear once we start doing this.
01:46So, let's go into Cell C6 then we'll say =if, open up the parenthesis.
01:51Now, we put in the first argument.
01:53The argument is the content of the B6>=500. That's it.
02:02Did the person sell at least 500 or not?
02:04That's true or false.
02:06So, we put in comma.
02:07That's the end of the first argument.
02:09So, the second argument is what do we want the value of C6 to be if
02:14that condition is true?
02:15Well, if that condition is true, it means they sold at least $500.
02:18They get the higher commission rate.
02:20So, we click that 10%.
02:21Now, we are going to Auto Fill this down.
02:23So we want to make sure this is an absolute reference.
02:26So press the F4 key.
02:28That inserts the dollar signs and makes it an absolute reference.
02:31So that's what we output if true. Put in a comma.
02:33Now, we put in the third, last argument.
02:36If that condition is false, it means they did not sell at least $500.
02:40They sold under $500.
02:42So they get the lower commission rate of 5%.
02:44So just click over here in cell J3 that's a lower commission rate.
02:48Again, press the F4 key on the keyboard to make that an absolute reference.
02:52If you are familiar with absolute references, you might want to go back and
02:55watch the movie when we talk about it. That's it.
02:57End the parenthesis, hold Ctrl+ Enter, and there we can see its 10%.
03:02Now, put your mouse pointer on that little dot in the lower right corner.
03:06When the mouse pointer becomes that crosshair, double-click and we fill down to
03:10the bottom and look at that.
03:11Then you can eyeball it.
03:13So here is someone who sold about $600 and they got 10%.
03:17Here is someone who sold under $500 they get 5%.
03:20Now, we can see yes indeed, 10% of $509 was $50.99.
03:26 So, that works.
03:28Now, that's great, but wait, there is more.
03:30Because a conditional statement, you can use the IF function to output text
03:35as well as a number.
03:37So, let's do that here.
03:38Let's go into cell E6 and type =if and open up the parenthesis and the condition
03:44is going to be same.
03:44So, we are going to say is that amount there, the sale amount, is that great than or equal to 500 comma.
03:52Now, if it's true, we want to output a comment.
03:55So, open up your double quotation marks and we'll type in "Great job!"
04:02That's the end of the comment.
04:03So close the quotation mark.
04:05That's now the end of that argument. Type in a comma.
04:09Now, remember this is not English, this is Excel, so the comma has to go outside
04:13the quotation mark not inside the quotation mark.
04:15So, if that condition is false, put in another double quotation mark and we will
04:20"Better luck next time."
04:24Close the quote, close the parenthesis. Press Ctrl+Enter.
04:28Again, put your mouse pointer on that Auto Fill handle.
04:31When the mouse pointer becomes a crosshair, double-click and now we have the
04:34appropriate comment for each one.
04:37The IF function conditional statements are great.
04:40So, you can always have the value of a cell depend on something else that's
04:45happening in the worksheet or even in another worksheet.
Collapse this transcript
Using SUMIF and AVERAGEIF
00:01I want to show you a couple functions you can use that will let you add numbers
00:05or average numbers based on a condition.
00:09To do that, we use the SUMIF and the AVERAGEIF functions.
00:12First, let's take a look at what's happening in the worksheet.
00:15We see we have all these people and it's sorted by last name.
00:19People who are in different departments, they are of different states, we have
00:22what hours they put in, and we have the rate that they get paid per hour.
00:27So we are going to use the SUMIF and AVERAGEIF functions.
00:30So, the syntax of the SUMIF function.
00:32We say first find where the states are.
00:36That's going to be down Column C. That's going to be the whole collection of those cells.
00:42Once we determine where the states are, we pick out which state we want.
00:46So, what we are going to do is we are going to find out of everybody who
00:49works in New Jersey,
00:51those people pick out their hours and add them.
00:54Once, we find out who they are and what state they're in and we could find out
00:57what their hours are.
00:58We want to cherry pick those hours and add them up.
01:01Now, we also wanted to an average and we are going to find out let's say for
01:06Vermont and for California, what is the average rate.
01:09So, again we'll pick up all the states, we'll pick out Vermont, we'll pick out California.
01:14Then we will take for those particular people, we'll cherry pick their rate to average.
01:19So, let's scroll to the bottom.
01:21We'll start with New Jersey.
01:21So we are going to say =sumif, open up the parenthesis, right. Every function has a
01:28set of parenthesis.
01:29So first thing we have to do is find the range of states.
01:31So, let's scroll at the top and we'll choose the first state and you can just
01:34drag down to the last one over here.
01:38So, we could see the range is C5 to C36.
01:42That's where all the states are.
01:43Well, that's a first argument, so we'll type a comma.
01:46Now, that we know where the states are, we want to -pick New Jersey.
01:49So pen up double quotes, type in NJ. Uppercase, lowercase, it doesn't matter.
01:55Close the double quote.
01:56That's the second argument.
01:58So, we type in a comma.
01:59Now, the third argument is what do we want to add?
02:02What is that range to add?
02:03So, let's go up here and we are going to add the hours.
02:06So we can scroll from the first one down to the last one and that's it.
02:11I'll press Ctrl+Enter.
02:13Now, we can see the total hours for the people in New Jersey are 481.4. Let's do
02:19one more for practice.
02:20We'll do it for Pennsylvania.
02:21So, let's go here to D39, type =sumif, open up the parenthesis.
02:28The same thing, we want the same range of states.
02:30This time instead of dragging maybe this will be a little easier.
02:32Click the first one here and scroll down.
02:34I am just using the rolling wheel on the mouse and Shift+Click the last one.
02:39That is hold the Shift key down and click the last one.
02:41You might find that a little easier.
02:42So, it's the same range, type in comma, and we want Pennsylvania.
02:47So, open up the double quotes and close the double quotes.
02:51That's the second argument so you type a comma.
02:54Well, again what do we want to sum?
02:56We want to sum the hours.
02:57So, we'll do like we did last time.
02:59Click the first hour, scroll down, I will use the rolling wheel,
03:02hold the Shift key down and click the last one.
03:06Again, we can see there is that range that we want to add and Enter or Ctrl+Enter.
03:11Now, we can see the total hours for Pennsylvania we've cherry-picked out is 221.50 hours.
03:16So now let's find the average rate.
03:19We want the average rate.
03:20We will start with Vermont.
03:22So, click here in E41 and we'll say =averageif, open up the parenthesis and
03:30same thing, same range of states.
03:32Click the first state, scroll down, Shift+Click the last state and type in a comma.
03:39Now, we want to pick out which they do we want.
03:41So, open the double quotes for Vermont.
03:45Close the double quotes.
03:46That's the second condition so type a comma.
03:48What do we want to average?
03:49Well, we want to average the rate.
03:51So, click the first rate, scroll down, and Shift+Click the last rate.
03:56Then press Enter or Ctrl+Enter.
03:58Now, we could see the average rate for Vermont is $25.17.
04:02So, that's how the SUMIF and the AVERAGEIF functions are very powerful tools to
04:08let you get the sum that you want and the average that you want by
04:12cherry-picking values.
04:13I think it's pretty cool.
Collapse this transcript
Naming and using cell ranges
00:00When you have a lot of cell ranges to deal with, you might find it easier to
00:04give them friendly names.
00:07For example, you might find it easier to deal with something called the sum of
00:10January than deal with the sum of B6:B9.
00:14But range names have a little quirk and we are going to look at that also.
00:18Well, over here we have regions that we are selling to and we have months
00:21January through June.
00:23Let's select just the numbers here in the January column and go up to the name box.
00:27You see the name box right now is at B6, because B6 is the first cell we are selecting.
00:32So, click in the name box and type January and press Enter.
00:36Just click anywhere in the worksheet to deselect.
00:39Now, when we go back up to the name box, click that down arrow. There is January.
00:43Select it and January becomes selected. That's great.
00:47Let's do for February. Select February.
00:50Click under the name box, type February, press Enter.
00:54Again, you could deselect and click up here.
00:57Now, there January and February.
00:58Well, there is an easier way to do this.
01:00Let's select from the header of March down through the last number, this whole area.
01:05Now, up here on the Ribbon bar go over to the Formulas tab.
01:10Over here, you see we have this group called Defined Names.
01:12Now click over here Create from Selection.
01:15Let's move this out of the way.
01:17The dialog box says okay, we'll create names.
01:19Where do you find the names to apply?
01:22Top row is selected by default, because it found these names in the top row.
01:26Click OK and again just deselect.
01:29Now, when we go up here, we can see oh!
01:31All right there is April and here is June.
01:34You notice this is an alphabetical order, not in location order.
01:37So now that gives us the range names.
01:40Well, how we can use this?
01:42Let's go over here into January where we want to calculate the total for January.
01:46We'll use the SUM function and we'll try this manually.
01:49We'll say =sum, open the parenthesis.
01:52Now, instead of dragging down, we want to put in January.
01:55Now, if you know that the range name is called January, you can simply
01:59start typing it in.
02:00You may notice that it appears in this little box.
02:02So you could continue typing in January or you can press the Tab key to fill it in.
02:06Just press Enter or I'll press Ctrl+ Enter to enter it in and there's the sum.
02:10Well, that's great.
02:11I'll just press the Tab key.
02:14Let's do this sort of a different way.
02:15Again, we'll type in the SUM function.
02:18Now, maybe you don't remember what all the range names are.
02:22This can very easily happen if you have a lot of range names.
02:24Well, we are still in the Formula tab over here and in this Defined Name section
02:29click where it says Use in Formula.
02:31Now, you can see all the range names and you can choose February.
02:34Again, just press Ctrl+ Enter and now you have February.
02:37Let me show you a third way to do this.
02:40I'll just hit the Right Arrow key.
02:42For March, let's type =sum, open up the parenthesis, press the F3 key on your
02:48keyboard, and this brings up the Paste Name box.
02:52Now, just double-click March and it puts it in.
02:55Again, press Ctrl+Enter.
02:57Well, here's the quirk that range names have is they are always
03:02absolute references.
03:04Put your mouse pointer on the Auto Fill dot in the lower right-hand corner of that cell.
03:08When your mouse pointer becomes crosshair, just drag out to the end and look at what happens.
03:14It makes the sum of each of these the sum of March.
03:17Well, it doesn't make a heck of a lot sense to have the total of April, May, and
03:21June the sum of March.
03:22So, we have to select this and delete this.
03:25If you are going to use range names, you really do have to type in the Sum
03:29function manually for each one.
03:34So, whether you find that easier or if you don't find that easier, I'll leave up to you.
03:38But there are times in Excel, especially when you're dealing with large amounts
03:41of data, that you really do want to use range names.
Collapse this transcript
4. Essential Formatting
Formatting numbers and dates
00:00Excel has two basic types of formatting. Or that's the way I look at it.
00:04You have formatting numbers and then you have formatting for colors, look, feel and fonts.
00:10Well formatting numbers is a little more straightforward and there's less to do
00:14so we're going to do that in this movie.
00:17Now when you look at this worksheet, you see we have the first quarter of the year
00:21and some calculations here in Column E and F and we have the cities we're
00:25going to, and then we have some other calculations down here at the bottom and
00:28we also have some dates.
00:30Well let's make these look like numbers because right now we can't tell are
00:34these dollars, are they euros, are they bananas? What are they?
00:37You see we do have some formatting here in Column F as percentages.
00:41So let's select the numbers across this first row and we also simultaneously
00:47want to select the numbers across the Total row so hold down the Ctrl key and
00:51your keyboard and just select across. So that's how you can select noncontiguous
00:56cells in a worksheet.
00:58Now that you have them selected, you want to make sure you're on the Home tab and
01:01over here in the Numbers section just click the dollar sign and this applies the dollar format.
01:06Well, dollar format is great but it gives us decimals and there are no pennies in
01:11here so we want to remove them.
01:13Let's go over here.
01:13You see I have these two little symbols here. Click this one.
01:16This one will decrease the number of decimals.
01:20So right now we have dollar signs, we have comma for thousand separators, and we
01:25don't have decimals.
01:26So it's kind of a custom format.
01:27So now that we have dollars assigned to the first row and the Total row, what we
01:32want to do is the remaining numbers, we want to give them commas for
01:36thousands separators but we don't want to give them dollar signs and we don't
01:39want to give them decimals.
01:41So let's select these numbers here, hold down the Ctrl key and drag to select
01:48those numbers over there.
01:50And also in this Number area, see I have a comma and click that.
01:53That gives you the comma style and you can see it gives you thousands
01:56separators and it gives you decimals.
01:58So let's go over here and let's decrease the decimal and you could deselect.
02:02So now you have something that's pretty typical that a worksheet will have.
02:06Now if you did not have this row formatted as percentages, you can simply select
02:12that and click the percentage formatting and if you decide maybe you want more
02:16decimals, you can click this to increase the number of decimals.
02:19So maybe if that's too many, you can again click this to decrease it.
02:23Down over here we have some dates and dates are actually numbers and Excel
02:28assigns a serial number to every date and it does that so that you can actually
02:32perform calculations on them.
02:35Well before we format these, we want to sort of treat them like text.
02:38We want them left aligned.
02:39So select these three dates and then up here in the Alignment section, click on
02:45the Left Align button.
02:46So this first date, that's simply the date that this worksheet was created.
02:51Well we don't want that to change because it was created on March 31.
02:54That never changes.
02:56But today's date might change and the date printed might change.
02:59These two are functions and you click this one here and you can see that's the
03:04today function that simply reads the current date and over here where it says Printed on,
03:09click that. That's the Now function.
03:11That gives you, you can see the date and the time.
03:14So let's say we want to apply to be a more friendly format.
03:18So let's click here on Created on and in the Number group here, click on this
03:23little launcher button here and that will bring up the Format Cells dialog box
03:27and by the way Ctrl+1 is a shortcut for that.
03:30So in the Number's section, we want to make sure it's a date and you see I
03:33have all these sample dates and now let's scroll down here and let's choose
03:38this one and when you choose it, you see it shows you sample of what that will
03:41actually look like.
03:42Click OK and there you go.
03:44It's says March 31, 2010 and maybe let's apply a format to this.
03:48Maybe I'll click the Format Painter and then click this.
03:51Well that's great but this one, we need a little bit more space because we want
03:55to give it the month and the day and the year, but we also need the time.
03:59Well we're going to need a little bit more space to display all that.
04:02So let's select these three cells and over here in the Alignment section,
04:07click Merge & Center.
04:08That merges those three cells into one big cell but it also centers them.
04:12So let's click this button here to left align them again.
04:16So let's go format that.
04:18This time maybe I'll press Ctrl+1.
04:21Now in the Numbers section this shows us that it's a custom format and over here
04:26it shows us the type and let's just select everything and then just delete.
04:29And now you can see Excel assigns a long serial number to that particular date.
04:34My advice is for now just to ignore it.
04:36We want to put in the month so type m and now when you type the first m it shows
04:41you 4 because April is the fourth month.
04:43When you type the second m it gives you a leading zero. Type the third m and it
04:48abbreviates the month.
04:50Type the fourth m and it spells it out.
04:52Now type the space, we want the day.
04:55If you type a single day-- now this is a two digit.
04:58If this were let's say the fifth, a d would give you five.
05:01If you type a second d, it would tell you zero five.
05:05So we have the month, we have the day, type a comma.
05:07My advice is always use a four digit year.
05:10I'll type in four Y's and a space.
05:13Now I want this to say something like April 27, 2010 at whatever time it is.
05:185'o clock or so on.
05:19So I'm going to type in literally the word at.
05:21That's not a code that's literally going to be displayed as 'at.' Type a space.
05:25Now we want to type in the time of day so I'll type in two hs for hours, colon,
05:31two ms for minutes, colon, two s's for seconds, click OK and now it tells us
05:38April 27, 2010 at 16:09:04.
05:42Well, that's great but maybe you want 12-hour time instead of 24-hour time.
05:46Let's go back in there and this time I'll click on this little number launcher here.
05:49So we're back in the Custom category and you can see there it is a little
05:54slash there for the at.
05:55Don't worry about that.
05:57Click at the end, type the space and then type in am/pm and you notice this
06:03converts it to 12-hour time.
06:05Click OK and now we can see that it's April 27, 2010 at 04:09:04 PM.
06:11Now this will update whenever the worksheet recalculates.
06:15Now the worksheet will recalculate when you type something in a cell and enter it.
06:19If a number changes. You can also force the recalculation and let's go over
06:23here to this number for Boston.
06:24Now it just says right now it's 2,589. I'm just going to type in 2589 again.
06:29Now before I press Enter, see this shows 04:09:04. When I press Enter, this updates
06:34the minutes and the seconds.
06:36So if you want to force the worksheet to recalculate without actually doing anything,
06:41you can simply press the F9 key and that will force the worksheet to
06:45recalculate, like that.
06:47So this is some basic number formatting and remember at any time, you could
06:51go into this launcher and go into the Format Cells dialog box and you have
06:56all of these different categories that you can use for members. I'm going to cancel that out.
06:59So my advice is go into that Dialog box and see what's available. I think you'll
07:03find some helpful formatting there.
Collapse this transcript
Applying fonts, background colors, and borders
00:00This worksheet has numbers formatted the way we want.
00:03We have dollars, we have percents, we have dates formatted.
00:06We're going to apply fonts, background, colors, and borders.
00:09But before we do, let's take a look at something.
00:12Let's go into the lower right corner of the Excel screen and you see we have
00:15these three view buttons. The one that's turned on by default is Normal view.
00:20But click the middle one here and this goes to Page Layout view and we can see
00:25the actual sheet of paper-- and scroll down, scroll back up.
00:29The actual sheet of paper as it will look when printed.
00:32Maybe you want to zoom out a little bit. You can click this minus button here or
00:36if you want you can hold the Ctrl key down and roll the wheel on the mouse.
00:40If you like formatting in Page Layout view or if you like formatting in Normal
00:43view, it works the same either way.
00:46So let's begin formatting the document.
00:48We have the title Travel Expenses.
00:50Let's make this look like a title.
00:51Let's select across the first row until we get to Column F, because we have six
00:57columns in use and let's give it a background to start and up here and we're in
01:02the Home tab and in the Fonts section click the Background Color button and you
01:06see there's a little down arrow there.
01:08Click the down arrow and we have colors to choose from.
01:11Let's just pick a color from here and notice as I roll the mouse pointer
01:15over, it's changing colors so that I can see dynamically what color it is before I pick it.
01:22And I'll choose this dark green over here.
01:24Black text on the dark green background is kind of hard to see.
01:27So over here we have a Font Color button, click that down arrow and also you
01:32notice as I roll the mouse pointer over these colors, the title is changing.
01:36I still want to make it stand out a little bit, so I'm going to make it bold.
01:40And you can see over here in the Font group we have Bold, Italic, Underlined.
01:44And I'll click Bold and also keyboard shortcuts for those, Ctrl+B, Ctrl+I, Ctrl+U
01:50and with the toggle I can click the B to turn it off, B to turn it on.
01:53Ctrl+B turns it on and off as well.
01:56Let's look at the months.
01:58So let's drag across the months and our Totals column and let's go back up
02:04here to the Fill Color.
02:06This time instead of choosing a color that's out of here, go down here where
02:09it says More Colors and now you have this color hexagon and I'll choose this
02:15green over here and down in the lower right it shows what's the current color, which is white.
02:19Of course, there's nothing applied yet and then shows what the new color is going to be.
02:23Then click OK.
02:24Now we have the color.
02:26Now let's apply a font color.
02:28We go up here to the Font Color button and I think I'll choose white as well and
02:32maybe also I'll make it bold.
02:34I'll press Ctrl+B this time to make them bold.
02:36Now down over here we have Totals.
02:40So let's selects our Totals. Let's go back to the color chooser and maybe for
02:45this I'll chose a shade of gray.
02:48Now for the column headers, we want to put some borders in there.
02:51We also want to put a border on the top.
02:52So let's choose the top.
02:55Now we have it formatted, but we want this Travel Expenses to be centered.
03:00We want to turn this, instead of six individual cells, we want one big cell.
03:04So once you have the six cells selected, go up here into the Alignment section
03:08and click Merge & Center, so it's now one big cell.
03:12Now for borders in the Font area you see we have border chooser and click this
03:16down arrow and we have a bunch of options.
03:18Let's choose a Thick Box Border.
03:21It might be a little hard to see, so you can click off it and now you can see it
03:25has a thick black border.
03:26Well, maybe I want it to be black.
03:28Maybe I want a different color.
03:29Click it, go back to the down arrow on the Borders button, and then down at the
03:34very bottom choose More Borders.
03:37Now we have dialog box that we can format with.
03:39This dialog box could be a little confusing and what we do here first let's
03:44choose None, so we turn it off.
03:46Choose a color, maybe I'll choose dark blue, I'll choose a thick border and then
03:51over here I'll click Outline and now you could see it gives a thick outline.
03:55If you ever wanted to turn off part of this, you can click to turn part of the
03:58border off. Click to turn that part of the border on.
04:01Click OK and again you might need to deselect it.
04:04Now you can see it has a thick dark blue border around it.
04:08Let's select the column headers, go back to Borders and choose All
04:13Borders, click to deselect.
04:15This puts borders around all cells instead of one big cell, because they're not merged.
04:21So now we have the beginning of a formatted worksheet, but you might want to
04:26change the column widths, you might want to change the row heights and
04:30there's other formatting that you can apply as well, but this is a good first
04:33step to formatting.
Collapse this transcript
Adjusting columns, rows, and text
00:00This worksheet is partially formatted and you can see we have our header
00:04formatted, we have our column headers formatted, and we have our Total in
00:07addition to the numbers.
00:08But there's some additional formatting that we need to do.
00:11We want to talk about column widths and row height, maybe text alignment.
00:15Let's start at the top.
00:16Now Row 1, our report header, should be maybe a little taller.
00:20When your mouse becomes two-headed arrow here, it has to be on the border
00:23between the Row 1 and Row 2 header and click and drag down to make the header a little taller.
00:29Click the header so it's selected and it looks great, but it's down on the bottom.
00:34We want this to be vertically centered.
00:36So make sure you're on the Home tab and in the Alignment section these three
00:40buttons deal with Vertical Alignment. Click the middle one and now it's
00:44aligned to the middle.
00:45Now we have some room. We could make it a little bigger.
00:48Choose a bigger font, if you want.
00:50Maybe you choose a different file altogether if you like and keep in mind the
00:53fonts on this computer may be different from the fonts that are in your computer.
00:57Now that looks a lot more like a report header.
01:00Let's deal with the column headers for the months and the Total.
01:04Drag across these cells and again on Home tab in the Alignment section, you can
01:09click this button over here and that will align them to the center.
01:12Well, this Column F is a little too narrow.
01:14So if you put your mouse pointer here on the border between the Column F and
01:18the Column G header, when your mouse pointer becomes that two-headed arrow, you
01:22could drag to make it wider, but you might have to guess how wide that's supposed to be.
01:26I'll just press Ctrl+Z to undo.
01:27When you get that two-headed arrow mouse pointer, double-click the mouse and now
01:32that will automatically adjust that column so it's as wide as the widest item in
01:38that column, which happens to be the Percent of Total header.
01:42Now the columns here B, C, D, and E are all a little different.
01:47Maybe you want to make them the same.
01:48Put your mouse pointer here on the header for Column B and just drag across to
01:53Column E. We want to leave Column E alone.
01:55When you put your mouse pointer here on the border between any two column
01:58headers, you could drag one way or the other.
02:01Now these columns are all the same width, but we want to make sure that we don't
02:04have any data cut off.
02:06When you scroll down here, you can see this date is cut off.
02:09That's what those pound signs mean. It's not an error.
02:11It just means there's not enough room to display that data.
02:14Well, we can select a few cells here and then in the Alignment section click
02:20Merge & Center and then click that Left Align button.
02:23So we don't have to worry about that too much and let's just scroll up.
02:26Let me just show you another way that you can choose column width.
02:30Let's select these column headers. Just drag across.
02:33One way is right-click and you can choose column width and type in a number,
02:39cancel out, or again in the Home tab go over here to the Cells section, click
02:44Format, and here we can choose Row Height or we can choose Column Width and
02:48it's the same dialog box.
02:49So whichever way you want to get it is fine.
02:51Well, let's take a look at the names of the cities here. And I'll scroll down a little bit.
02:56Let's say that we didn't just go to San Francisco, we went to San Francisco and
03:00Silicon Valley and we went to Los Angeles and Orange County and we want to
03:05specify that in those cells.
03:07We want to add the text here.
03:08Put your mouse pointer after San Francisco and double-click to insert the cursor.
03:13Now what happens if we simply type,
03:15when we say San Francisco and Silicon Valley and press Enter? Well, it's cut off,
03:20because there's no room for that.
03:21So again I'll just press Ctrl+Z to undo.
03:24Again, click over here after San Francisco and we want to press Alt+Enter.
03:29That is hold down the Alt key and press Enter.
03:31That's how you can force a line break in a cell.
03:35Now we can type 'and Silicon Valley,' press Enter and that also applies a text wrap.
03:43So, this Column A is still a little too narrow, so let's make that column just a
03:47little bit wider so it fits. Great.
03:51It fits horizontally, but we have little bit of extra space on the top.
03:54So put your mouse pointer here on the border between the Row 6 and Row 7 header,
03:59when your mouse pointer becomes a two-headed arrow, double-click and now
04:03Excel automatically adjusts that row height.
04:06Let's try this again for LA.
04:07Double-click after Los Angeles, space, and then we'll press Alt+Enter and we'll
04:13type Orange County, press Enter, and there we go.
04:18So now we've forced a text wrap in that cell.
04:22Now I just want to show you one other place where you can put in text
04:26wrapping and you have a few other alignment options, but let's select both of these cells.
04:31If you go up here back in the home tab in the Alignment section, click
04:34this little button here and this brings you into the Alignment tab of the
04:38Format Cells dialog box.
04:39Now you could see Wrap text is turned on and we can see what the horizontal and
04:43vertical alignment is and we can see that the cells are not merged and over here
04:48we can see that the text is going straight across and not on an angle.
04:52So you might like to use the dialog box instead of the Ribbon.
04:55It really depends on which way you like it.
04:57I'll just cancel out.
04:58Now we have a worksheet that has a much better look to it.
Collapse this transcript
Using conditional formatting
00:00Conditional formatting lets you format numbers and dates according to their value.
00:05People typically use it to highlight numbers that are especially high or
00:09especially low, but you can also highlight numbers that fall into a certain range
00:13and even find duplicate values.
00:16Before we do that, we want to select all of these numbers. So a couple of ways you can do it.
00:21Click the first number and press Ctrl+ Shift+End and that will select to the end.
00:27If you don't like doing that, you can click the first number, scroll down if
00:31you need to, and hold the Shift key down and Shift+Click the last number so it's selected.
00:37Well if you need to select these numbers over and over again, you don't want
00:40to go through this.
00:41So let's give it a range name.
00:43Put your mouse pointer up here in name box and Click and let's call it data, a
00:48simple enough, then press Enter and now if you click somewhere to deselect,
00:53you could always go up here, click the Down arrow, choose data and immediately
00:56select those numbers again.
00:58I will just scroll to the top.
00:59Now, if you are on the Home tab, go over here to the Styles section, and this is
01:03where you can find Conditional Formatting.
01:04Click that and there are three kinds of automatic ways of doing it.
01:08Data Bars, Color Scales and Icon Sets.
01:11Well, if you choose Data Bars, you have couple of choices of Gradient Fills and
01:15Solid Fills, and when you choose these, not even clicking the mouse, you could
01:20just roll over these and you see what this does.
01:23This automatically compares the numbers with each other.
01:26So this one for example, you can see low numbers have short bars, the highest
01:30numbers have the longest bars.
01:32Maybe you want yellow instead of blue.
01:34This is really personal preference, or what you like.
01:36So these are Solid Fills instead of Gradients.
01:39Go over here to Color Scales.
01:42This will give you instead of one color of varing lights.
01:46These will give you different colors.
01:48I kind of like this one over here.
01:49Blue, White and Red.
01:50Not just because it's patriotic but because this clearly shows you that the
01:55highest numbers are the darkest blue and that the smallest numbers are white.
02:01And if you want the reverse color scheme, you have red, white and blue.
02:05These are some very automatic built-in ways of comparing numbers with each other.
02:10Let's also go to Icon Sets and here you have all these icons.
02:14Honestly, I would not use some of these but I want to show you here you have
02:18some directional arrows.
02:19So this one for example, a down red arrow is for the lowest numbers and up green
02:25arrow is for the highest numbers. Maybe instead of a scale of three arrows, you
02:30want four arrows or five arrows.
02:31So for this one for example, an upward green arrow is highest number, lowest
02:36numbers are down red arrow and then you have three yellow arrows in the middle.
02:41Maybe you want bars kind of like on your cell phone.
02:43So here's a scale of one to four or here's a scale of zero to 4.
02:47Again you can look at the numbers and you can see scale of zero is the lowest
02:50number and all four bars are the highest number.
02:53Now, let's say we click one.
02:55I will choose this.
02:58Click off it, so you can see it.
03:00Let's go and reselect the data area. Scroll to the top if you need to.
03:03Let's go back to Conditional Formatting.
03:05And let's apply Data Bars.
03:07And you see what can happen here is Excel will let you apply one conditional
03:12format on top of another.
03:14Now sometimes that's good but other times you might end up with
03:17something hideous like this.
03:19So here's what you can do is click the Conditional Formatting button and down
03:23over here choose Clear Rules.
03:25Now you can Clear Rules from Selected Cells. What I am going to choose here is
03:28Clear Rules from Entire Sheet.
03:30So that wipes out all the conditional formatting.
03:33Let's go back and choose the data area, scroll up, go back to
03:38Conditional Formatting.
03:39So now you can choose one those data bars and those icons won't be in the way, or vice versa.
03:45So if you want just a very quick way of applying formatting to compare your
03:51numbers, I think that's your best bet.
03:53In the next movie, I am going to show you some conditional formatting where we
03:57can take over some more control over the formatting and apply exactly the type
04:02of formatting that we want rather than taking the automatic features.
Collapse this transcript
Using custom conditional formatting
00:00In the last movie, we applied pre-made automatic conditional formatting rules.
00:05We just only had to do was click and Excel evaluated the numbers against each
00:09other automatically.
00:10In this movie, we will take a little bit more control over the
00:13conditional formatting.
00:14Let's take a look at few things.
00:16First click on this down arrow here in the name box and choose the data area and
00:21over here let's go to Conditional Formatting and let's look at some Cell Rules.
00:25And let's choose Greater Than, and let's say we want to find all numbers that
00:29are greater than 800 and we will choose Yellow Fill with Dark Text.
00:35Okay, and deselect if you want so you can see that rule.
00:38Okay, press Ctrl+Z to undo.
00:40Now let's go back to Conditional Formatting.
00:42Let's say we want to find low numbers.
00:43So we will highlight Cell Rules and this time choose Less Than and let's find
00:49numbers are less than 100, and we will choose the default formatting, click OK,
00:54and there we could see all of those numbers highlighted that are less than 100.
00:58Again press Ctrl+Z to undo, and what if you want to find numbers maybe that fall
01:03in a particular range rather than very high or very low?
01:07What if we want to find numbers that are between 300 and 400?
01:09I will go back to Conditional Formatting, back to Highlight Cell Rules and
01:15choose Between, let's make that 300, just press the Tab key, 400, click OK,
01:21and there we can see all those numbers that fall into that particular range.
01:25Once again press Ctrl+Z to undo.
01:27What if we wanted to find duplicate values?
01:30Go up to Conditional Formatting, Highlight Cell Rules and at the bottom, choose
01:34Duplicate Values and choose the format, maybe just Light Red Fill, click OK, and
01:39there we could see all of the duplicate values.
01:41So for example, we have 486 over here and we have 486 over there.
01:46We have -59 here and we have -59 over there. Well, what if we wanted to apply more
01:52than one rule at a time? Again press Ctrl+Z to undo.
01:56Go up to Conditional Formatting.
01:58Let's say we want a sliding color scale but we want to change it a little bit,
02:03maybe because we want the sliding color scale to be a little more strong looking.
02:09So, let's go over here to Color Scales and choose this one right over here.
02:15Deselect and we can see the lowest numbers have the red fill and the highest
02:19numbers have the darker blue fill.
02:22Well, maybe we want those highest numbers to be in even darker blue fill.
02:25Now again let's select that data area here.
02:28Go back to Conditional Formatting, back to Highlight Cell Rules, Greater Than,
02:33and let's say all cells that are greater than 900, click the down arrow,
02:39we want a custom format and let's go over here to fill and let's choose say a dark
02:45navy blue fill, go to Font and we want a white font so we'll have a reverse effect, and click OK.
02:54Click OK and deselect and now we can see that the darker blue is a very dark
02:59blue with a reverse white.
03:01So we can have some more control over this.
03:03Well, let's say we wanted to create our own rules from scratch.
03:06Now first thing we want to do is we want to wipe out all of the rules here and
03:11easiest way to do that is go up here to Conditional Formatting > Clear Rules and
03:16Clear Rules from Entire Sheet. That wipes it out.
03:19So the sheet is like it was when we first opened it. And scroll up if you want.
03:24Again click the down arrow in the name box and choose the data area and go to
03:28Conditional Formatting and down over here choose New Rule and most of these
03:34are like what we found under the automatic conditional formats but here we have a
03:38little bit more control.
03:40So over here let's choose Format cells based on their values and instead of a
03:452-Color Scale, let's do a 3-Color Scale and you might do this if there are
03:49particular colors that you need. Maybe your company or your client has a
03:55certain color scheme and maybe you want to use that particular scheme when
03:59you're formatting cells.
04:00So for the 3-Color Scale, let's say the minimum value should be a pale blue, the
04:06midpoint should be maybe a medium blue and the maximum value should be let's
04:12say a dark blue and you can see a preview there.
04:16Click OK and deselect if you want.
04:18So, now we can see that scale. But maybe we want those highest numbers like these
04:22are kind of hard to read.
04:24We want that to be maybe a different color. Maybe with a white text on a dark background.
04:30So again let's select that area.
04:32Don't remove the formatting, leave the formatting, just select the area.
04:35Let's go back to Conditional Formatting and let's choose New Rule and let's go over
04:41here and select Format only cells that contain, and over here where it says
04:46Format only cells with, let's choose a value that is greater than or equal to
04:53and let's make that value say 900 and let's apply a format.
04:58It's custom format over here and let's choose a fill that's maybe in a dark
05:06maroon and a font that is white in color, bolded, click OK, and see the
05:13preview there.
05:15Click OK and deselect.
05:17And there you could see that those highest numbers have a completely different
05:21format because we are able to do that in a custom manner. One more thing.
05:24Let's select that data area, go back to Conditional Formatting, and go down
05:28here to Manage Rules.
05:30And this way, you can see what all those rules are, the order that they are
05:34applied in, you could edit them at any time, you could delete them and you could
05:38always add a new rule right here if you want.
05:41So custom conditional formatting is a really great powerful tool if you want to
05:46do some data analysis.
Collapse this transcript
Adding pictures and shapes
00:00We have our expense report that's formatted.
00:03We have fonts and color and numbers formatted and it's okay, but we can make this
00:08look a lot nicer and to do that I want to talk about what kind of pictures and
00:12shapes we have available in Excel.
00:15Excel gives you five types of pictures and illustrations that you can use.
00:19Let's talk about those quickly.
00:21First type are pictures and pictures are your own images, maybe taken with a
00:26digital camera, maybe you purchased them as stock art. We have clip art and
00:30clip art comes with Excel and comes with Microsoft Office and you can search for
00:35images and videos and drawings.
00:38We have shapes and shapes are what you draw yourself, circles, arrows,
00:42starbursts, banners, all sorts of great shapes.
00:45SmartArt are professionally created diagrams that you can insert yourself.
00:50So you can modify them in so many different ways and still keep them
00:54interactive on your sheet.
00:56Finally we have screenshots and with screenshots you can capture a portion of
01:01your screen and insert it into Excel.
01:03Now we aren't going to go through all of these five types in this movie.
01:08Some of them we will look at in a later course.
01:10Let's start by inserting a picture.
01:12So click the Insert tab and choose Picture and in the Chapter 4 folder,
01:18double-click the bottle.
01:21It gets inserted kind of big, maybe drag this off to the side, and you see we have
01:25these handles around the corners and around the sides.
01:27Put your mouse pointer on one of those handles, so you get a two-headed arrow
01:31and click and drag in towards the center.
01:33You might have to move a little bit and sometimes the images that you put in are
01:39little bigger than what you want.
01:40Okay, that looks like a good size and just deselect it for a second.
01:43You notice that we have a white border around the bottle.
01:48That's just the way images are.
01:50Images are always rectangular.
01:52We can make that white background transparent.
01:54Select the bottle and up here in the Picture Tools section, make sure you are in the Format tab.
02:00Click Color and then down at the bottom choose Set Transparent Color.
02:04The mouse pointer becomes a little pencil and click that pencil on the white
02:08background of the bottle and now you can see the gridlines and shading behind it.
02:14Well, we could do a couple of other interesting things with this.
02:18Go up to Color and if you want, you can change the tonal color. You can
02:21completely change the color of the bottle. You can play around with this on your own.
02:25I am just going to deselect that.
02:26Leave the bottle selected and let's go to Artistic Effects and there's all
02:30sorts of different cool looking effects,. Who would ever think that you can do
02:34all this in a spreadsheet?
02:36I am going to choose this one down here.
02:37So it kind of looks like a line drawing.
02:40Let's deselect that.
02:41Now let's insert some clip art.
02:43Let me scroll to the top, go up to the Insert menu, choose Clip Art and I
02:49searched for olive before, so that's why it's here and you can click Go and it
02:53will find everything to do with olives.
02:56Doves, Martinis, let's scroll down here, and I like this line drawing of the
03:01olive oil bottle. Click that and it just gets inserted onto the worksheet.
03:06And also put your mouse pointer on one of those corner handles and drag and make it small.
03:11I am just going to put it right over here, just as a nice little accent.
03:17Okay let's deal with the banner on top.
03:19Again it's formatted but it could be better.
03:21So put your mouse pointer on the header for Row 1, click the arrow, and on the
03:27Home tab here go on to the right choose Clear and let's just choose Clear All.
03:31That will wipe out everything there in Row 1 and just click here to deselect.
03:36Let's draw a shape.
03:37So go the Insert menu, choose Shape, and I am going to choose a rectangle.
03:41You could choose another shape if you like.
03:43Now when I draw this, so I could draw a rectangle that's any height, any width.
03:48If I hold the Shift key down, that constrains it to a square.
03:52If I hold the Alt key, that lets it snap to the gridlines, and always let go of
03:57the mouse first before letting go of the key.
04:00Well, that's okay but it's not quite the color we want, so in the Drawing
04:04Tools section, in the Format tab, click this down arrow here under Shape
04:07Styles and let's choose this nice green olive color gradient. Leave it
04:14selected and let's type some text.
04:16Now this is Travel Expenses.
04:17I am just going to turn on the Caps Lock key and you don't have to do anything
04:21to put text except leave the box selected and type.
04:24You don't have to draw text box on top of it.
04:26So let's type TRAVEL EXPENSES.
04:30Well, it's okay but it's not quite in the position we want, so right-click on
04:35the box, down at the bottom choose Format Shape, and from the Format Shape
04:39dialog box, we have all of these options here on the left. Choose Text Box and
04:43over here we choose Vertical alignment, click the drop-down and choose Middle
04:47Centered and click Close.
04:50So now it's centered and in the middle.
04:51Kind of puny though, so let's select it.
04:54Make sure you are selecting it with a text cursor.
04:56Go up here to the Home tab.
04:58Now let's change the font and keep in mind the fonts that you have on your
05:01computer might be different from the fonts that I have on this computer, and
05:07we choose this one here I might want to make this little bigger.
05:11So when you click this Font Size dropdown, you can simply roll your mouse over
05:16whatever size you want.
05:18You see it can change interactively.
05:19I am going to make it little small on purpose for one reason.
05:22Leave it selected or if it's not selected you can put your mouse pointer in
05:26and select it again.
05:28To resize it interactively, another way is hold down Ctrl+Shift and then hit the
05:33greater than sign on your keyboard and that's a little to the right of the letter M.
05:37And if it's too big, press Ctrl+Shift, less than sign.
05:40That's a nice handy feature and maybe make it bold and press Ctrl+B or you can
05:45click the Bold icon here, and deselect.
05:47Now we could change this gradient even.
05:50This is really cool.
05:51Select the box go to the Format tab here under Drawing Tools.
05:55Now we already chose this gradient but let's click over here on Shape Fill.
06:00Now we can choose a different fill, and this will give us a different fill entirely
06:04but go down here on to Gradient and you see we have different variations of this
06:08Gradient, but click down here on bottom where it says More Gradients and now we
06:12have a lot of control.
06:14Now there are lot of settings in here and you see this gradient has three color stops,
06:17dark, medium and light them if you click this dark, you can change the
06:23brightness, maybe make a little darker, maybe make a little lighter, you can
06:26change the transparency if you like.
06:29Click the middle stop, maybe change the brightness a little bit, and click this
06:34end stop and you can do the same thing.
06:36You could even change what position these are in by dragging these.
06:39So if I drag this to the left, I make the overall look a little lighter.
06:43If I drag this one to the right, I make the overall look a little darker.
06:46So again, you can play with this on your own.
06:48Also you have Preset Colors, and you have all sorts of different presets.
06:52None of these are really appropriate for our expense report here but I just want
06:56you to know that they're there, and now let's click Close.
06:59Let's just deselect it and we want to get a better look at it.
07:03So you might want to hit your Zoom Out button or hold down the Ctrl key and roll
07:06the mouse real out, so I can get a better look at it.
07:10Well this is great and I'll tell you if you submit this expense report, it's so
07:14nicely formatted, I think you will have a much better chance of getting
07:17reimbursed for all your travel.
Collapse this transcript
5. Advanced Formatting
Inserting SmartArt
00:00I want to show you a great feature in Excel called SmartArt and SmartArt will
00:06let you insert professionally made diagrams to enhance the quality of your
00:10spreadsheets, and you can customize them any which way you like.
00:13I think they are really cool. Let's take a look.
00:16Let's go up here to the Insert tab, because SmartArt is something that you
00:19insert and here in the Illustrations section is SmartArt. Click that and you
00:23get this dialog box coming up, and another look just shows you all these
00:26different categories and look what you have over here.
00:29I will just maybe start off with the List category and click any of these and
00:32you can see on the right it gives you a thumbnail of how it looks.
00:35So we have Lists, we have Process Charts of how one thing goes to another,
00:39Cycle Charts, hierarchies of how one item relates to another item, and these are great.
00:45Don't worry if the colors aren't to your liking because I am going to show
00:48you how you can customize all of these and you might want to look through these on your own.
00:51I am going to go here to List.
00:53Now, I am going to choose this one here, Vertical Box List.
00:56Let's just double-click that and it puts it onto the page out.
00:59It's a little bigger than we want.
01:00So put your mouse-pointer on any of the four corners and when your mouse
01:03pointer turns to this two-headed arrow, just shrink it here a little bit.
01:07I am just going to drag this over here to the right, and before we format it,
01:12let's put in some information and you notice over here we have these
01:16sales people who have sold products.
01:18What I want to do is I want to take maybe the first three or four.
01:21That is the top three or four sales reps and put their names over here, and
01:25specify where they sold their products.
01:28So click over here in the first text box and it blanks out, and let's type the
01:33name of the first person.
01:35Now, instead of clicking and typing, clicking and typing, there is a nice little
01:38text box where we can enter this information.
01:41Over here on the left you see we have this two-headed arrow.
01:43Click that and that brings up the text box and click on this third bullet here
01:48and just press the Backspace key.
01:49When you do that, you remove the bullet and you see this is dynamic and
01:52removes up the other text box.
01:54So let's type in the name of the second person, and press Enter, and we will do
01:59the fourth person as well.
02:02When you do that, it puts up the information.
02:04Well, what we want to do is we want to say where did each of these people go
02:08to make their sales?
02:09How do they get to be such good sales rep?
02:11So click after the name of the first person, press Enter and Excel thinks, oh!
02:15We just want to put in another box, but we don't.
02:18So press the Tab key on the keyboard, when you do that, it indents and will put
02:22a sub-bullet under there.
02:23If you're familiar with PowerPoint, it's the same idea.
02:26So let's say this sales rep went to San Francisco.
02:31Click after the second person and maybe that guy went to Los Angeles and
02:38this person here went to New York, and this person here maybe went to
02:46Atlanta, and that's great!
02:49Now, you can close the text box by just clicking that X.
02:52If you want to open it up again, in addition to this two-headed arrow over
02:55here, and as we're in the SmartArt tools category in the Design tab, we have
02:58this Text Pane box, and that will also let you open it and close it.
03:02That's great but we need to format it to make it look more like our olive oil company.
03:06Let's just drag this in position here.
03:08Make sure that the whole box is selected and again in the SmartArt Tools
03:11category in the Design tab, we have this Change Color button.
03:14Click the down arrow and mouse over some of these and notice the diagram
03:19underneath is changing dynamically.
03:21I am not clicking anything.
03:22I am just rolling the mouse over.
03:23So this is really great way of getting a preview.
03:26I am going to go here in the second one under Accent3 and click that.
03:30So we have nice green color.
03:31But we can format this a little further.
03:33Still on the same Design tab to the right of Change Color we have the Styles.
03:37Click this little down-arrow right over here and you can mouse over any of these
03:41to get a preview of how it's going to look, and let's choose this one.
03:45I think it has a nice three-dimensional look to it.
03:48Let's deselect that.
03:49I want to show you a SmartArt that will let us put in some graphics.
03:53So go back to the Insert tab and again click SmartArt.
03:56I am going to stay with List, but if you scroll down here a little bit, this one
04:01over here is Horizontal Picture List.
04:03I think it kind of looks like little gas pumps, and double-click that and it
04:07puts it on your page again.
04:08Much too big for us.
04:09So put your mouse pointer on any of the four corners, shrink it a little bit
04:15more, and I will drag this over here to the right.
04:18What we want to say is these people who went on these trips and who sold all of
04:24these products, what were they selling?
04:26And we want to tell what are the three best products.
04:29First let's fill in the text.
04:31So rather than clicking on these boxes, click this two-headed arrow and let's
04:35say the first thing they sold was a Gift Pack.
04:40Let's go down over here.
04:41Now if you want to, you can stretch this box out.
04:44Let's click on that third bullet and just press the Backspace key to delete it,
04:48and you notice just like the other piece of SmartArt, it adjusts automatically.
04:52They also sold the Garlic Product, press Enter, so we get the third box back
04:57again, and they also sold the Herbs product.
05:00Let's just close this text box.
05:02Let's do some formatting here and go ahead and make sure that the SmartArt
05:06itself is selected in the SmartArt Tools category. In the Design tab,
05:10let's go back to Change Colors and just like before you could mouse over, not
05:13clicking anything, just rolling the mouse over, looking at the colors and again I
05:17am going to choose the second one here in the Accent3 category.
05:20Again, go back to SmartArt Styles, click this down-arrow, and by the way any of
05:24these drop-downs, you can also stretch them, make them taller or shorter, and
05:29roll over some of these, and just to be consistent I am going to use this style here.
05:33You might be wondering all this time, okay that's great but what are those three
05:37little boxes on top?
05:38That's what allows us to put in pictures.
05:40Click the first one here and this allows you to insert the picture in the
05:44Chapter 5 folder of the Exercise Files.
05:47Double-click the gift pack and it just pops right in.
05:49Click the second box above Garlic and we have the Garlic product, double-click
05:53that, and click the third box on top of Herbs and here we have our Herbs product
05:57and it pops right in, and you notice it sizes these appropriately, and click
06:01some here to deselect, so you can take a look.
06:03Now, there is couple of other things we can do with this.
06:05Click back on the SmartArt border and in the SmartArt Tools category, go to the
06:09Format tab, and you see we have these WordArt Styles.
06:13Click this down-arrow and again I am just going to shrink this here to get a better look.
06:17As you roll your mouse over these, notice that the text is changing and we
06:21didn't have to change any of the text at all. Scroll down.
06:24Now, some of these are not appropriate, they might be not even very legible, but this
06:27one here or this one here, I kind of like this one, just click it, and then we
06:33have again more of a three-dimensional maybe an embossed look and I will just
06:36deselect to get a better look.
06:37So this is not so much a spreadsheet anymore of just boring dry numbers.
06:42This is a presentation.
06:43So if you need to present this to maybe a vice-president of sales saying hey,
06:47here's our sales reps and here's the products that they sold,
06:51I think this will make a very nice impression.
Collapse this transcript
Coordinating a look using themes
00:00Let's say you have a worksheet like this that contains rows, columns of numbers,
00:04maybe some drawings and a chart, and you want a quick way to format everything
00:08all at once, so that it looks consistent and unified. Maybe looking like other
00:13documents that you have created in Word or PowerPoint for example.
00:17Using a theme you can apply consistent and professionally designed formatting to
00:21all the parts of your worksheet.
00:23Now keep something in mind though. What themes cannot do is they can't read your mind.
00:27So you have to give this worksheet a bit of a headstart by indicating where you
00:31want the formatting applied and here's how we will do it.
00:34Click anywhere inside this number area, and we're going to format this as a table.
00:38Don't worry too much about that.
00:40Over here in the Home tab we want to go here under Styles, click Format as Table.
00:44Choose anything here. It doesn't really matter because we're going
00:48to change it in a bit.
00:48What this is simply doing is saying okay, this is where we're going to have a
00:53table and the table has special meaning in Excel and this guesses correctly
00:57where we have the data. You can see the marching ants.
00:59The table has headers checked because that's verified, and that's great.
01:02Click OK, and we have these little dropdowns and don't even worry too much about what those are.
01:07What we will do here is we're in the Table Tools section in the Design tab.
01:11Click over here where it says Convert to Range.
01:14Choose Yes and now we have a regular worksheet again and you can just deselect.
01:20Now let's apply some themes.
01:22Go over here to the Page Layout tab and in the left side here in the Themes
01:26section, click Themes and we have all of these different named themes.
01:32Roll over them, and you can see that your worksheet is changing, the SmartArt in
01:37the lower left is changing, the chart in the lower right is changing.
01:40I am going to go over here to this Austin because that has kind of a green
01:43olivey sort of theme to it, but not quite.
01:46We want to change it a little bit.
01:47So go up here, still in the Themes section, choose Colors, and if you roll your
01:52mouse over any of these, you notice also that the numbers and the SmartArt
01:55and Chart are changing.
01:57Well, let's say I don't want any one of these out of the box.
02:00I want to have my own custom color.
02:02So down over here choose Create New Theme Colors.
02:05Let's move this out of the way and here we have a sample of how it's going to
02:09look and we can change any of these.
02:12So maybe I want some of these greens to be a little darker, maybe a little bit
02:15more olivey in color.
02:19And instead of naming it Custom 1, let's select it and let's call it Olive Oil,
02:26and click Save and now it's changed a little bit.
02:29Now, let's say we decide we want to edit it some more.
02:32Go back up here to the Color drop- down and there is our Olive Oil and
02:37right-click it, choose Edit, and we're right back where we were and we can
02:41continue editing, applying green colors or whatever other color you like, and you
02:45can simply click Save and save the color over it.
02:48If there's a color palette that you don't like, let's click this here, maybe
02:52we don't want this Two Trees, right-click it and choose Delete, confirm and it's gone.
02:58While we're at it, let's change some of the fonts.
03:01Go up here and choose Fonts and roll over and you see also you can change the
03:06fonts on your worksheet dynamically.
03:09I think this is a really great feature and once you have a theme customized the
03:13way you like, remember that you could also use it in Word and PowerPoint, so all
03:17of your documents will have the same consistent, unified look and feel to them.
Collapse this transcript
Applying built-in styles
00:00The ability to use styles in your applications is one of those features
00:04that isn't well known, and I think that's too bad because styles can be a great timesaver.
00:09If you've never used styles either in Excel or your other programs, a style is
00:13simply a basket of formatting that you can apply whenever and wherever you need.
00:18Styles can contain fonts, colors, backgrounds, number formatting, and more.
00:22The whole idea of using styles is that you can keep your content separate from
00:26your formatting, which means that your formatting is not just faster to apply
00:30but it's a lot more consistent.
00:32You don't have to worry about different colors or different fonts being applied
00:35in different places.
00:36I'll show you how to create styles later in the chapter but first, let's take a
00:39look at the styles that are already built into Excel that we can use.
00:43If you take a look at this worksheet here, you can see it's sorted by department.
00:47So let's select these Executive cells here, and here in the Home tab let's go
00:52over to the Styles section then click here on Cell Styles, and this shows you
00:56all sorts of different styles that are built-in.
00:58And if you roll your mouse over them, you can see that those cells there in
01:01Column B are changing dynamically. And I will just choose his Accent3,
01:05because it kind of fits in with the green olive oil look of our worksheet and
01:08with our company here.
01:10Well, we can also format numbers.
01:12Let's format all of the dollars here, because right now under Wage, we can't
01:16tell is this dollars, is it yen, is it oranges, we don't know.
01:20So click the first one and to select the whole row you have a choice. You can
01:24scroll down to the bottom if you like.
01:27Honestly I think that's a little too difficult. Let me show you a much easier way.
01:30Scroll back up to the top, click the first one and press Ctrl+Shift+Down Arrow, and boom!
01:36That immediately selects all the way to the bottom of that list.
01:39Here we only go to Row 36 but imagine if you had several thousand rows.
01:43You wouldn't want to be dragging all the way down. You'd be there all day.
01:46So back in the Styles section, let's go up here to Cell Styles and we have some
01:50currency and if you roll over this currency, you see what it does there in
01:54Column F. It gives you dollars.
01:56It gives you commas for thousand separators.
01:58It gives you pennies.
01:59Well, maybe you don't want the pennies.
02:00So if you choose this one here, Currency 0, it gives you the dollar signs and
02:04the commas but no pennies.
02:05And you can just select that and click off here to deselect.
02:08Now, you might wonder well what comes with this particular currency style, or
02:12what comes with this particular color style?
02:15Well, go back to Cell Styles and right- click this Accent3 and from the pop-up menu,
02:21choose Modify.
02:22Now, in this Style dialog box, it tells you that Number, Alignment, Border,
02:27and Protection are not part of the style but any Font or any Fill that you
02:30apply is part of the style.
02:32If you want to change any of that, click this Format button here and this brings
02:36up the standard Format Cells dialog box that you would get elsewhere in Excel.
02:40We're not going to change anything right now, so you can just cancel out and
02:44cancel out, so you have your worksheet back. Let's do one more.
02:48Over here in cell A2 we have this Payroll. Click that Payroll, go up here to
02:52Cell Styles and you see we have some headings.
02:55Heading 1 is maybe a little too big, Heading 2, but you might want to choose
02:59Heading 3 or Heading 4, and deselect it and take a look.
03:04So if you're okay using the built-in styles and you don't need anything more
03:07than that, then you're all set.
03:09But what if you want to create your own custom styles?
03:12That's what I will show you how to do later in the chapter.
Collapse this transcript
Creating and sharing styles
00:00Sometimes you want to apply styles that don't exist as part of Excel's built-in style.
00:05So you can create your own.
00:07The easiest way to create your own style is to apply the formatting first just
00:11as though you're doing regular formatting and then use those cells as the
00:15example to define the style.
00:17What makes it so useful is that if you change some of the characteristics of the
00:22style like color, font, or fill or border, every cell that is tagged with that
00:28style will immediately change.
00:30So that keeps your formatting consistent and it also lets you format faster.
00:34Well, let's take a look here.
00:35We are sorted by department.
00:38Let's select the Graphics department here.
00:40It doesn't have any formatting yet, and let's change the color.
00:43So click the Color dropdown, and I will choose a green here keeping with our
00:47Olive theme, and choose a color and I'll choose white, so we have a reverse
00:52look, and let's change the font face.
00:54Let's click that and keep in mind the fonts that you have in your computer
00:58might be somewhat different from the fonts that are on this computer.
01:01I like Comic Sans, okay and just deselect so you can see it.
01:05Well, now we can use any one of these cells we just formatted as the example
01:10to create the style.
01:11So select any one of them, and you want to be on the Home tab and then in
01:14Styles group, click on Cell Styles and down here towards the bottom, choose New Cell Style.
01:22Well, let's give it a name, and maybe let's call this Department.
01:28Here are all the characteristics of the style.
01:30Well, we're going to use this for text and not for number, so you might want to
01:34remove number, so there's no number formatting as part of the style.
01:38The others you can leave. Click OK.
01:40Now, we use that as an example but we still haven't had these particular
01:45cells with that style.
01:46So let's do that now. Select those cells again, go back to Cell Styles, and you
01:51see in Custom now we have a style called Department. So select it and scroll down.
01:56Maybe let's select Marketing, go back to Cell Styles, choose Department and there it is.
02:02Okay, that's great but what happens if later on we decide we want to make
02:05some formatting change?
02:06Maybe we want to change the color, maybe we want to change the font.
02:10Select any one of those cells formatted with the Department style. Click back
02:15again on Cell Styles.
02:16Now here is the style we created, right-click it, and from the pop-up
02:19menu choose Modify.
02:22We're in the Style dialog box, click the Format button, and now we're in the
02:27Format Cells dialog box.
02:29So let's start with the font.
02:31Click on the Font tab.
02:31Now the font is white in color so it's kind of hard to see, so let's click this
02:35drop-down and choose a color.
02:38Maybe I will choose shade of blue there, and let's change the font face, and you
02:44could choose any one. I kind of like Cambria, and let's change the fill, and I
02:49will make this a lighter green, click OK, click OK and boom!
02:54They all changed at once.
02:55That's really the power of styles, making one little change and then all the
02:59cells changed that have that style applied.
03:02You don't have to go and hunt them down.
03:03Now, when you're looking at the styles, it's not always obvious what style a
03:09cell is formatted with.
03:10So for example, I am going to scroll up here.
03:12Let's say Executive.
03:13Click on one of these Executive cells.
03:15Well, what style is applied?
03:17Click on the Cell Styles drop- down and well, this is kind of
03:20overwhelming, isn't it?
03:21You kind of have to hunt around.
03:23Well, if you look closely here this 40% Accent1 is kind of highlighted, so we
03:27know what style is applied there.
03:29Just hit the Escape once or twice, maybe click on Finances, try that again, go
03:33up to Cell Styles, and again this is kind of overwhelming.
03:36You'd really have to look to see that it's 40% - Accent6. Let's hit your Escape
03:40key a couple of times.
03:41Here is a much easier way, and it involves a kind of weird shortcut.
03:44Press Alt+Apostrophe, or if you want to think of it as Alt+Single Quotation Mark.
03:49That goes right into the Style dialog box and now you can see the name.
03:53That's grayed out, you can't change it, but you can certainly read it, can't you?
03:56Let me cancel out here, click on one of these Wage cells, and again press
04:00Alt+Apostrophe, and now you can see that.
04:02Oh yes, it's 40%-Accent3. Maybe click on this style that we created, press
04:07Alt+Apostrophe, and you can see it's Department.
04:09Now here because it's custom style, we actually can go and modify it.
04:13We're not going to change this right here, so you can cancel out.
04:16Now one other thing.
04:17What if you want to use these styles that you created in another workbook?
04:22Well here's what we do.
04:22First of all, leave this workbook open.
04:24That's a necessity, and go to your File > Open dialog box.
04:27I will just press Ctrl+L and in the Exercise Files, Chapter 5 folder, we have a
04:33file here called merge styles.
04:35Double-click that, and here we have this list sorted by Parking Lot.
04:40Maybe we want to format Parking Lot A, Parking Lot B, Parking Lot C with some of these styles.
04:45Now, I'll select all the Parking Lot A. When you go up to Cell Styles, you see
04:50there's no custom style there.
04:51So what you do is down at bottom, choose Merge Styles.
04:55This is why you had to leave that other file open, because you can only merge
04:58styles from other Excel workbooks that are currently open.
05:02So there's not much of a choice here, so just double-click Custom Styles, and it
05:06doesn't ask you any questions. It just doesn't.
05:09So now when we go up here to Cell Styles, we can see the custom styles, choose
05:14Department, and there it is. It's formatted.
05:17One other thing to keep in mind.
05:18If you go back to that original workbook where you created the styles and you
05:22modify that style again, you'll have to go and re-import it here
05:26if you want the styles to be consistent from one workbook to another.
05:29When you merge styles, there's no dynamic link there.
Collapse this transcript
Using templates
00:00Sometimes the hardest part of using Excel is staring at a blank screen and
00:04wondering, okay, how am I going to arrange my workbook?
00:08How will I create the columns and rows?
00:10What's supposed to be on here?
00:11How is it supposed to look?
00:13Well, fortunately Excel gives you a lot of templates that you can use.
00:16They're free, some of them are built- in with Excel, some of them you can
00:19download from Microsoft's website automatically. Don't worry.
00:23You don't have to go into your web browser and start installing anything.
00:26It just happens automatically. Let's take a look.
00:29Go up to the File tab, so we're in Backstage view, and then down over here choose New,
00:33and look at all these templates.
00:36Now these are not just templates; these are categories of templates.
00:39Now before we go into them, let me just explain if you want to create a new
00:43blank workbook and just another blank page, you can choose Blank workbook and choose Create.
00:48It's just the same thing as pressing Ctrl+N for New.
00:51But that's not important right now.
00:52Let's take a look at some other.
00:54I am just going to click Invoices here and here are all of the invoices that we
00:59have available, and click any one and whichever you click, you can see there is
01:03a little thumbnail there on the right.
01:05So you can have just about anything that you like.
01:07So I am going to choose this Work order and double-click it.
01:13Maybe you'll like a different template, and that's okay.
01:15You see it says Your Logo Here.
01:17Well, that's pretty good, and when you click it, you see it's just a graphic.
01:20So I'll press Delete. Let's insert our own logo.
01:23So graphics are items that you insert, so go to the Insert menu and choose
01:28Picture, and in the Chapter 5 folder of the Exercise Files we have our Two Trees
01:33Olive Oil company logo. Double-click it.
01:35It inserts. Well, it's kind of big, so let's shrink it.
01:38Put your mouse pointer on one of the corner handle, so you get the two-headed
01:41mouse pointer arrow and shrink it.
01:43Because it's an inserted graphic, you don't have to hold the Shift key down to
01:46constrain the proportions. You could just do it by hand and I will put this over here.
01:52You could change anything you want.
01:53You could change the slogan.
01:54Maybe let's put company name and so forth.
02:02Of course, you could fill out the address and zip code and all that.
02:05Well, let's do a little bit of formatting. I will just select the column headers
02:09here and back in Home tab we'll go over here to Cell Styles.
02:13Now I like this Accent3.
02:15It's kind of an olive-y color and I will select it.
02:17Now we have it looking a little bit more like what we would have for our company.
02:22Now once you have all of your data typed in here, you probably want to save it.
02:26So before you save it, let's take a look at something up here.
02:28On the title bar see it says Work order1 and it says Compatibility Mode.
02:32That Work order1 means that this is the first file we are basing on that
02:39Work order template.
02:40The same thing as when you're creating a new blank workbook and Excel calls it
02:44Book 1, Book 2, and so on.
02:45So it's the same thing here with a template, Work order1, Work order2.
02:48That Compatibility Mode means that this template was created in an older version
02:53of Excel and you will find that a lot.
02:55Not all of the templates were created for the 2010 version, but don't worry
02:59because you can use all of them even if they are in Compatibility Mode.
03:03So now we're going to save it and you could press Ctrl+S to save, you can
03:07click the little Save button here, you can go to the File menu, and choose Save, whatever you like.
03:11Instead of calling this Work order1, let's call this work order for company xyz.
03:19You see it's saving it as a regular old Excel workbook.
03:23Click Save and there it is.
03:26You see there is the new file name. Let's close it.
03:28You can press Ctrl+F4 to close or click this X here to close.
03:31Now, let's say decide that oh, I want to use that work order again, but, gee,
03:35I don't remember what it's called. I don't remember where it was or anything.
03:40Well, you don't have to worry about that.
03:41Let's go back to the File tab, so we're back in Backstage View.
03:44Go back to New, and you see over here where it says Recent templates.
03:48Click that and there is that Work order again.
03:51Double-click it and it comes in.
03:53Notice it doesn't have the logo and formatting and all that because this is
03:57simply taking a brand-new fresh copy of the original template.
04:01So anytime you're stuck and you're not sure how you want your workbook to look,
04:05take a look at the templates.
04:06I'm sure you'll find something you like.
Collapse this transcript
Creating and using original templates
00:00The best way to create your own templates is to use your own existing workbooks.
00:05Turning a workbook into a template just involves saving it. You don't have to do anything fancy.
00:10Now let's take a look.
00:12Go to the File tab, so we get into the Backstage view, and go down over here to
00:16New and then up of top select New from existing and in Chapter 5 of the Exercise
00:22folders, double-click this file turn into template.
00:26It opens up, and you see up here it's called turn into template1.
00:29This is the same idea as when you create a new workbook and Excel calls it
00:33book1, book2 and so on.
00:34This is simply the first instance of using that file called turn into template.
00:40We want to turn this into a template.
00:41We are not actually going to put data in here.
00:44So let's just save this as a template.
00:47Now you can either press the F12 key on your keyboard to get to the Save As dialog box.
00:52Let's cancel out. Or you could go to the File tab and choose Save As.
00:57Down over here where it says Save as type, click that and choose Excel Template,
01:01and you can see the extension is .xltx.
01:05Let's change the file name, because this is some of our olive oil.
01:08I'll call this liquid assets and click Save and now you can see up here it saved
01:15as liquid assets.xltx.
01:17So this is the actual template itself.
01:19Now, again let's close it.
01:20Now let's say it comes sometime later and you say gee, I want to use that template.
01:25I don't remember where it is!
01:26Well, you don't have to worry.
01:27Let's go up to the File tab, so we get back into Backstage view, go back to New
01:32and over here or choose My templates and there it is.
01:35Double-click it and here we are now we can go and use it and now can see this is
01:39liquid assets.xltx1.
01:42And now we can put in some data, whatever your data happened to be, and now
01:49let's save it as a regular Excel workbook.
01:52So you can press Ctrl+S to save or click your Save button, whatever you like.
01:57Here this is saving as a regular Excel workbook.
02:00I am not going to bother about actually saving this.
02:02I will just cancel out.
02:03So if you have workbooks that you use often and workbooks that you like,
02:07my advice is convert them into templates.
02:09I think that'll save you fair amount of work later on.
Collapse this transcript
6. Printing Preparation
Making the pieces fit
00:00Here we have our expense report already filled in and formatted. We want to make
00:04sure that it prints properly.
00:06So everything to do with Page Size and Orientation and Page Breaks and so forth,
00:12we could find here under the Page Layout tab.
00:14So click Page Layout tab and here we have our Page Setup group and let's take a
00:18look at a few things.
00:20First, let's take a look at Page Size and click this and you see we've all sorts
00:23of different page sizes.
00:25Some of you may not recognize what they are and you could always go down here
00:30and choose Custom Size, but I'm just going to leave it as Letter, so you could
00:33just click off it here somewhere.
00:35Well, now that you know what size it is, here's one way that you can see how
00:39it's going to look when printed.
00:41Down here in the lower-right corner, we have our View buttons and click this
00:45middle view button here. That's Page Layout, so you could see the actual sheet of
00:49paper and scroll down.
00:51Now keep in mind that this is not always exactly what will be printed out.
00:56This is not a Print Preview.
00:57We'll see Print Preview in a moment.
00:59But notice here on bottom, we have these colorful arrows and then we have a
01:02second set of cities that we have visited in our expense report and we have some
01:06calculations here and scroll back up.
01:08When you're dealing with Page Layout, you might think that when you're setting
01:12up the page for printing, you go into Page Layout view and sometimes that's
01:15right, but because Page Layout view doesn't always show you exactly what's going
01:19to happen when you print out, we really want to use Print Preview.
01:22So first thing I'll do here is I'm going to go back to Normal view, so I'll
01:26click that Normal view button.
01:28Now to set the print area, let's scroll down. What we're going to do is we're
01:31going to decide that we want everything up to the colorful arrows to print.
01:35So let's select across Row 28 and then select up to the very top.
01:40Click here in Print Area and choose Set Print Area and if you do deselect you
01:45could see this dotted line and that tells us what will print out.
01:49Now if you click down here back on Page Layout, you can see-- and this is where
01:54I was saying that this isn't exactly right, because this dotted line is showing
01:58you your print area and only that will print out, but it's still showing you
02:03these other cities on the sheet of paper.
02:05That's what I mean by not quite exact.
02:07So let's go back to Normal view.
02:09Well, let's take a look at Print Preview.
02:11Two ways to do it is you could either press Ctrl+P on your keyboard to print or
02:15click the File tab to go to Backstage view and go down over here to Print and
02:20now you can see your preview.
02:22So it's printing what we want, but maybe we want this to be landscape oriented.
02:26Well, just press the Escape key on your keyboard and you see what happens is
02:29because the Page Layout tab was the last place you were before Backstage view,
02:33pressing the Escape key just brings it right back to Page Layout view.
02:36So let's go up to Orientation and make it Landscape and again, this time I'll
02:41press Ctrl+P, and this is Landscape but it's kind of squished to the upper-left
02:45corner. We really want this to be centered vertically and horizontally.
02:48So again, we'll hit the Escape key and let's go up here to Margins and choose
02:53Margins and down at the bottom, click Custom Margins.
02:56This simply brings us to the Margins tab of the Page Setup dialog box.
03:00Here under Center on page choose Horizontally and Vertically, click OK, and now
03:05let's go back to Preview and now we can see it's centered on the page
03:09vertically and horizontally.
03:10Also notice down here on the bottom, this shows us it's Page 1 of 1.
03:14So we know that this page has broken correctly.
03:17Again, I'll hit the Escape key.
03:18Now maybe we decide, you know, we want to print the entire worksheet after all.
03:22We don't want just that part of it.
03:24So we'll go up here to the Print Area and choose Clear Print Area.
03:28Now if you scroll down, you can see these two dotted lines because these are
03:33automatic page breaks.
03:35Well, look where this page is breaking.
03:36It's breaking kind of in the middle of the second set of cities.
03:39We probably want to break it up there.
03:41So click the first city, go up here to Breaks, choose Insert Page Break, and now
03:47we can see the page is broken above the second set of cities.
03:49Let's check it out.
03:50Go to the File tab, back to Print.
03:53So again, we have the first page up to these colorful arrows.
03:57Here we can see we're looking at Page 1 of 2, click that arrow and now we can
04:00see the second set of cities.
04:02And you see the column titles are missing and that's something we'll deal with
04:06later on in this chapter.
04:07So again, just press the Escape key.
04:09Something else that you might want to do is turn off the gridlines and again, we
04:14are still under the Page Layout tab and here under Sheet Options, you see the
04:17Gridlines View and Print are two checkboxes.
04:20What that means is that showing gridlines or not showing gridlines, you could do
04:24independently for viewing on the screen and for printing.
04:27So right here under View I can deselect that and now we don't see gridlines in
04:32the page. Put it back.
04:33By default gridlines don't print but you can check that and they will print.
04:37So you can do that independently.
04:39One other thing you want to know is that a worksheet can have only one
04:43print area at a time.
04:44If you go up here and you set the print area to a new area, your original
04:49print area is deleted.
04:51There is a little workaround and I'll show you that later in the course, but
04:54that's something kind of important you want to keep in mind.
Collapse this transcript
Inserting headers and footers
00:00If you're looking around for where you can insert headers and footers, you could
00:04find it here under the Insert tab and over here is Header & Footer.
00:08But don't click that because I think there's a better way to do this.
00:11Down here in the bottom, where you have those three view buttons. Right now
00:15we're in the Normal View.
00:15It's the first button.
00:16Click the second button, we're in Page Layout View, and look what we have at the top.
00:21It says Click to add header.
00:22Now before you click, just roll your mouse over and you see we have this center
00:26section and if you roll to the right, we have the right section and if you roll
00:30to the left we have the left section.
00:32Anything you put in the left section will be left aligned, anything you put in
00:35the center section will be center aligned, and anything you put in the right
00:38section, well, that's going to be right aligned.
00:40So let's start with a left click in the left section and you see there it says
00:43header, and when you do you've the Header & Footer Tools section here with the Design tab.
00:48So click that Design tab.
00:50And the first thing we want to put in is what page we're on.
00:53So click right over here where it says Page Number.
00:56Well, maybe you wanted to be a little more specific rather than just Page 1 and
01:00Page 2. If you have a multiple page document, maybe you wanted to say something
01:02like Page 1 of 3, Page 2 of 3 and so on.
01:06So just type a space, type of, type a space and click here Number of Pages.
01:10Now if you click outside the header area, there you can see it's showing
01:14us that's Page 1 of 2.
01:16Okay, let's put in the file name.
01:18So roll you mouse over here in the right section and click and you see that's
01:21right aligned, and up here we've File Path, File Name and the Sheet Name.
01:28Some people like to call it the tab name.
01:29Well, if you put in the File Name, it will just tell us right now that it's
01:33called headers and footers.xlsx.
01:35If you put in the File Path, it will tell us the whole path on the computer.
01:39I don't think we really need to do that here.
01:41Let's just click File Name and press the Enter key and click Sheet Name and
01:46now when you click off here, this tells us headers and footers.xlsx and that it's Sheet1.
01:51Now Sheet1 isn't really much for the name, is it?
01:53So double-click over here where it says Sheet1 and let's call this First
01:58Quarter, press Enter, because after all this is the first quarter of expenses.
02:03Notice over here it immediately updates to say First Quarter.
02:06Let's put in a footer.
02:08You can just scroll down to the bottom and over here it says Click to add footer
02:11and again we have the left, center, and right sections.
02:14So let's say we want to put the company logo in the lower-right corner.
02:19So click over here, go back to the Design tab, and let's put in a picture.
02:25So click Picture and in the Chapter 6 folder of the Exercise Files we have the
02:29Two Trees Olive Oil company logo, double-click it.
02:32Now you don't actually see the picture here until you click off it.
02:35Now this is kind of big, so we want to modify a little bit.
02:39Click back on here and make sure that this code &Picture is selected.
02:43By the way, you could type any of these codes in but I really don't advice it.
02:47It's too easy to make an error.
02:49When you have it selected, go up here and choose Format Picture and we're in
02:53the Size tab and let's change the Height. Maybe instead of 100%, let's make
02:58that 40 and you don't have to type the percent. You can just type 40 and let's
03:02also make the Width 40%.
03:05Click OK and now the logo is smaller and unobtrusive.
03:10So let's put one more thing in the footer.
03:12Click in the lower-left corner here and you don't always have to put one of
03:16these items from the Header & Footer elements in the footer or header.
03:20We'll click down here.
03:21Let's type in the web address of our fictitious olive oil company,
03:25www.twotreesoliveoil.com, and click off of it and now you have that there so
03:34that will be printed out.
03:35Let's take a look at our Print Preview. Go to the File menu and Print or you
03:39could press Ctrl+P, and here we've our page number, we have the file name, the
03:44tab, the logo, and the web address.
03:48So I think that's pretty cool!
Collapse this transcript
Printing and PDFs
00:00Once you set up your worksheet so that you have the right page size,
00:04your headers and footers and all the other pre-printing activities, let's go and see
00:10what happens when we actually print.
00:11Well, you can go up to the File tab for Backstage view.
00:14Go down here to Print or you could press Ctrl+P, either way, and here we
00:18have our Print Preview and we have it centered on the page horizontally and vertically.
00:23We have our headers here and footers here, looks pretty nice.
00:26So let's take a look at some of their print settings.
00:28First of all, if you just want to print and all of the settings that are
00:32already in there are okay, all you have to do is click the Print button and how
00:36many copies do you want.
00:37You can choose your printer from right over here and you click this and all of
00:41the printers that are configured in your computer are here.
00:45I'm just going to click off it and keep the current printer.
00:47If you want to get to printer specific properties, you could click this link.
00:52What's really nice about the screen is that you don't have to go spelunking
00:55through multiple levels of printer dialog boxes, like many applications or even
01:00older versions of Excel. Everything you need is right here.
01:03So which sheets do you want to print?
01:05You can click this.
01:06You can print the Active Sheet, that is whatever sheet you have currently
01:09selected, or the whole workbook or maybe if you have just a few cells selected in
01:14a worksheet, you can print just those cells.
01:17Click off here and if you want a specific page range, maybe you have a very
01:21large worksheet of several dozen pages and you wanted to print maybe only page 5
01:25to 10, you could do that here.
01:27And when you do that, if you're printing out here multiple copies, here you could
01:31choose whether they're collated or not.
01:32Now here's a really great feature.
01:35You might wonder well, what's the big deal. Landscape or portrait oriented?
01:39Well, many programs in older versions of Excel it would be very easy to set up
01:44let's say landscape orientation in the document, you go over to the
01:47Print dialog box and you choose portrait oriented, and then have the pages cut off or vice-versa.
01:52Well in Excel 2010, the orientation in the Print dialog box and in the Page
01:58Layout are synchronized.
01:59So let's say we go over here and we make it portrait oriented.
02:03See it changes here?
02:04Now click the Page Layout tab and click Orientation and look at that.
02:08It's now Portrait and vice-versa.
02:10If we change this from Portrait back to Landscape, I'll just press Ctrl+P to go back in.
02:14You see it's back to Landscape, so I think that's really a great feature.
02:18Same for page size.
02:19You can choose different page sizes if you want. I'm going to keep it at Letter.
02:23And if you want to change what your margins are or if you want to change custom
02:27margins you can click that over here.
02:30Now Scaling means let's say your worksheet is just a little too big for one page
02:35and you want to shrink it to 100% so it fits on the page, or maybe it's really
02:39tiny and you want it bigger to take up the page.
02:42Well that's what you could do here for scaling and you have the options here.
02:46Keep in mind if you scale the page, making it bigger or smaller, you are not
02:49changing the fonts. You're not changing the column widths or the row height.
02:52It's simply the image that comes out of the printer that you're changing.
02:55Kind of like if you use a rescaling feature on a photocopier.
03:00I'm going to leave this here as No Scaling.
03:03Now if you like kind of an old-fashioned Page Setup dialog box the way Excel did
03:07it in previous versions, you have this Page Setup link and you can click that
03:11and that's going to bring you to Page Setup.
03:13I am just going to click Cancel.
03:15We don't really need that.
03:16Well, let's say we want to go and create an Adobe PDF so this will be
03:21readable in Adobe Reader.
03:23Now that's the default printer on this machine, so all you have to do is click
03:27Print, but that means Adobe Acrobat is installed.
03:31What if your computer doesn't have Adobe Acrobat installed?
03:34You can still create a PDF.
03:36You don't need Adobe Acrobat.
03:39Click over here, Save & Send.
03:41We can choose to Create PDF or XPS document.
03:45XPS is kind of the Microsoft way of creating a format kind of like PDF, but
03:49don't worry about that too much.
03:51So just choose that and then click this button here and by default it will offer
03:55to create a PDF and I'm just going to leave this here in the Chapter 6 folder.
04:00Now if you want some options specific for how to create the PDF, you can click
04:04Options and you have all your options up here.
04:06I'm just going to leave the defaults and click Cancel.
04:09And over here where it says Open file after publishing, you probably want to
04:12leave that selected just so you can view it in Adobe Reader to make sure you
04:16got what you are hoping to get, and then click Publish.
04:22And here we have this open in Adobe Acrobat or Adobe Reader depending upon what
04:26you have in your computer and this is exactly what we saw in Print Preview.
04:31I think this is a really great feature. Go and check it out.
Collapse this transcript
7. Large Excel Projects
Finding and replacing data
00:00If you have a worksheet with a lot of data on it, knowing how to find and how to
00:04replace data is very important.
00:06So let's take a look.
00:08Right now this worksheet is sorted by Last Name, and let's say we have to leave
00:11it that way, but you want to find everybody who is in California, and you can
00:16see here in Column D we have the States listed.
00:18So you want to make sure you are on the Home tab and over here on the right,
00:22the little binoculars, choose Find & Select and the first option is Find.
00:27I am just going to cancel out of here for a second just to show you the
00:30shortcut is Ctrl+F, F for Find.
00:33So let's type in CA for California, click Find Next and look what happens.
00:39It finds someone whose name is Carol.
00:41Click Find Next again, going to find somebody whose name is Carly. Hmm.
00:45Click Find Next again, okay, finally it finds California.
00:49Well, there has got to be a better way.
00:50So let's click back up here on the top.
00:52You can leave that CA in there.
00:53But click this Options button, and you see we have a couple of helpful
00:57options, Match case.
00:58Now, you can match case and say okay, find every state is in capital letters,
01:02but let's say you have a worksheet one day where everybody's name is written in uppercase.
01:06So instead of that let's choose Match entire cell contents.
01:11Now when you click Find Next, it finds California and every time you click Find
01:15Next, it finds California. Okay.
01:18Well, that's nice also, but let's say you want to find every single instance of
01:25California all at the same time.
01:26That is, rather than bouncing from cell to cell to cell, wouldn't it be nice if
01:30you can see them all right in front of you?
01:31So again, maybe let's click back up here, and instead of Find Next, click Find All
01:36and let's just move this and stretch this out, and now this shows you which
01:41worksheet and which cell contains California.
01:44And if you notice, these kind of look like links, don't they?
01:47Well, click one and each one you click will bring you right to that particular cell.
01:54So that's a nice, handy way of finding every instance of what you are searching for.
01:59Okay. That's great!
02:00Let's close this and I am just going to press Ctrl+Home so I get back up to the
02:04top of the worksheet.
02:05Let's say we want to replace some data, and if you look down here in Column C,
02:08where we have the Department listed, we have some people that are in the HR Department.
02:12Maybe we want to spell that out, we want that to say Human Resources.
02:16So again, let's go up here at the top and click on the binoculars button
02:19again and choose Replace.
02:21And by the way, the shortcut for that is Ctrl+H. Don't worry about that too much.
02:25So over here, where it says Find what, let's change that to say HR.
02:29Let's press Tab and we will Replace that with Human Resources and we can leave
02:36that here as Match cell contents.
02:38Now, choose Find Next. It finds it.
02:41Click Replace.
02:43It replaces it and it goes onto the next one.
02:45Now, you could keep going and going, but maybe you want to do this all in one shot.
02:50Well, if you are pretty sure that you won't replace any data that you don't
02:54really want to replace, you could choose here Replace All.
02:57It replaces everyone and it tells you how many it made.
03:01Click OK, you can close out, and now if you scroll down, you see each instance
03:05of HR has now changed to Human Resources.
03:09So this is a pretty handy feature, I think.
Collapse this transcript
Freezing panes
00:00When you have a large worksheet, you will want to be able to scroll all over and
00:04still see your column and row headers.
00:06That's what freezing panes is all about.
00:09Let's take a look at this large worksheet. Scroll down.
00:11I will just roll my mouse wheel down.
00:13And I can see my data but I can't really see any of the headers.
00:17And what if we scroll to the right?
00:18Maybe let's scroll up first, and now we can't see what's happening in the first column.
00:24And if we scroll to the right and scroll down, now we are looking at data and
00:28we can't really tell what we are looking at.
00:30If you are in a view like this, you can just press Ctrl+Home and then you can
00:34always get back up to Cell A1.
00:35So we are back on the starting position.
00:37Well, when you have this large worksheet, here is where freezing panes comes into play.
00:42Now take a look over here on the right side.
00:44Now here is your vertical scrollbar.
00:46On top of the vertical scrollbar, you see this little bar here? Put your
00:50mouse-pointer over it and your mouse- pointer becomes a two-headed up and
00:54down arrow. Click and drag down so this gray line is resting just underneath Row 4 and let go.
01:00Now what you could do is you could click on the top part and scroll this
01:05independently from the bottom pane.
01:07That's okay but that could get a little confusing when your screen
01:10starts looking like this.
01:11So here is what we do.
01:12Click the View tab, and over here choose Freeze Panes and from the fly-out
01:17choose Freeze Panes.
01:18So what that does is it kind of locks the top pane in place so that you can
01:22scroll the bottom and not lose sight of what your column headers are.
01:27Well, that's great but it still doesn't fix the problem of what happens when we
01:31scroll to the right.
01:32Let's scroll a little back here.
01:34We can split the screen not just top and bottom, we can also split it left and right,
01:37but before we do that, we have to unfreeze the panes.
01:40So back in the View tab, let's go to Freeze Panes and choose Unfreeze Panes.
01:45Down here in the lower right corner, also kind of below the vertical scrollbar
01:50and on the right side of the horizontal scrollbar, there is another one of
01:52those little bars there.
01:53Put your mouse pointer on it and you get a two-headed left and right arrow and
01:57click and drag this gray bar so that it's resting between Column A and Column B.
02:02And again, back in the View tab, go to Freeze Panes, and again choose Freeze Panes.
02:08Now you can scroll up and down and not lose sight of your column headers and you
02:13can also scroll to the right and not lose track of your first column.
02:18Now keep in mind when you freeze the panes, what you print will not be what
02:24you see on the screen.
02:25You will print the regular worksheet like you would see it normally.
02:30You would not see the panes split like this.
02:32This is only for your convenience to navigate through the worksheet.
02:36So let's say we want to get back to normal.
02:39We don't want the panes split anymore.
02:41Back here on the View tab, click Split, and that unsplits because it's highlighted.
02:47It's no longer highlighted again and now we have the worksheet like it was
02:51originally and you can see it's scrolling up, down, left and right.
02:55So that's a convenience that you might want to use whenever you have a
02:58very large worksheet.
Collapse this transcript
Repeating row and column titles
00:00Okay, so here we have our worksheet of people who work in the company and you
00:05see this is sorted by Department in Column C. And let's say we want to make a
00:10printout and we want to give the head of each department a list of all the
00:14people in their department.
00:15So we want to make one page for the Executive, another page for Finance
00:19department, another page for Graphics department and so on.
00:22Well, let's take a look at Print Preview.
00:23You could either press Ctrl+P or click the File tab to go in the Backstage view
00:28and click Print, and now we can see all right this looks fine.
00:31Now there are two pages, so go down over here and click this arrow to look at
00:34page 2, but on page 2 we can't see what any of those titles are, so it's
00:39kind of hard to read.
00:40And if we go back here, we can see again all of the departments are printed on
00:44the same page, which isn't quite what we want.
00:46So you can just press the Escape key so we are back to the Home tab.
00:49What we want to do is put in a page break before each department.
00:54So let's click on the first person here in the Finance department, and page
00:58breaks are something that we insert.
01:00So let's put in page breaks.
01:02So click here on the Page Layout tab, choose Breaks, and insert a Page Break,
01:07and you see that we now have the dotted line across.
01:10Well, let's try that again.
01:11Let's go to the first person Graphics department, click Breaks, and Insert Page Break.
01:16Well if you have a long worksheet and you want to put in a lot of page breaks,
01:20this gets really old, really fast.
01:23So Excel has a great feature that will repeat the last thing you did.
01:28Now it also works in the other Office programs.
01:30To repeat the last thing you did, all you have to do is press the F4 key on the keyboard.
01:35So let's go over here.
01:36Here is the first person in Human Resources, press F4, and that puts in a page
01:40break because the last thing we did was Page Break.
01:42Scroll down, click before the first person in IT, press the F4 key, the first
01:46person in Marketing, press F4, click the first person in Sales and press F4.
01:52Now let me repeat because it's very important.
01:54The F4 key is not the shortcut to insert a page break.
01:58The F4 key will simply repeat the last thing you did.
02:01So if I click something and make it bold, and I click somewhere else and press F4,
02:08it makes that bold also.
02:10I will just press Ctrl+Z couple of times to undo.
02:12So that's a very handy feature to know.
02:14Anyway, let's look at our Print Preview.
02:16Go back to the File tab, and Print.
02:18Okay, so now we have everybody in the Executive department and we see we now
02:22have seven pages and click through.
02:24Well, we have everybody in Finance and everybody in Graphics, in the other
02:28departments, but we don't have those headers there.
02:31So we have to find some way of doing that.
02:33So I am going to just press the Escape key.
02:35So we are back in the Page Layout tab and click Print Titles and this brings us
02:42into the Page Setup dialog box in the Sheet tab.
02:44You see over here its says Rows to repeat at top? Click in there and now let's
02:49select down the row headers from Row 1, down to Row 4, and you see this is
02:55repeating at the top, Row 1 to Row 4, and you see that's absolute reference so don't worry about that.
03:00Click OK. Now it doesn't look anything has changed here but let's go back to the Print Preview.
03:04I will just press Ctrl+P, so here is page 1.
03:07It looks the same as it did before, but now when you click through, here is
03:11page 2, the Finance department, click again, Graphics department, Human
03:15Resources, and so on.
03:18Now I had mentioned in an earlier movie that you can split the screen into top
03:23and bottom, left and right halves.
03:25That has nothing to do with printing.
03:26So if you want multiple pages to have repeating rows at the top, you need to use
03:31this feature of putting in print titles.
Collapse this transcript
Creating multiple custom worksheet views
00:00When you frequently have to get around to different areas of a large worksheet,
00:05all the shortcuts in the world still might not be easy enough or fast enough.
00:09So Excel has a really great feature called views, and you can define different
00:14areas of the sheet, even different zoom amounts as named views and then
00:19quickly hop from one view to another and thereby hop from one part of the
00:23worksheet to another.
00:25So let's take a look at how we do that.
00:26Let's click on the View tab, and over here click Custom Views, and this brings
00:31up the Custom Views dialog box.
00:32My advice is before scrolling and zooming and whatnot, you should create a
00:37custom view that is the normal view of the worksheet.
00:41That is right now we are scrolled all the way to the top. We scroll to the left.
00:44You can see down here we are at 100%.
00:47So click Add, and we will give the view a name of Normal.
00:51Here you could call it Default whatever you like. Click OK.
00:54Now go back to Custom Views, you see the there it is.
00:57I will just close out.
00:58Let's scroll down to the very bottom.
01:01And now let's go to Custom Views, click Add, and let's call this Bottom.
01:07And some people like to even put in the zoom amount.
01:10I will just leave that blank here. Click OK.
01:12Now let's scroll little bit to the right and zoom in.
01:15I will just hold the Ctrl key down and roll the mouse-wheel away from me, or you
01:20could use the Zoom slider here.
01:21So we are zoomed in to the lower right corner.
01:23So click Custom Views, click Add, and let's call this Bottom right - zoomed, click OK.
01:33I will just zoom back out, and use this Minus sign here to zoom back out to
01:38100%, and let's scroll to the top.
01:40Let's say we want to a custom view that shows us the top of the second
01:44section, which is over here.
01:45So click Custom Views, Add, I want to call this Top of 2nd section, click OK.
01:53Now let's say we want to zoom out on the entire first section.
01:57So scroll up, and whichever we want use the control and roll the wheel on the mouse.
02:01We use this little minus button.
02:03So we zoom out so we can see the entire first section, and click Custom
02:08Views, Add and call this Entire 1st section, and I will just press Enter
02:16instead of clicking OK.
02:17Well, now let's go and use these views.
02:20Click Custom Views and let's say here is Normal.
02:23I will double-click Normal.
02:24So here is the worksheet as we first opened it.
02:26Go back to Custom Views, Top of 2nd section.
02:30Go back to Custom Views, Entire 1st section.
02:33So you see this is a very nice simple way of getting around a large worksheet.
02:40But wait, there is more.
02:42Excel will let us have only one print area at a time.
02:46If you create a print area and you had an old print area, it still wipes out the
02:51old print area and gives you a new print area.
02:53Well, using Custom Views, we can sort of fudge it so we can have multiple print
02:57areas in the same worksheet.
02:59This is not kind of a standard way of doing it, but I think you'll like this.
03:03Let's select these cells over here.
03:05The first names and last names and departments.
03:08Let's say Executive, Finance, and Graphics.
03:10Maybe we just want to print out this area.
03:12Now before we create a Custom View, let's go to our Print Preview.
03:15You could press Ctrl+P or click the File tab and go to Print.
03:19Now by default, this is going to print the active sheets, but click this
03:22dropdown and choose Print Selection and you see we have just that selection.
03:27Now you are getting an idea where I'm after.
03:29So just press the Escape key, leave this area selected and still onto the
03:33View tab, create Custom Views, click Add, and let's call this first 3 depts,
03:41Click OK.
03:44Maybe let's scroll down here and let's say we wanted maybe the entire second
03:50section, but maybe only up to Column D let's say.
03:55So let's take from the first person to Column D and scroll down to the bottom.
04:00Okay, and let's create a Custom View for that.
04:04Click up here, click Add, and we will say second section through Column D.
04:14Click OK.
04:15Let's do one more.
04:16Scroll up to the top and let's say we wanted maybe just the Executive department.
04:21So select with print titles, and those four rows, Custom View, Add, and we'll call it
04:30executives. Click OK.
04:32So now go to Custom Views, and double-click executives.
04:35Now you see we have that selection.
04:38Custom Views saves a selection.
04:40So now when we go to Print, either Ctrl+ P or click the File tab, and we choose
04:44Print Selection, we have that view.
04:46Let's press Escape.
04:47Let's go back to Custom Views.
04:48Let's choose a different one.
04:50Let's choose first 3 departments. Double-click and we have that selection.
04:54Now we go to File > Print, and Print Selection, we have that.
04:59I am going to press Escape.
05:00Let's choose the third one we did, second section through Column D. Double-click.
05:05We have that selection here, I will press Ctrl+P, and now when we Print
05:09Selection, we just have that.
05:11So if you know some of the tricks here, you can squeeze out a little bit more
05:15from Excel than you might think.
Collapse this transcript
Hiding or grouping rows and columns
00:00There may be times when you don't want to display or print all your data.
00:04Maybe your worksheet is too big, or maybe you are presenting your work to someone who
00:08shouldn't have access to all your information.
00:10Rather than keeping track of separate worksheets, which I really advice against
00:14because just way too room for error,
00:16you can temporarily hide your rows and columns.
00:19Now there are two ways of doing this.
00:20First, I'll show you the standard way that I see most people using, but I will
00:25show you a better way that is a little more interactive.
00:28So let's say we want to show this worksheet to someone who shouldn't see what
00:32our Cost or Profit is.
00:34So put your mouse-pointer up here on the header for Column F and you see the
00:38mouse-pointer is pointing down.
00:39And click-and-drag straight across to Column H so we have those three columns selected.
00:43Make sure your mouse pointer is still pointing down, right-click, and from the
00:47pop-up menu, choose Hide and they are hidden.
00:49You can deselect and now we see they are hidden.
00:52Now if you want to get these columns back again, well how can you click on
00:56something to unhide if it's not there to click on it?
00:59Well, what you do is you put your mouse-pointer up here.
01:01Do you see the column skip from Column E to Column I?
01:04Put your mouse-pointer on the header for Column E, click-and-drag straight
01:07across to Column I so those columns are selected, and keeping your mouse pointer
01:11to that down arrow on the column header, right-click and from the pop-up menu
01:15choose Unhide and now the columns are back again.
01:18We can do this with rows also.
01:20Let's say we want to show our Total and Average, but we don't want to show
01:25the underlying data.
01:26Click on the header here for Row 5, make sure you've got that right pointing arrow,
01:31click down here let's say on Row 34, make sure you have that rightward
01:36pointing arrow, hold down your Shift key and click so we have that entire
01:40section selected, right-click, choose Hide, and you can deselect.
01:46And again we have just the Total and Average shown without the underlying data.
01:50And we can see here on the row headers that it's skipping from Row 4 to Row 35.
01:54So put your mouse-pointer on the header for Row 4, click-and-drag down to Row 35,
01:59right-click, choose Unhide, and now we have the underlying data back again.
02:04Well, that's great, but you see there is a lot of steps involved and it's very
02:08easy to miss if you have anything hidden or not.
02:12So here is a way that I like a little better.
02:14Let's go over here to the Data tab, and let's select the same columns that we did before.
02:20Columns F, G, and H, but over here, click Group and choose Group and hey, look what happens.
02:27By the way, the shortcut for Group is Alt+Shift+Right Arrow.
02:30That is hold down the Alt key, and the Shift key, and the Right Arrow.
02:33Now we have this Minus sign. Click that Minus sign and the columns collapse as
02:38before but now we can click that Plus sign to get them back again.
02:42We could do this for rows also and you see we have three groups.
02:46First, let's group all of them.
02:47So click the header for Row 5, scroll down, and let's Shift+Click the header for Row 35.
02:55So hold your Shift key down, click the header for Row 35, and again, either
02:59press Alt+Shift+Right Arrow or click Group and choose Group. Let's deselect.
03:04So now we have this whole area.
03:06Here you can click that minus.
03:07That collapses to just the Total and Average. Click that plus.
03:11Now we can nest groups.
03:13So let's select here from the header of Row 5 down just to the last one and
03:19again, Alt+Shift+Right Arrow, or click Group and Group, that's for Group 2,
03:23select the header, down to the last one, Group and Group, and again the header
03:29down to the last one.
03:30Now this time I will press Alt+Shift+ Right Arrow and we have that grouped.
03:33So now we can collapse some of them and nest them.
03:38So for example, now I have just Group 2 showing and the Total and Average
03:43without the other groups, or I can collapse that and maybe show just Group 1.
03:48Also, do you notice these little symbols here?
03:50If I click the number 1 going across, that hides it and group 2 brings it back.
03:55And here we have three levels.
03:57Level 1 is just the Total and the Average.
04:00Level 3 is everything expanded.
04:03Level 2 is we are seeing just the components but we don't have anything visible there.
04:07So here is where you can click that plus.
04:10So if you wanted to show just one of those groups as opposed to all the others.
04:14One thing you should know is that this affects the printout.
04:17Let's do a Print Preview.
04:18Either press Ctrl+P, or go to the File tab and choose Print, and now you can see
04:24it's going to print just that particular group that's visible.
04:28I will just press the Escape key to come out.
04:30Also, if for whatever reason you want to hide these little 1, and 2, and 3
04:35symbols here, there is only one way to do it.
04:37Press Ctrl+8, and Ctrl+8 hides them and Ctrl+8 brings them back.
04:44Well, now let's say you decided that you want to remove these groups.
04:48Few ways to do it. Let's say we want to remove the column grouping.
04:51Down put your mouse-pointer up here so it's a down-pointing arrow on Column F,
04:55click-and-drag across to Column H, and I can choose Ungroup and Ungroup, and
05:02let's click that number 3 so there are all expanded.
05:06I will show you how to do with rows.
05:07This is the same thing.
05:08Choose from Group 1 down to the last.
05:10One of the shortcuts for that is Alt+Shift+Left Arrow.
05:13So that's how you could ungroup one at a time.
05:16If you decide you want to ungroup all of these and get rid of all of these
05:20outlining on the whole sheet at once, go up to Ungroup, choose Clear Outline and
05:25now it's cleared it from the entire sheet.
05:28I think that's a much easier way to do it.
Collapse this transcript
Managing worksheets
00:00Excel files are known as workbooks for a very good reason I think.
00:05I like to think of a workbook as like a three ring looseleaf binder because
00:10when you think of a looseleaf binder, you have all these sheets and you can
00:14rearrange the order of the sheets, you can add sheets, remove sheets, rename them, copy them.
00:19Well, you could do all that here in Excel.
00:22Down here on bottom is where we have our sheets and by default Excel gives you
00:26three sheets in a new workbook. But you're not limited to that.
00:30You can have as many sheets as you want.
00:32It's limited only by memory and there's no way you are ever going to run out of
00:35memory for worksheets.
00:37You have to have at least one sheet in the workbook, which kind of makes sense.
00:41So in this movie I want to show you a little bit about managing those worksheets.
00:45Right now, we have is Sheet1 and if you look at Sheet2 and Sheet3, they are empty.
00:51We haven't put anything in there yet.
00:53Well, let's say we want to change this to different regions. Maybe this is going
00:58to be for the North region.
01:00So instead of calling this Sheet1, double-click where it says Sheet1 and let's
01:04just call this North and when you finish typing this, press Enter.
01:09Well maybe we want to give this a color in addition to a name.
01:13Right-click the North worksheet, choose Tab Color, and here you have all the
01:18colors and I will just choose this green olive-y color and you can't really see it
01:22very well, but if you click on one of the other tabs now you can see it.
01:26Now let's click back here. Well what if you want to rearrange where that
01:31North sheet is? Simply put your mouse pointer on it and make sure the mouse
01:35pointer is on the word North and make sure your mouse pointer is this arrow,
01:39not that big plus sign.
01:41Now click down with the mouse and notice that your mouse pointer has like a
01:45little sheet of paper on it and to the left of that North tab is a little
01:48upside down triangle.
01:50Now let's drag over here, so this upside down triangle is between Sheet2 and
01:55Sheet3, let go and now you have dragged it.
01:57Now let's try again. Take that North tab and drag it to the end after Sheet3.
02:02Now let's take it again, make sure the mouse pointer is at arrow, not the plus sign,
02:05click and drag, really you want to pay attention to that upside down
02:09triangle, and let go.
02:11Well what if we want to copy that North worksheet?
02:14It's almost the same thing but we use the Control key.
02:18Put your mouse pointer on that North sheet, press down on the mouse, hold the
02:22Control key down and when you are holding down the Control key on the keyboard,
02:25you will notice there is a little plus sign attached to the mouse pointer.
02:28Now when you drag it, and you see I just have this upside down triangle right
02:32between the North and the Sheet2, always let go over mouse first before letting
02:36go of the keyboard, and now we have duplicated it. And it calls it North2
02:40because you can't have two sheets of the same exact name in the same workbook.
02:44So double-click that and let's call that South and press Enter and because we
02:50have duplicated it, we now have four sheets in the workbook.
02:53Now if you don't like that, Ctrl+ drag, there is another way to do it.
02:56Let's go back to the North tab, right- click, from the pop-up menu choose Move or Copy
03:02and now over here you can choose Create a Copy, and you can choose which
03:06sheet you are going to put it before, and I will just cancel that.
03:08Now you might want to create a new blank worksheet and you can simply click this
03:14little button over here and that inserts a new worksheet.
03:18You could also press Shift+F11 and that also inserts a new worksheet.
03:22Whichever way you like.
03:23So let's say I want to delete this worksheet and you see this worksheet doesn't
03:26have anything on it. I will put my mouse pointer on the tab again, get that
03:30arrow, right-click, and choose Delete and it's gone. But when I click the South
03:36worksheet, there is stuff on here.
03:38When I right-click and choose Delete, it gives me a warning. "Hey, there might be
03:42stuff in there. Do you want to delete it or not?"
03:44So I am going to click Cancel, because I want to keep this sheet.
03:46Let's say you have a worksheet and you want to create a brand new workbook out of it.
03:51I will stay on the South sheet here, right-click, go back into Move or
03:55Copy, choose Create Copy, but this time instead of moving it within this
03:59workbook, click that dropdown, choose New Book and make sure you are
04:04creating a copy, click OK and now you see you have a new workbook here and
04:10it has that one worksheet on it.
04:12Well, where did the other sheet go?
04:14Well, there is a few ways that we can switch from one sheet to another.
04:18Simply go to the View tab and over here Switch Windows and we can switch
04:23from one to the other or, something that will work in all programs, as well as
04:27Excel, press Ctrl+F6.
04:29Well let's say we want to group these blank worksheets. So let's select
04:35these three worksheets.
04:36Click this first blank worksheet, hold down the Control key, click this one,
04:40hold down the Control key, and click this one. Now you have all three selected
04:44and if you take a look at the title bar up here, it says Group and that's how
04:48you know there is more than one worksheet selected.
04:52Now what happens if we click a worksheet tab that is not part of this group?
04:56I will click the South worksheet. You noticed that these sheets are no longer
04:59selected and if you look up here at the Title bar, it doesn't say Group.
05:03So there are no more multiple worksheets selected.
05:06Well, what's the whole point of selecting multiple worksheets?
05:09Well, the point is that when you have multiple worksheets selected, you can work
05:13on them as though they're one.
05:14It's kind of like slipping carbon paper in between those sheets.
05:18Here is one use for that.
05:20Click the North sheet and Ctrl+Click the South sheet and over here where it
05:25says Sales, click that and let's change that.
05:27Let's say this is Sales to Supermarkets and press Enter.
05:34Now when you click the South sheet, it also says Sales to Supermarkets, but the
05:40other sheets they don't show that because they were not part of the group.
05:43They were not selected when we typed that Sales to Supermarkets.
05:48Here is another way of selecting multiple worksheets. If I want to select these
05:51three blank worksheets, rather than Ctrl+clicking each one, you can click the
05:55first one and then Shift+click the last one, so that's the first one through the
06:00last one and again we see there is the group selected.
06:03Now let's deselect them again.
06:05Click either the North or South sheet.
06:08Let's say you wanted to select all of the worksheets in this workbook all at once.
06:12All you have to do is you have to put your mouse pointer on any of the tabs,
06:16click the Right mouse button and from the pop up menu choose Select All Sheets.
06:20Now all of them are selected.
06:23You might be wondering, okay, if they are all selected how can I deselect
06:26them because there is no sheet here that's not part of the group.
06:29And the answer is click any other sheet and that group you can see up here is
06:35automatically removed.
06:37So let's use this technique to delete these three blank worksheets.
06:40Click the first blank worksheet, hold the Shift key, and Shift+click that third
06:45worksheet, right-click and choose Delete, and they are gone.
06:50It doesn't give us any warning because there is no data on there.
06:54If we want to delete the South worksheet where we do have data, right-click,
06:58choose Delete, and it gives us this warning that "hey there might be data in here,
07:02are you sure you want to delete it?"
07:04Let's choose Cancel because we might want to use this to put in data for the South region.
07:09Well other than typing text on multiple sheets, you might wonder, well this is
07:14all very interesting but what's the practical use for this?
07:17Well, we are going to cover that in the movie about calculating across worksheets.
Collapse this transcript
Calculating formulas across worksheets
00:00This workbook has data in four different worksheets and you can see down on
00:05the bottom, we have worksheets for different regions of the company, North,
00:08South, East and West.
00:10We can see up here it tells us also what region we're in and let's just click on them.
00:14So click on the South region and click on the East region and click on the West
00:20region and you see each of these are almost identical. The only thing that's
00:25different is the data. The columns are the same, the rows are the same,
00:30everything is the same. And this is important because when you do a workbook that
00:35has multiple sheets of the same type of data. It makes it a lot easier on you to
00:41make sure that they are consistent.
00:42By the way, the shortcut to move from one worksheet to another, you could
00:47press Ctrl+Page Down to get to the next worksheet and Ctrl+Page Up to go to
00:52the previous worksheet.
00:53Well let's do something useful here. You see over here in Cell A13 it's says Bar soap.
00:58That really should say Bar soap four pieces, but we don't want to type that in
01:03separately in each of these for worksheets.
01:05So make sure the North sheet is selected and Shift+click the West sheet to
01:11select them all. But there's also another ways to do it.
01:13Click any of these tabs to deselect. The other way to select all the worksheets
01:18is right-click any of the worksheets and choose Select All Sheets.
01:22Now in A13 double-click after the word soap, so you have the cursor, type a
01:27space, and I'll type four pieces.
01:29You could abbreviate that if you want. And press Enter.
01:32Well I did that in the North sheet. Click the other sheets and you see in the
01:36South, the East and the West, it's now all changed to Bar soap four pieces.
01:41Well, what we also want to do here is we want to get a summary of all four
01:46regions in this first half of the year.
01:49Well the easiest way to do it is to take one of these existing worksheets and
01:53duplicate it use as a summary and all we have to do then is remove the data.
01:57So let's take the West sheet and hold the Control key down and with the mouse,
02:02drag the tab, make sure your mouse pointer is on the tab for the West sheet,
02:06drag it to the right.
02:07Now you need to make sure that there is a little plus sign attached to mouse
02:10pointer and this little down arrow is to the right of the West sheet.
02:14Always let go of the mouse before letting go of the keyboard. And it now tells us
02:19West2 because you can't have two worksheets of the same name.
02:23Now I'm just going to delete this for second. I will just right-click that West2
02:27and Delete and choose Delete.
02:29If you really don't like Ctrl+ dragging, although I think that's the easiest way,
02:33there is another way.
02:34You can right-click that sheet, choose Move or Copy, choose here Create a Copy,
02:40and choose Move to End and click OK.
02:43Now you see why I like Ctrl+dragging.
02:45It's just a lot easier.
02:46Well, we want this to be a summary of the four regions.
02:49So double-click where it says West2 and let's type Summary and press Enter and
02:55over here in A2, double-click where it says West Region, select that and call
03:01it Summary, and Enter.
03:05Now we want to add the four regions here so we need to get rid of the data.
03:10So let's select on the first cell of data and select down here.
03:14So you want to make sure to select all of the cells that have monthly data.
03:19We are going to delete this data.
03:20So you want to make sure not to select the Total column because we have formulas
03:24in there we want to keep. You don't want to select the Total row because we have
03:28formulas there we also want to keep. Just select the monthly data and press
03:33Delete and when you do that of course these are all zeros, so your Total column
03:37and Total row are showing zero.
03:38Now I am going to show you two ways of adding this: kind of a manual
03:41cherry-pick way and then a more automatic way using the Sum function.
03:45So click in the very first cell here, January for Cooking Oil in Cell B5.
03:51So let's say equals because we are going to do basic addition.
03:54So click the North tab, click that same cell and type a plus. Click the South tab,
04:00click that same cell, type a plus. Click the East tab, click that same cell,
04:05type a plus. Click the West tab, choose the same cell, don't type a plus because
04:10we are done, and take a look at the formula.
04:12This tells us North! and that means the North tab.
04:16So the North tab B5 plus the South tab B5 plus the East tab B5 plus the West tab
04:22B5, so no need for a plus and now press Enter and now we have the summary.
04:27Well, we don't have to do this for all of the other cells here. We can Auto Fill.
04:31So make sure you have that 18,000 selected, put your mouse pointer on that
04:36Auto Fill dot in the lower right corner of the cell, make sure your mouse pointer
04:39is at crosshair, and double-click to fill down to the bottom and now all of these
04:45cells are selected. They share one common Auto Fill dot.
04:49Put your mouse pointer on that, make sure your mouse pointer is a cross hair and
04:52drag across to the right, and now we have them all filled out.
04:55Well that's great and it's fast but there is a faster way of doing it.
04:59So once again let's select all of the data, press Delete, make sure you did not
05:04delete anything in the Total column and you did not delete anything to Total row,
05:07and click back up there in January Cooking Oil, Cell B5.
05:11Here's how we do it with the Sum function and with selecting multiple sheets.
05:15Type equals Sum and open up the parenthesis. So we are going to use Sum function.
05:20Now click the North tab, don't click any cells yet, hold the Shift key down,
05:24and click the West tab.
05:25So we click the North Tab and we Shift+clicked the West tab, so we have them all selected.
05:30Notice up here in the Formula bar this is telling us North:West, North through West,
05:34and choose the first number there and just press Enter or Ctrl+Enter and boom,
05:40it puts them all in.
05:42So we have the Sum of the North tab through the West tab of Cell B5 and now we
05:48can double-click the Auto Fill handle here and take this Auto handle here and
05:53drag across and we have that filled out.
05:55So the Auto Filling is the same but you see how much faster and easier it is by
05:59using the Sum function than cherry picking it.
06:02I don't know about you, but I think this is pretty cool.
Collapse this transcript
8. Collaborating with Others
Importing and exporting data in Excel
00:00Although you can copy and paste data in and out of Excel like you can in almost
00:04every other program, Excel lets you take this a step further using its Import
00:08and Export features.
00:10These features are useful when you have to share data with programs that don't
00:13work directly with Excel. Maybe they don't recognize Excel's file format.
00:18So let's say we get info from a database and we need to bring that data
00:22into this worksheet.
00:23We are going to start by importing here into Cell A5.
00:26But before we do that I want you to see what the raw data will look like.
00:31I have this file open here in Windows Notepad and you can see the file here as
00:35importdata.txt and the first line here, these are our column headers, Last Name,
00:41and First Name and so forth and you can look here and you can see we have last
00:46names, first names, department and so on.
00:50Now we have two of these files in the Chapter 8 folder of the Exercise Files.
00:54import data.txt, a text file, and also import data.csv.
00:59CSV stands for Comma Separated Values and you can see here these are also
01:03separated with commas.
01:05The reason we have two of them is sometimes you'll get data with a TXT
01:09extension, sometimes you will get data with a CSV extension, and Excel can treat
01:14them slightly differently when you're importing and you'll see that.
01:18So I am just going to close this here.
01:20So here we are back in Excel and let's go to the Data tab and over here in the
01:24left side of the Data tab under the Get External Data group choose From Text.
01:31So here in the Chapter 8 folder the Exercise Files, we can see both the CSV and the TXT.
01:36Let's double-click the TXT file and this immediately brings you into the Import
01:41Wizard and you can see there are three steps to the Wizard.
01:44Now to begin with, you have two choices.
01:45Is it Delimited or Fixed Width?
01:47Well, we are just talking about Delimited because there are commas
01:49separating the values.
01:50Fixed Width would use if your original source data was broken up into columns
01:55that are the exact same width and separated the exact same amount. That's kind
01:59of weird and that's not what this is anyway, so make sure Delimited is selected and click Next.
02:05Now this asks us here well, what is the Delimiter? Well as we are talking
02:08about, it's commas.
02:10So we want to deselect anything else. Tab is selected here by default, so I am
02:13going to deselect that and select commas and as soon as I select Comma,
02:17you notice that this is all now separated.
02:20So click Next and this allows us to treat the column specially, if we want.
02:25So for example if there is a column that maybe we don't want import, we can
02:29choose not import it, or if it's a date, we can treat it specially as a date and
02:33reformat it as we go. We don't need to do any of that.
02:36So click Finish and again this confirms where do we want to start importing the data.
02:41So click OK and boom, it just puts it in.
02:44Now notice something here. The first row repeats what we already had in the
02:50worksheet, which means you could delete it. But it's a good thing that it's in
02:53here because this way we can measure that oh yes, the last name is indeed the
02:58last name, the hours is indeed hours, location is location.
03:01So we can just remove this Row 5. Put your mouse pointer on the header for Row 5,
03:06so you have that backward pointing arrow, right-click and choose Delete.
03:12Now it's gone. Now we have a nice Excel sheet.
03:14So let's go save this under a new name. You could either press the F12 key on
03:18your keyboard to Save As or go to the File tab and Save As and let's call this
03:25payroll with the imported data and Save.
03:30Well, I want to show you a second method of bringing in data.
03:34So let's just close this. You could press Ctrl+F4 to close or click the Close
03:38button over here and we are going to open the text file. So you can press Ctrl+O
03:42to open or click the File tab and choose Open.
03:46This is showing us Excel files.
03:48It's not shown us those text file.
03:49So we want to click this dropdown list over here and we want to choose Text
03:54Files and this shows us both the CSV and the TXT. Double-click the TXT and this
04:00launches us back into the Wizard.
04:01So again make sure it's Delimited. click Next. If any other Delimiters are
04:06selected, you want to deselect and make sure a comma is the only one selected.
04:10Click Next, click Finish and there it is and it opens right up and we have our
04:16column headers and then we can format it.
04:18We can just close it without saving again. Press Ctrl+F4 to close or click here
04:22at the Close button here.
04:23Now let's open the CSV.
04:24Here is where CSV and the TXT are a little different.
04:27Again I will just press Ctrl+O to open.
04:30Here's the CSV. Remember, we're looking at Text Files not Excel files. Double-click CSV.
04:36And boom, it just opens. No wizard, no nothing.
04:38It just brings it right up onto the screen.
04:41Okay, that's all for importing. Let's talk a little bit about exporting.
04:45Exporting a worksheet takes even fewer steps.
04:47we don't have to go through a wizard.
04:50Let's open up the file in Chapter 8 of the Exercise Files. You will probably need
04:54to click this drop-down over here and choose All Excel Files.
04:59Let's open up the file called Export this.
05:03So here we have a pretty typical Excel sheet but we have to modify this here
05:08la ittle bit because when we export to CSV, we need to make sure we're only
05:12exporting alphanumeric values.
05:14Numbers are okay, text is okay, any formatting will be wiped out because text
05:19files including CSV files don't support formatting. But we have these graphics here.
05:24We have this Sales thing here that's formatted that's above our column
05:29headers. That's no good.
05:30We also have here some functions. We have these calculations and we can't
05:34export that either.
05:35So we need to remove them. The problem is this is a worksheet we really might need to use.
05:40So there is kind of a danger if you start deleting parts of this worksheet.
05:44It's very easy to save over it and then you have lost some of your data.
05:47So my advice is whatever you're doing a process like this, save it under a
05:51temporary file name so that way you don't have to worry about messing it up.
05:55So you could either press F12 to Save As or go to the File menu and Save As.
06:00And I always save these kind of temporary files as delete. That is I literally
06:05call them delete, so that I know I could go back later and delete them without any worries.
06:09Save. So let's click this graphic and Delete, click on the edge of this
06:15graphic and Delete.
06:17And let's delete the first three rows. Put your mouse pointer on the header of
06:20where I want, drag down so you have the headers of Rows 1, 2, 3 selected, and
06:25right-click the mouse and choose Delete and the same for the Total row.
06:29Right-click the header here of the Total row and press Delete.
06:33One more thing we have to do is these numbers here have column headers but we
06:38don't have a column header here for our description. We really should put that in.
06:42So you could simply click up there and type products. And don't worry that
06:48it doesn't have the same formatting as the other columns, because the formatting
06:51is going to go away anyway.
06:53So now we are going to go and export this and if you want to save over it, press
06:58Ctrl+S or press or click the Save button. That's okay.
07:00So here is how we can go and make this a CSV file.
07:04Go to the File tab, go do down here to Save & Send, click over here, Change File
07:10Type and now you can go over here and choose CSV and Save As.
07:14Now that's a lot of work.
07:15Let me show you an easier way to do that.
07:17I am just going to escape out, so we are back here at the Data tab.
07:19All you have to do is a regular old Save As.
07:22So you could go to the File tab and Save As or press the F12 key to Save As and
07:26then just click over here where it says File Type and now we can choose Comma
07:30Separated Values. I think it's a lot easier way to do it and let's just call
07:35this product data and click Save.
07:40Now this is giving us a warning that there are parts of this file that are not
07:43compatible with CSV because we have all that formatting. That's perfectly fine.
07:48Click Yes and there we are now. We can see this product data.csv.
07:52So these are features that you might want to use whenever you need to share data
07:56between Excel and another program that normally don't talk to each other.
Collapse this transcript
Setting workbook permissions
00:00When you create a file for others to use, you might want to make sure that they
00:04can modify only certain cells like for a data entry, but not other cells like
00:09formulas and descriptive text.
00:11You also might want to require a password for even opening or modifying the workbook.
00:15These are some of the more common permission features.
00:18Let's have a look at what we can do.
00:19Click the File tab and go into the Info section if you're not there already, and
00:24here under Permissions, this is where it all happens.
00:27So, click Protect Workbook.
00:29And we can mark a workbook as final. We'll do that a little bit later.
00:33You can encrypt with a password so that only those who have the password
00:36can open the document.
00:38You can protect the current sheet, which means what we were just talking about
00:42that you can edit only parts of the sheet and not other parts of the sheet.
00:45Protecting Workbook Structure means that you can add, change or otherwise modify
00:50the worksheets of the workbook.
00:52And adding a digital signature is way of verifying that you the author of the
00:57workbook, you really are who you say. We'll talk about all of these in a
01:01little bit more detail.
01:02But for now let's go to the Home tab.
01:04And here we have a typical worksheet and let's say we want the users of this
01:09worksheet only to be able to edit the data but not to modify any of the
01:13totals here in Column F, or any of the totals here in Row 14, or anything
01:18else that's not input data.
01:20So, let's select all of the data input cells just for these four fictitious
01:25supermarkets and just for our products here.
01:27Now, when a user comes in to edit a worksheet that's been protected,
01:31it's generally a good idea to mark off which areas are available to edit.
01:36It just makes it easier to use.
01:37So, in the Home tab let's click the Color Fill button here and let's just give it
01:41maybe a light green shade.
01:44Now we need to go and unlock these cells. That might sound a little backwards,
01:48but there is a reason for that.
01:50Click the Format button and you see Lock Cell is highlighted. Click it to
01:55unlock those cells.
01:56Now, if you click any of these cells, you'll see that they're unlocked.
02:00But click any cell anywhere else in the worksheet.
02:02I'll just scroll down to some random cell here. I44.
02:05And when I go to the Format tab, I can see that the cell is locked.
02:09I'll just press Ctrl+Home to get back to the beginning.
02:12You might wonder, gee, it's kind of backwards.
02:14Well, the reason is Excel figures that you'll probably have more cells that are
02:19locked than cells that are unlocked. Whether cells are locked or unlocked,
02:24it doesn't really matter until you protect the worksheet.
02:27So, now we need to protect the worksheet.
02:29So, click the Format button and down over here choose Protect Sheet.
02:33And we have all these options that we can allow users to do or not to do.
02:39Well, we probably don't want users to select locked cells, because what will
02:42happen is they will select it and say gee,
02:45why can't I modify the cell?
02:46So, let's deselect that.
02:47Selecting unlocked cells, well, if you don't do that, the user won't be able to edit anything.
02:52And while we're at it, let's apply a password.
02:54Now, give it a password of password, click OK, confirm, and I'll just press Enter.
03:01Okay, so now the user can edit the data, but they can't edit anything else.
03:07Now, you'll notice the worksheet doesn't look any different, except the Ribbon bar.
03:11Most of these options are grayed out, because those are certain things you can't
03:15do while the worksheet is protected.
03:17But this is only Sheet1. Let's take a look at Sheet2.
03:20Sheet2, the whole Ribbon bar is available.
03:22Sheet3, the Ribbon bar is available.
03:24So, it's only Sheet1 that we have protected.
03:27Now that we have the worksheet protected, let's go and password protect
03:31the entire workbook.
03:33So, go up to the File tab. Back in the Info section.
03:36First, you see here under Permissions, it tells us that a worksheet is
03:41protected and we can see that it is Sheet1.
03:43So, click the Protect Workbook button, and you see Protect Current Sheet is
03:48also highlighted there.
03:49Let's choose here Encrypt with Password.
03:51And this isn't the most secure thing in the world. I'll call it Password.
03:54Again, in real life you should probably choose more secure passwords. And I'll confirm.
03:58Now, it tells us that a password is required to open the workbook and the other
04:05information that we saw previously.
04:07So, let's go back to the Home tab and let's save it.
04:09So, you can just press Ctrl+S, or I click the Save button, close it, press
04:13Ctrl+F4, click the Close button. Let's reopen it.
04:17Go to the File tab. Choose Permissions. Okay, now we have to enter the
04:22password which is password.
04:23So, now we have the password to open the workbook, so we can see the workbook
04:29but we would still need the password if we wanted to unlock it.
04:33Well, let's just type in some random data.
04:35It doesn't matter really what we type in.
04:38Okay, let's say this is all the data that we have.
04:42We can mark this worksheet as final.
04:44So, go back to the File tab and under the Info section here again, click
04:49Protect Workbook and we'll mark it as Final.
04:52And OK it to confirm. It gives us some additional information. Click OK.
04:58It tells us also that it's marked as Final.
05:00Well, what that means is when we go to the Home tab or when we open it, we have
05:04this yellow banner telling us that it's marked as final.
05:07But it's not a security feature because you could always click this Edit Anyway
05:11button and make it not final and go back to editing it.
05:14So, this is really just a suggestion.
05:16One more thing I want to talk about is let's go back to the File tab and under
05:20the Info section and Protect Workbook, we have adding a digital signature.
05:25What that's all about is when you create a workbook and send it to someone,
05:28especially if it's in a secure environment, maybe there is financial
05:32information, the recipient might want to make sure that the person they are
05:36getting it from really is who they claim to be, or that they are not getting any
05:39sort of spam or phishing message.
05:42Well, there are two ways to add a digital signature.
05:45One way is you can purchase what is called a security certificate, and you could
05:49get a security certificate from a trust authority.
05:52And there are any number of trust authorities.
05:54VeriSign, and Comodo, and Microsoft are some of the more common ones.
05:59And it's kind of like getting a document notarized.
06:01You probably need to send them a fax of your driver's license for example.
06:05The other way to create a digital signature is what's called self certification.
06:09And when you install Microsoft Office on your computer, you can install the
06:13program that runs self certification.
06:16Well, it's free and it's easier to do, but of course it's less secure and you
06:21can call yourself Mickey Mouse and it won't know any better.
06:24So, setting workbook permissions is a sort of thing that if you need it,
06:28you probably knew it already before watching this video.
06:30And you can get some more detailed information directly from these trust
06:33authorities we just talked about.
06:35Or you might work in a company that uses these features in which case the IT
06:39people can probably help you a little bit more and tell you how they are using it.
Collapse this transcript
Inserting and editing comments
00:00Comments in Excel is a great feature that a lot of people don't know about.
00:05Comments are like yellow sticky notes where you can jot down info for yourself,
00:09or maybe for anyone else who uses the workbook, which is why you'll find
00:12Comments under the Review tab.
00:14And what's really cool is that comments don't have to look like yellow stickies.
00:18Now, in this worksheet here I have some comments and they're all ready. I might
00:21need to scroll down.
00:23You see we have these three cells with red triangles in the upper-right corner.
00:26That's how you know that there are comments in those cells.
00:29Just roll your mouse pointer over it.
00:31So, here's a regular comment. It looks like a yellow sticky. Here's a comment.
00:35It doesn't look anything like the yellow sticky.
00:37And here's a comment that actually has an image in it.
00:40And I'm going to show you how to do all three of those.
00:42So, maybe let's scroll up.
00:44First, let's talk about inserting a plain old comment.
00:47Click any cell here, and go up to the Review tab, and to insert a comment you
00:52can click the New Comment button.
00:54And it should show up with your name or whatever is the name that's registered
00:58on this computer, and maybe let's type in
01:00"This is a new product."
01:03And to deselect, just click anywhere else on the sheet. It goes away.
01:06Now, you have that red triangle, roll your mouse over, and the comment shows up.
01:11Another way to insert a comment is click a cell, and you can press Shift+F2. And just type in
01:18"This is another comment," and again, just click off it.
01:22What if you want to edit a comment that already exists?
01:25Well, click the cell itself, and now instead of New Comment, the button is
01:29changed to Edit Comment.
01:31And maybe we don't want this comment, so to delete it just click on the border
01:35of the comment and press Delete.
01:37Another way to edit, click a cell that has a comment and the same shortcut,
01:42Shift+F2, and enter the comment, and again, click off it to deselect.
01:50Well, what if you have a lot of comments on the sheet and you want to read them
01:53in order one after another?
01:55I'll just click up at the top of the sheet here and still under the Comments
01:58section you see we have Previous and Next buttons. Click Next.
02:02And every time you click Next, it opens up the comment and click Previous, it
02:06opens the previous comment, and I'll just click off here.
02:09So, how do we make these comments not look like yellow stickies?
02:14Well, click the cell that has a comment you just edited.
02:18And we could either Edit Comment or Shift+F2.
02:21And right-click the shaded border, and from the pop-up menu choose Format Comment.
02:27And we're in the Format Comment dialog box, and you want to be in the Colors and Lines tab.
02:31And under Fill, first of all let's choose a different color.
02:34Maybe I'll choose something that's a little bit more olive-y and maybe
02:38I want a dark green.
02:40And let's change the font and I'll choose a font that's maybe a little different.
02:47I'll choose Franklin Gothic, and I wanted that to be white so I'll be able to
02:52read it, and I'll make it bold.
02:55Click OK and there you go.
02:57Deselect if you want, roll your mouse pointer over it, and it's a plain text
03:00comment, but it doesn't look like a yellow sticky.
03:03So, let's change the shape.
03:04Well, before we change the shape, we have to do a little bit of customization to Excel.
03:10Now, later on in the course I'll be talking about how to customize the Ribbon
03:13bar here and how to customize the Quick Access toolbar, but we have to do a
03:17little preview here just so that we can change the shape of the comment.
03:21Here's what you do.
03:22Click the Insert tab, click Shapes, choose any shape.
03:26It doesn't matter what shape it is, because we're going to delete it in a few seconds.
03:29Click Shape, somewhere over here out of the way just draw the shape, and see
03:34this puts you in the Drawing tools section and the Format tab.
03:37And over here on the left you see it says Edit Shape? Click that, choose Change
03:42Shape, and choose any other shape, and the shape that you drew will now change.
03:48Well, what we want to do is go back to that Edit Shape, roll over the Change
03:52Shape, and click your right mouse button on it, and choose Add to Quick Access
03:57Toolbar, and that gets added up here.
03:59So, now anytime you want to change shape, you can click that and choose another
04:04shape and it changes.
04:05So, we don't need this anymore.
04:07The only reason we put this shape on the worksheet was so that we can customize
04:10the Quick Access toolbar.
04:11So just select it and delete it.
04:13Well, here's where we use it with the comment.
04:15Click that cell that has a comment you want to change, go to the Review tab, and
04:19Edit Comment or press Shift+F2 if you like.
04:22Click the border of the comment, and now up here on the Quick Access toolbar
04:27click Change Shape, and now choose any other shape and there you go.
04:31And you can stretch it out if you need to.
04:33Click off it and now when you roll back on it, now there is your new shape.
04:37Okay, that's great. What about inserting an image?
04:39Click on this Multi-Pack 1 up here and again insert a comment. Press Shift+F2
04:44or click New Comment.
04:46And let's just delete any text that you have in there.
04:49Put your mouse pointer on the border of the comment, right-click, choose Format
04:54Comment from the pop-up,
04:55and in the Format Comment dialog box, let's again go over here to Colors and Lines.
05:00And under Fill, click the drop-down.
05:02Down over here choose Fill Effects.
05:05And in the Fill Effects dialog box click the Picture tab and then over here
05:09click Select Picture.
05:11Now, in the Chapter 8 folder of the Exercise Files, we have this Multi-Pack 1.
05:15Double-click it and it inserts it. Click OK.
05:19And if you don't want a line to show up, you can just click that and choose No Line.
05:24Click OK and there you go. Click off it.
05:27Roll your mouse over it and you can get a better look.
05:29We could change the shape of that also.
05:31Click back on the cell and either Shift+F2 or click Edit Comment.
05:35Now, you don't see it, but don't worry, it hasn't been removed.
05:38Click the border of the comment, you can see the picture again, click the Change
05:42Shape button, and let's choose another shape. Stretch it if you need to, click
05:47off it, and when you roll back on, there is the picture and the new shape.
05:51Okay, that's great. Just a few other features of comments I want to tell you about.
05:54What if you want to print comments out?
05:56Well, first of all up here in the Comments section you see where it says Show
06:00All Comments, click that, and click off it. So that's where you can display
06:03or hide comments.
06:04Well, click turn it on, go to your File tab and Print, or you could press
06:09Ctrl+P. And you see the comments aren't there. You have to go and make them print out.
06:14Down on the bottom, click the Page Setup link.
06:17In the Page Setup dialog box, click the Sheet tab and over here where it says
06:21Comments are None, click that and choose As displayed on sheet. Click OK and
06:27they will print just the way they are in the sheet.
06:29Another option, if you click on Page Setup you may have noticed in the Sheet tab,
06:33if you don't want them to display on the sheet itself you could choose
06:36At end of sheet and your comments will simply print out on the separate page.
06:41But even if you don't share your Excel sheets with other people, I'm sure you'll
06:45still find comments handy to use just for yourself.
Collapse this transcript
Sharing a workbook
00:00In a previous movie, we looked at some of the options for protecting workbooks
00:04and setting permissions.
00:05In this movie, we'll make use of that in sharing a workbook with other users.
00:10What if you're working on this workbook and you want other people to be able to
00:14modify the same workbook at the same time?
00:17Well, click the Review tab and choose Share Workbook.
00:22And this dialog box that comes up says do you want to allow more than one user
00:26to share at the same time?
00:27And it should show that you have it open.
00:30Click the checkbox. Click OK.
00:32It's going to save the workbook. Click OK to confirm.
00:35Now, not much has changed, except you can see up here that the workbook is
00:39now in Shared Mode.
00:40So, if I were using this right now with other people in the company modifying
00:45this workbook, I might see some of the information changing.
00:50Well, when we're done with that, when we want to take control back for ourselves
00:53and disallow other people from making changes, just click on this Share Workbook again,
00:58deselect that, click OK, click Yes to confirm.
01:02And now we have exclusive use.
01:05So, when you share a workbook the way we did in this movie, any changes that you
01:09or your coworkers make just simply get done and that's it.
01:13But what if you want to be able to approve changes before they are committed,
01:16kind of like moderating the workbook?
01:18Then you'll want to watch the movie about tracking changes, because that is
01:22exactly what we're going to do.
Collapse this transcript
Tracking changes
00:00If you watched the movie on sharing a workbook, you saw how you could allow
00:04other people to make changes to a workbook that you currently have open and that's great.
00:09But what if you want to be able to see those changes before you allow them, sort
00:13of like moderating the workbook and saying yes, I will except this change but
00:17I won't accept that change.
00:19Well, that's what the Track Changes feature is all about.
00:21So let's go to the Review tab over here and in the upper right corner in the
00:26Ribbon bar, choose Protect and Share. And we want to enable this box to share
00:32with track changes, and I am not going to put in a password, but something you should know.
00:36If you do put in a password, then the people you're sharing it with will not be
00:40able to turn the Track Changes feature off.
00:42Well, maybe that's what you want.
00:44I am simply going to click OK and then click OK to confirm.
00:49Now, you can see up here in the title bar it says that we are in Shared Mode.
00:53Well, I'll change a few numbers and I'll take this 2950, let's make it 3000
00:58and let's take that 4502, let's make that 4500, and maybe I'll take this 1099, I'll make it 1200.
01:06Okay. So now we have three changes.
01:09Now, what we want to do is we want to see what changes have been made.
01:13Now, keep in mind the changes we are going to see, they could have been made by
01:16anyone who had this workbook opened not just by you.
01:19Not only that, but these changes could have been made at any time, not just when
01:23you're sitting there with the file open.
01:25So what we want to do here is we are still on the Review tab. Click Track
01:29Changes and than choose Highlight Changes.
01:31Let's move this out of the way, and we can see changes since the last time we
01:35saved and everyone, not just you, and we want to highlight the changes on the screen.
01:40Click OK and now it highlights those cells that were changed.
01:46And you can roll over them and kind of like comments, it will tell you
01:50exactly what was changed.
01:52Now, here's the part about whether we want to accept the changes or not.
01:56So maybe click somewhere on the top of the worksheet and click Track Changes and
02:01we want to accept or reject changes.
02:04I am just going to save the workbook, click OK, click OK, and now we can find
02:09here's the first change.
02:10We have got the marching ants. We can Accept or Reject.
02:13I'll click Accept and it goes to the next one.
02:16Now, if you have a lot of them and you decide that well, you want to take all
02:20of the changes, you can accept all of them, or if you don't like any of the
02:24changes you can Rreject all of them.
02:25Or except to the last one. I am going to reject this one and now I am going to
02:29accept all the rest of them.
02:30Now, once we are done, we want to take control of the workbook back to
02:35ourselves, and not let other people edit the workbook.
02:38So let's go over here and Unprotect shared workbook.
02:42And now we want to unshare the workbook, so click Share Workbook, deselect that,
02:48click OK, click Yes to confirm, and now it's no longer shared.
02:53So this type of sharing I showed you is made for sharing in real time on your
02:57local internal network.
03:00If you have a lot of people who need access to this workbook, that's something
03:03you might want to consider.
Collapse this transcript
Saving files in shared locations
00:00Sometimes you need to share your work with people who aren't on your network.
00:04Maybe they work for different companies, or maybe you want to share documents
00:07with the general public.
00:09Well, other times you might want to make documents available for download only
00:13to people who have the right password or maybe you just want to store documents
00:17online for yourself, kind of like a virtual USB memory stick.
00:21Well, I want to show you two solutions for this.
00:23One is a free service from Microsoft called Sky Drive.
00:27And I signed up in advance at www.skydrive.com.
00:33The other solution I'll show you is Microsoft SharePoint.
00:36SharePoint is a commercial software products sold by Microsoft.
00:40You could install your own SharePoint server or you could run service on a
00:44commercial SharePoint server.
00:46I'll show you Sky Drive first.
00:48Now both Sky Drive and SharePoint make use of the web version of Excel and
00:54the web version of Excel doesn't support everything that the desktop version of Excel supports.
00:59In fact, you will notice that the title of this report isn't a nice graphic.
01:03It simply a text with a background, and that's because the web-enabled version
01:07of Excel doesn't support that type of graphic.
01:10So let's go to Sky Drive.
01:13Go to the File tab so you get into Backstage view and then down here to Save & Send.
01:18And let's click on Save to Web, and because I have already signed up with Sky Drive
01:23and Excel remembers my credentials, it shows me that I have some folders up here.
01:29Now this shows me that I have two folders.
01:31One, they call My Documents, and the other is Public.
01:34Now this folder called My Documents is actually up on the Sky Drive server.
01:39It's just the same name.
01:41Microsoft gave the same name to two different things.
01:43You will notice that there's a lock there.
01:45That means that for anybody to get into this My Documents folder, they need
01:49to have my password.
01:51If I save anything in the Public folder, then anyone who happens to stumble on
01:55the address can find it.
01:56So I am going to leave My Documents selected,and click Save As, and now my Save
02:02As dialog box comes up and I am going to call this current inventory, just so
02:08we distinguish it from the file called saving shared locations, which we have up
02:13there, and I'll click Save.
02:16And when it is saving, you might notice down here on the bottom it says that
02:19it's uploading to the server.
02:20Okay, now that it's on the server, we want to take a look at it on the server.
02:24So let's close it in Excel.
02:26You can press Ctrl+F4 or click the lower Close button here. Okay.
02:31Now I have already logged into my Sky Drive account and you can see there is My Documents.
02:35I also have another private folder called Favorites.
02:38I have a public folder called Shared Favorites and there is that Public
02:41folder we saw before.
02:43So I am going to click on My Documents and there is that current inventory
02:48file that we just saved.
02:49So let's take a look.
02:51Click it, and they have this big graphic and on the right you have some
02:54information about the file itself and you can type a comment there if you want.
02:58Well, let's take a look.
02:59Click this big graphic and it opens the file in your browser.
03:03Now I happen to be using Microsoft Internet Explorer, but you can use
03:08other browsers too.
03:09Now I can click anywhere that I want and I can scroll and I can see what's in
03:14here and you notice that all three worksheets of this workbook are available.
03:19But I can't actually edit anything until I click Edit in Browser, and now
03:25this is open in the web version of Excel and you can see there's a version of the Ribbon bar.
03:30Now this Ribbon bar in this web version of Excel is not completely exactly like
03:35the desktop version of Excel.
03:37It gives you about 10% of what the desktop version of Excel gives you.
03:41It's certainly not a substitute, but there are a few things we can do.
03:44For example, see Columns B and C? We have numbers of barrels of olive on order.
03:49Let's say we want to total those up.
03:50Let me scroll down to the bottom here, and I will click down there in A29 and I
03:56will type Total, hit the Tab key.
03:59Now I want to put in the Sum function, but if you look at the Ribbon bar, you'll
04:02see that there is no Auto Sum tool.
04:05So I have to sort of do this manually.
04:07So I will type in =sum, and you'll see Excel will offer to fill it.
04:12Now normally with the Sum function, I would go to the top and I would scroll down.
04:16The problem is this doesn't scroll very well automatically.
04:20So I'm going to do something that I normally don't do in a worksheet and that
04:24is I am going to actually type in the cell references.
04:26So I am going to say =sum(b5:b27), press Tab to get to the next column, and
04:35I will do the same thing with Column C. I will say =sum(c5:c27), and here I want
04:42the same rows, just the different column, so that's going to be c5:c27.
04:49Okay.
04:51Now let's scroll back up.
04:53Now, if I wanted to, I can take this document and immediately open Excel by
04:57clicking that button over here.
04:58But instead, I am going to click back on My Documents so we are back to where
05:02we were before, so that now I will go into the desktop version of Excel to open
05:07it up and we will see that changes there.
05:09So here I am in Excel.
05:11I will go to the File tab, to Recent Files, and here is that current inventory.
05:17And you notice that very long file name.
05:19That's because it's up on the server, not on my local computer.
05:23So when I click it and open it up, here it is and let's scroll down and there
05:28are the totals that I created.
05:29Now one more thing. I am going to close this.
05:31Again, I will press Ctrl+F4 or click that Close button.
05:36Go back in Sky Drive and again let's click that and let's say somebody else is
05:42logged in and they want to get it.
05:44They can simply click the Download button, and then download it on their computer.
05:48I am not going to do that right now.
05:50I will do that in SharePoint.
05:51So I will just cancel that and let's go back to Excel. Okay.
05:56Now let's take a look at SharePoint.
05:57Let's go back to the File tab and I don't want to open it up here.
06:00I am going to open it from the original shared location.
06:05So this is the original one.
06:06Now let's go and put it into SharePoint.
06:08So again, I will go back to the File tab, go back to Save & Send, and this time
06:13I will save to SharePoint.
06:14Now you might wonder,
06:15when would I use Sky Drive and when would I use SharePoint?
06:18Well, SharePoint is much, much more robust.
06:21SharePoint is meant to create an intranet.
06:24Let's say you have a client that you work with and you are one company,
06:28your client is another company.
06:29For the most part, you want to keep your network separate but there are projects
06:32that you collaborate on and you do need to have this interface.
06:36And SharePoint will give you sort of like a whole corporate website with
06:41discussions, file libraries, calendars, to-do lists, tasks, all that kind of
06:46stuff that you can both collaborate on.
06:48Sky Drive doesn't come anywhere near that.
06:50Sky Drive is mostly just a repository for files.
06:53So let's go into SharePoint, and already I have logged in.
06:57I have already created my account.
06:58I have logged in before, so it has it up there for me.
07:01So all I have to do is click Save As. Okay.
07:06So my Save As dialog box comes up and you can see it's kind of branded here with
07:10SharePoint and I will call this current inventory and I will call it SP for
07:18SharePoint, just so we know that this is a different file than what we have
07:21saved in Sky Drive, and click Save. And you see down here it's uploaded to the server.
07:29Okay and same thing.
07:30I am going to close this file, press Ctrl +F4 on your keyboard, or I'll click the
07:34Close button here, and now I have logged into SharePoint.
07:37I will just press the F5 key on my keyboard to refresh, or you can click the
07:41Refresh button in the browser and here is current inventory SP.
07:46So click it and it opens up.
07:49It looks a heck of a lot like Sky Drive, doesn't it?
07:51Well, let's edit in the browser like we did with the Sky Drive.
07:54Click here on Edit in Browser and now we have the same sort of Ribbon bar just
08:00like we had in Sky Drive.
08:02So I will make another small change.
08:03Over here in Column D, we have cost per barrel.
08:06I will take an average of that.
08:08So I will go down here.
08:09I will go to A29, and I will say Average cost per barrel, and I will type in =average.
08:23Open it up, and also just like in Sky Drive, there is no Auto Sum or
08:28Auto Average feature on the Ribbon bar.
08:30So I have to type it in manually. And also scrolling here doesn't really work all that great.
08:34So again, I am just going to type in the cell references.
08:36which is something I general would not do in Excel.
08:38So I will say the average of =average(d5:d27), okay.
08:46So now I have my average cost.
08:48I will scroll back up to the top.
08:50Now up here I have the breadcrumbs.
08:51So I will click on that TwoTreesOliveOil Company. I come back.
08:55Now this is SharePoint 2010. It has some pretty nice features.
08:58Instead of clicking the file name here, I am going to click the icon itself.
09:02And when I do that, now I have the SharePoint Ribbon bar.
09:06So the SharePoint Ribbon bar is different from the Excel web access Ribbon bar.
09:12One of the nice features that Excel and SharePoint work together with is the
09:16CheckIn and CheckOut feature.
09:18So I can click here CheckOut, check the file out, and there you can see there is
09:23that little icon there.
09:24So if anyone comes in here while I have this file checked out, they won't be
09:28able to it because I am doing it.
09:29So that way you can make sure that two people aren't making changes to the same
09:33file at the same time.
09:35Now let's go and open the file up in Excel.
09:38So I will go back to Excel, go back to the File tab, and here is this very long
09:43path to the SharePoint portal where this file is.
09:46So I will click it and it opens up, scroll down, and there is the average that I put in.
09:51Again, I am going to close it.
09:52It's Ctrl+F4 or click the X. let's go back to Internet Explorer.
09:57Now I am ready to check it back in. Click the icon and I'll click CheckIn.
10:01And now this asks me if I want to make a comment.
10:04And I will just say something like "Examined file contents."
10:09So anybody else who opens this up after me, they will know what I did when I
10:12had the file checked out.
10:13And I will click OK.
10:16Now we don't have time to go through all of SharePoint, because this is an Excel class,
10:20but if you do want to learn about SharePoint in depth, take a look at
10:24some of the SharePoint Essential Training here on Lynda.com.
10:27It's very, very good.
Collapse this transcript
9. Exploring Excel's Database Features
Splitting cell data into multiple cells
00:00When you have data that need to be separated like splitting first names from
00:05last names, it's hard to think of a better tool for the job than Excel.
00:09And even if I'm using other software for project, I'll still bring that type of
00:13data into Excel temporarily just to use its ability to separate data.
00:18Well, if you take a look here in Column A we have people's names and we have
00:21first name and last name in the same column and what we want to do is we want to
00:26split so we have first name in one column and last name in another column.
00:30Now before we do that we have to insert a new column and I'll show you why in a second.
00:35Put your mouse pointer on the header for Column B, so you have a down pointing arrow.
00:39Click the right mouse button and Insert, so now we have a new column.
00:44The reason we're doing this is that we need space to put the last name.
00:48So we are going to wind up with the first names in Column A and the last names
00:52in Column B. If we hadn't inserted this additional column, we would've wiped out
00:56what is in the Department column next to it.
00:59So let's select the names.
01:00Now, you can click and drag down if you want. What I find this easier is to
01:04press Ctrl+Shift and then the Down Arrow key so that select all the way down to the bottom.
01:11Let's scroll up.
01:12Leave it selected, go to the Data tab and in the Data tab, roughly in the middle
01:17here choose Text to Columns.
01:19This brings us into the Text to Columns Wizard and we want to make sure that our
01:24data here we have Delimited selected, not Fixed width.
01:28Click Next and our data are separated with spaces.
01:32We don't have any commas or tabs or anything and you can see it already gives us a good preview.
01:37Click Next and if we wanted to exclude a field or if we wanted to change
01:42anything like one of these columns are supposed to be a date, we can do that,
01:46but we don't have to do any of that right now.
01:48So just click Finish and there we go.
01:51If you want, you can take that name, auto fill it. So maybe we can change that to
01:56First Name and just press Tab, Last Name, and there we go.
02:02You can click through here, click though here and you can see up in the Formula
02:05bar that this is all separated.
02:08So if you watch the movie on importing data, this exercise may have seem kind of
02:13familiar because Excel uses the same wizard, whether you're importing data from
02:17scratch or if you're working on data that you already have in your worksheet.
Collapse this transcript
Joining data from multiple cells
00:00In this worksheet, we have people's names split into two columns and you can
00:04see here in Column A we have people's last names and in Column B we have
00:08people's first names.
00:09What we want to do is we want to combine first name and last name in the same cell.
00:13Well, we need some space to do that.
00:15So before anything else, let's go and insert a new column.
00:18So put your mouse pointer here on the header of Column C, so your mouse
00:22pointer is that down arrow.
00:23Click the right mouse button and from the pop-up menu, choose Insert.
00:27You can just click over here on what's now C5, so we have some room.
00:30Now there is sort of two ways of doing it.
00:33We can do it with the formula. We could also use a function, and there is a
00:36function called Concatenate.
00:37I think the formula is a little easier to use so we'll do that.
00:40Also, I am going to do the exercise wrong first, and the reason is that you
00:45have to be careful with spaces, and I want to show you what happens if you are
00:48not careful with spaces.
00:50So this is a simple formula. So it's starting in C5, just type your equals sign,
00:54and we are going to say equals First Name.
00:57Now keep in mind, we are not adding numbers, we are simply stitching things together.
01:02We are combining things so you don't want to use a plus.
01:04You want to use an ampersand.
01:06You can find the & on your keyboard if you press Shift and the 7 in the top of your keyboard.
01:10So I am going to type B5& and then A5.
01:14So I am going to say take the content of Cell B5 and append the content of cell A5.
01:20And I'll just press Ctrl+Enter, so I can enter and stay in the same cell.
01:24We don't have the space.
01:25There is a problem.
01:26Now put your mouse pointer on that Auto Fill dot, see your mouse pointer
01:30becomes a crosshair.
01:31When you get the crosshair, double- click and it fills into the bottom.
01:35Well, we certainly appended first names and last names all right, but we don't
01:39have any spaces there.
01:40So now we are going to delete it and we'll do it correctly.
01:43So you can simply drag down to the bottom or again hold down Ctrl+Shift and
01:48press the Down Arrow key.
01:49So we have the whole column selected and just press Delete.
01:52Let's go back up to C5 and now we'll do it with correct spacing.
01:56So type your equals sign, again click the Last Name, type an ampersand.
02:01Now we need to put in a space and to put in a space, what we do is type a double
02:06quotation mark, literally type the space, hit the Spacebar, and close the double
02:10quote, and now another ampersand and now click the last name.
02:14So we are saying take the content of B5 and append a blank space and then
02:19append the content of A5.
02:21Again, hold Ctrl and press Enter so now we have first name, space, last name, put
02:27your mouse pointer on that dot in the lower-right corner.
02:28When your mouse pointer becomes a crosshair, double click, and now we have
02:33them all filled in.
02:34That's great but we are not quite done yet, because we have our last name and
02:39first name in these columns and now we have the full name here.
02:42We don't really need Column A and Column B. But we can't just delete the columns
02:46because if you look up here in the Formula Editing bar, these are formulas and
02:50if we remove the columns, right now these formulas are going to give us error.
02:54So what we have to do is we have to convert these formulas to the actual text
02:58that's displayed and we do that with copy and paste.
03:01So once again, let's select this row,. Again, you can drag down or press
03:05Ctrl+Shift and the Down Arrow key.
03:07I am just copying to the Clipboard.
03:09I'll press Ctrl+C and up here in the Home tab click Paste.
03:14And from the pop-up menu, under Paste Values, choose this first item here and
03:19you can press these to get rid of the marching ants.
03:22Now when you click in any of these names, you can see up here in the Formula
03:25Editing bar these are actual names.
03:28Now we can safely remove Column A and B. But first let's take that Payroll and
03:33just put your mouse pointer on the edge of the border so your mouse pointer is a
03:36four-headed arrow. Drag over here.
03:39Maybe you take this logo and drag over for safekeeping.
03:42Put your mouse pointer in the header of Column A so you get that down pointing arrow.
03:46Click and drag over to Column B. Make sure your mouse pointer is still that down arrow.
03:50Click the right mouse button and Delete and we have deleted those columns,
03:55and now just deselect.
03:56Now you could adjust. Move the logo.
03:59You can click on the graphic here and resize the graphic so it looks good.
04:04Now, when you click any of those names, you can see up here in the Formula bar
04:09these are regular names.
04:11So if that's something you ever need to do, you see it's really not that bad.
04:15You just got to be careful of a couple of gotchas.
Collapse this transcript
Basic and multi-field sorting
00:01Another great database type feature that Excel has is the ability to sort data.
00:06Now sorting could be a matter of just one or two clicks or you could make it a
00:09little more interactive if you need.
00:11You can filter your data as you are sorting as well, which is pretty cool.
00:15Now if you aren't unfamiliar with database technology, Excel regards each row as
00:20like a record in a database and each column is like a field.
00:24So we have a Last Name field, First Name field, and so on.
00:28So let's say we want to sort by Department.
00:31Click anywhere in the Department column.
00:33Now do not select the whole column and you don't have to select the whole area.
00:38Just clicking anywhere in the Department column is okay.
00:41Now, we want to be on the Home tab and over here on the right click Sort &
00:46Filter, and just choose Sort A to Z and boom, it's done.
00:50Let's say we want to sort by State.
00:52Click anywhere in the State column, click Sort & Filter, and maybe let's sort
00:56from Z to A. And now we have Vermont at the top and California at the bottom.
01:02We can do this by number also.
01:04Maybe you want to sort by many hours people put in.
01:07So click in the Hours, Sort & Filter, and Smallest to Largest or Largest to Smallest.
01:14Now, that's all great but what if you want to sort by multiple keys?
01:19So, for example, what if we want to sort first by state? Then once we have all
01:23the states grouped, we want to sort by Department, and then within the group
01:27departments, we want to sort by Last Name.
01:30So that's when we use what's called a custom sort.
01:33So clicking anywhere in this data area is okay.
01:37Go back to Sort & Filter and then over here choose Custom Sort.
01:42So over here under Column where it says Sort By, click that down arrow and
01:46choose State. And we are going to sort on values from, let's make that from A to Z.
01:52Now we want to add a key.
01:55So click Add Level and where it says Then by we'll sort by Department, also A to Z.
02:03Add another level and Then by Last Name.
02:07Unlike earlier versions of Excel, you aren't limited to only three keys.
02:10You can have as many levels as you want.
02:13And also up here we see that our data have headers and that's kind of important
02:17to leave that selected.
02:19Click OK and now it's sorted.
02:22Let's take a look at what's happening here.
02:23Let me select California.
02:27So C is the earliest one in the alphabet in our range here. So California is on top.
02:32Now, within California, we have Executive and Finance and so on and Sales comes
02:39latest in the alphabet.
02:40Now, within Sales, let me select these two.
02:43We have Coules coming before Richardson.
02:46So that's how we have first the State, then the Department, then the Last Name.
02:51Now we can filter also.
02:53So click anywhere in the data area, go back to Sort & Filter, and from the menu
02:59here,choose Filter.
03:01Now when you do that, you get these little drop-downs coming up here and if you
03:05want to adjust the columns, you can do that.
03:08So let's say we wanted to see only those people who are in the Sales department.
03:13So over here, next to Department, click that down arrow and you might need to
03:18scroll down and you can see all of the departments here.
03:21First thing is let's hide all of them.
03:23So where it says Select All, just click that so they are all deselected, scroll down,
03:27click in Sales, click OK and now we are filtered.
03:33So we see just the Sales department regardless of what state and regardless of
03:37what last name they got.
03:39Now, we could filter this even further. Maybe we want to see only those people
03:43who are in Sales who get a window seat.
03:46So let's go over here to Seat Preference and let's open that up.
03:50Click the down arrow and I am just going to deselect Window.
03:53So Aisle is selected, click OK, and now it's sorted even further.
03:58You notice that next to Seat Preference, there is a little filter icon and next
04:01to Department, there is a little filter icon.
04:04Now while we are filtered, we can still sort by Last Name.
04:08So click somewhere in the Last Name field, go up to Sort & Filter, and let's
04:12Sort A to Z. So now we are sorted from Fitzpatrick down to Zarish.
04:17Well, we can clear some of these filters, but we don't have to clear in the same order.
04:21Remember we first filter by Department, then by Seat Preference.
04:25We don't have to do it in reverse order.
04:27Let's un-filter this and two ways to do it.
04:30You can simply click Select All or you could click Clear Filter from Department.
04:34So now we see every state, every department, as long as the Seat Preference is an Aisle seat.
04:41Well, what if we want to see only those people who have a particular wage?
04:45Maybe everybody who has a wage greater than or equal to 1000.
04:50Well, first, let's clear this filter over here, so I am going to clear that filter.
04:54So here is the Wage column, click that down arrow and let's choose number of filters.
04:59And let's choose Greater Than Or Equal To and where it says Greater than or equal to,
05:03type in 1000, click OK, and now regardless of what seat they have or state or
05:08anything else, we see only those people where the wage is greater than 1000.
05:13We can continue filtering this, we can continue sorting this. Maybe everybody
05:17who has wage greater than a thousand and is in New Jersey. We can click that
05:21down arrow. Deselect Select All.
05:24By the way, you can stretch this out if you want.
05:27If that's easier. Click New Jersey and OK and there you go.
05:31So you could keep doing this over and over.
05:34But just one more thing.
05:35Let's say this is what we want.
05:37We have everybody in New Jersey whose wage is greater than 1000 and we want to
05:41take this data and put it on another worksheet.
05:44Well, click in here and we want to select all and the easiest way is press Ctrl+A,
05:50because all begins with the letter A.
05:52Now if you don't want that Payroll in there, you can simply just select like this.
05:56It's your choice.
05:58So copy to the Clipboard. I'll just press Ctrl+C. And you see the marching ants
06:02have some multiple borders?
06:04That's because it's picking up just what you want and you can see over here the
06:08row headers are skipping numbers.
06:09Now let's go to Sheet 2, first cell is fine, press Ctrl+V to paste, and there you go.
06:14Well, the columns are a little too narrow.
06:16So if you click this little box in the upper-left corner and then just
06:20stretch out the columns.
06:21Now everything is out and this is not dynamically linked.
06:25This is simply copied and pasted and is exactly what you are looking for.
Collapse this transcript
Using tables to sort and filter data
00:00Excel has a feature called tables, which adds some nice features to sorting and filtering.
00:06And if you watched the movie on basic sorting and multiple fields sorting,
00:10I think you'll like some of the features that tables add.
00:13Well, to convert this area to a table, we go to the Insert tab.
00:17Now, this is kind of a misnomer, because we're going to click Table under the
00:21Insert tab, but we're not actually inserting anything.
00:24We're simply taking this whole range of data and converting it to a table.
00:28So click anywhere in here.
00:30It doesn't matter which cell you select.
00:32Click Table and you see Excel correctly guesses what area we have for our table.
00:38And you want to make sure this box is selected because we do have headers there. And click OK.
00:42Now, scroll up a bit and you see Excel puts in these little down arrows so we
00:47can sort and filter.
00:49As long as you have one of these cells selected, you'll be in the Table Tools
00:52section in the Design tab.
00:55So let's do some sorting and filtering before anything.
00:58Maybe let's go over here to State and click State and we can sort from A to Z or
01:04maybe we want to see just one state.
01:06I'll just select that and choose Connecticut and OK.
01:09So this is all kind of basic sorting and filtering.
01:12Let's remove that filter.
01:13Just click that filter and clear that off.
01:16One of the really nice features of tables is that we can remove duplicates.
01:21Well, let's sort Last Name.
01:23Click that dropdown under Last Name and let's sort from A to Z. And as you look
01:28through here, you see we have duplicates.
01:30Here we have two records that are the same.
01:32Here we have two records that are the same, and here we have two records that are the same.
01:37When I say the same, I mean exactly the same.
01:39These are duplicates. First Name, Last Name, all the way across.
01:41Now, if you go down, you see here we have three records that at first glance,
01:47they look like they're exactly the same, but take a look at the Rate.
01:51The rate is incremented for each one.
01:53And that's probably just a data entry mistake.
01:56So what we want to do is we want to find some way that we can remove all
02:01of these duplicates.
02:02So here's what we do.
02:04Let's go up to Remove Duplicates and you see we have all of these fields selected.
02:11We can just scroll down and see all of these fields are selected, and it again
02:15correctly guesses that we have headers.
02:17What that means is that Excel is going to compare the values of all of these
02:21fields when it's comparing to see which are duplicates and which are not. So just click OK.
02:27And it tells us 5 duplicates found, 37 unique remain.
02:30But keep that 5 in mind here. So click OK.
02:33Now, when you go through you see those duplicates that we had before are not
02:38there until you come down to this one, to Rampulla.
02:42And now you see that because the Rate is different for each one, Excel did not
02:48regard these as duplicate records. Well, let's undo.
02:51You can just click your Undo button on top.
02:53I'll just press Ctrl+Z. And when you do that, we have our duplicates back here.
02:57We can see duplicates are there.
02:59Again, duplicates are there again and so on.
03:01So again just click somewhere in this table area and now again choose Remove
03:05Duplicates, but in here click Unselect All.
03:09And now, let's select just Last Name, First Name, and Department.
03:13What that means is Excel will compare only these three fields and ignore
03:17the other fields when deciding which records are duplicates and which are not duplicates.
03:22Click OK.
03:23Now, remember before it told us 5 duplicates found. Here it told us 7. Click OK.
03:29And there you see those duplicates are gone and when you go down to Rampulla,
03:32you see those duplicates are gone.
03:34And it shows just one of them.
03:36Now, we can also format this.
03:39Again, make sure you are somewhere in this data area and go over here to Table Styles.
03:43And because we have our Two Trees Olive Oil Company, you might want to give this
03:48more of a greenish look here or maybe something even like this.
03:52That gives us a nice olive feel.
03:56Well, if you don't like the fact that we have these little drop-downs here,
04:00we can turn these back to a regular range.
04:03So again, we're staying in the Design tab of Table tools.
04:06Click over here Convert to Range. Confirm Yes that we do.
04:10And now you notice the formatting remains, but it's a regular range.
04:15We don't have all of those dropdown lists.
04:17Now, this feature is useful in other ways also.
04:20For example, if you manage an email list and you have lots and lots of email
04:23addresses, this is a handy way of removing duplicate email addresses so you
04:28don't send people the same piece of mail more than once.
Collapse this transcript
Inserting automatic subtotals
00:01Earlier in this course, we talked about several methods of adding numbers.
00:05And we also talked about different ways of sorting and filtering.
00:08In this movie, we'll put these concepts together to let Excel create subtotals
00:12for us automatically.
00:14If you take a look at this worksheet, we have some pretty typical information.
00:18Last Name, First Name, Department and so on.
00:20Well, let's just do some basic sorting first.
00:23Click somewhere in the Last Name field.
00:25And on the Home tab, let's go over here to Sort & Filter, and we can sort A to Z.
00:29Maybe let's go to State.
00:32Click Sort & Filter and we can sort Z to A.
00:35Well, what we want to do is we want to give some information to department heads.
00:39And you see we have all these different departments.
00:42We want the department heads to know, for example, what's the total number
00:45of hours that their people incurred, and maybe we want to tell them what's the average rate.
00:51So first thing, you want to do is go into the Department field and let's Sort &
00:56Filter A to Z. So we have all the executives, all the finance people, all the
01:00graphics people and so on.
01:02So now go up to the Data tab and over on the right click Subtotal.
01:07So what we want to do is find where is this changing.
01:11Well, we're changing this by department.
01:13So over here where it says At each change in, click that drop-down and choose Department.
01:18Well, what function do we want?
01:19Well, we want to add up the hours.
01:21So click on this drop-down and choose Sum.
01:25And what do we want to sum?
01:26Well, we want to sum the hours.
01:28So over here if you have anything selected, just deselect. Scroll if you need to.
01:32Now, we want to make sure that Hours is the only field that has a checkmark. And that's it.
01:37Click OK.
01:39Now, we can see total hours for executive, total hours for finance, total hours
01:44for graphics and so on.
01:46You might also notice over here, we have the outlining as in effect.
01:50And if you watch the movie on grouping and outlining, this will look familiar.
01:54And here's the deal.
01:56If you click this number 1 on top, this shows you just the grand total.
02:00Click the number 2 and this shows you grand total plus the component totals.
02:05If you click the number 3, this shows you all the detail, plus-- I'm just going to
02:10click the number 2 here for a second.
02:11You could expand or collapse any of the components.
02:15So maybe you want to see just the Finance department detail and the aggregate
02:19detail for all the other.
02:20So it's very flexible.
02:21Well, let's click on this number 3 so we can see all the detail again.
02:25And now what we want to do is we want to display what is the average rate
02:29for each department.
02:31So make sure you click somewhere in this data area. Any cell weill do.
02:34Go back to Subtotal.
02:36And again, we're going to keep At each change in Department.
02:39But this time, we want to use the Average function.
02:43Deselect hours because we're not going to average the hours. We want to average the rate.
02:47And you see over here where it says Replace current subtotals?
02:49We want to deselect that, because we want to leave the totals here.
02:53So we're going to have Total and Average, Total and Average for each department. Then click OK.
02:59So now we have the average executive rate and the total executive hours.
03:04And we have the average finance rate and the total finance hours for each one.
03:11And now you see over here in the outline we have four levels.
03:14So if you click 4, we have all of the detail.
03:17Click the level 3, we have the aggregate, average and total for each department.
03:22Click the 2 we have just the totals but Grand Average and Grand Total.
03:26And if you click the number 1, we have the Grand Average and Grand Total for
03:30the entire worksheet.
03:32And I'll just click this number 4 again.
03:34So if you ever need to find subtotals or averages or counts for a large amount
03:39of data, don't do them manually.
03:41Use the Subtotal feature in the Data tab.
03:44I think you'll find it pretty handy.
Collapse this transcript
Creating lookup tables
00:00When you have a lot of data in a worksheet, there's a great set of functions
00:03called Lookups that can help you extract specific data. Let's take a look.
00:09We have two or sort of three related functions.
00:11One function is called VLOOKUP.
00:12V stands for vertical and you do that if you have your data arranged down by column.
00:19There's also an HLOOKUP, horizontal just in case your data are arranged across rows.
00:23Those are really the only two functions you want to deal with.
00:26They're sort of a third simply called Lookup and it'll work but it's legacy.
00:31It's from older versions of Excel.
00:32You really don't want to use it but I just have it here because you might
00:35encounter it once or twice.
00:36Well, let's talk about the syntax of the Lookup function.
00:39Now whether its HLOOKUP or VLOOKUP, the syntax works the same and vertical
00:43is much more common.
00:44So we say =VLOOKUP and then you have a Lookup value, which is the way you're
00:49going to find the data, the key to your data area.
00:52Your data range is where you have all your data, and then you can figure
00:56out which column you want to get your data from and the true/false we will
00:59talk about in a minute.
01:01So let's take a look.
01:02The Lookup value is something typical like a product code, maybe a Social
01:06Security Number, maybe an employee ID.
01:09It's really whatever is the key that will find your record, and if you're
01:12familiar with databases, this is what you would call a primary key.
01:16It's some unique identifier that tells us which row we want.
01:19Now, the data range is the entire data area, all of the columns that
01:25you're looking for.
01:26Now, once you have that in place, you want to find which column you are going to match.
01:30And columns are done by number.
01:32So let's say you have Column A through F where you have all your data.
01:37Well Column A is column 1, Column F is column 6 and so on.
01:41But it doesn't have to be this way.
01:42So for example, if you start with your data in Column B, Column B is column 1
01:47and than Column C is column 2 and so on.
01:50So try not to get confused there.
01:53Now, the true/false will let you decide, do you want an exact match for the data
01:57you're looking for or is that an approximate match?
02:00And if you put in true and you literally put the word true,
02:03true means an approximate match.
02:05And if you put literally the word false, Excel will give you an exact match.
02:10So let's go ahead and put this to work.
02:13In this worksheet, here we have product codes, descriptions, some monthly sales,
02:18and we have some totals.
02:19What we want to do is we want a plug- in the product code here, let Excel read
02:23down the column and once it finds the product code we wanted, it'll read across
02:28and find okay here's the description and here's the total.
02:31So we are going to put our Lookup function in B4.
02:35But before we do that, we want to identify this data area.
02:39Click anywhere inside that data area and let's select all the data.
02:43The easiest way to select all the data just press Ctrl+A. We are going to
02:47give this a range name.
02:49Now, you don't have to give it a range name, but believe me it's a lot easier to deal with.
02:53So click up here in the name box and when that becomes highlighted just type the
02:57word data and press Enter.
03:00And if you're not familiar with range names, that means you can click somewhere
03:03here, have nothing selected, click this down arrow on the name box, and when you
03:06select data that selects all your data.
03:09You don't have to name it data.
03:10You can call it anything you want.
03:12So let's click in cell B4 and will say =VLOOKUP.
03:16Now as you are typing it, by the time you type =vlo, Excel recognizes that
03:21you want the VLOOKUP.
03:22So you can continue typing it or if you want to save yourself the trouble of
03:25typing, just press the Tab key and it will fill in for you.
03:28So the first thing we want is our Lookup value.
03:31So that's this code we were talking about that's going to look down here.
03:34So right now that's an A4 and that's the first argument. Type a comma.
03:38The second argument is the entire table that we were dealing with.
03:42Now, since we know that it's called data, you can type it in and you see Excel
03:47even confirms it for you.
03:48But let's say you're doing several months down the road and forgot what you called it.
03:51I am just going to Backspace over here.
03:53If you don't remember what your range name is called, you could press the F3 key
03:57and in the Paste Name dialog box it'll tell you, then you could just
04:00double-click. Whichever way you like is fine. So type a comma.
04:03Now, we need to decide which column number.
04:06Well, we want to put in the description, and when you look at the data area, you
04:10see the Description is Column 2.
04:12So literally type in a 2.
04:14Now, that's that argument so type in at comma and here's the true/false.
04:18We want an exact match so you can either type the word false or if it comes up
04:22here you can just double- click it, and that's it.
04:25In the parenthesis, I'll just press Ctrl+ Enter so I just stay there, and then we can see.
04:29Code C0123 is Cooking oil standard 8 ounces.
04:33But before we go and play with this, let's put in another one just for practice.
04:37Click here in Cell C4 and again type = VLOOKUP and again I'll just press Tab and
04:43Excel does the typing for me.
04:44Now, the Lookup value is the same as the last one we did.
04:47It's still going to be here so Excel can find it down there.
04:50So A4 is the same. Type a comma.
04:53The table array is the same.
04:54I'll just type in the word data.
04:56We talked about that before. Type in it a comma.
04:59Now, the index number, well we are going to count it 1-2-3-4-5-6.
05:04So Total is the sixth column.
05:06So in your formula, literally type in a 6 and a comma, and just like before we
05:11want an exact match.
05:12So instead of clicking it this time, I literally type in the word false.
05:16Close the parentheses, press Ctrl+ Enter, and now we can see C0123.
05:20Our product code is C0123.
05:23Cooking oil standard eight ounces. The total is 6153.
05:27Well, now let's change the product code in Cell A4 and see what happens.
05:31I'll type then S123 and this is not case-sensitive. Press Ctrl+Enter.
05:36Now S123 it finds, seasoning is extra origin 12 ounces, and the total is 60,192.
05:42We are going to click in here, and we will type SH124, and enter in SH124 is 6
05:51ounce shampoo and the total is 70,098.
05:55So if you have a lot of data and you want a quick way of querying this little
05:59database, it's hard to be the Lookup functions.
Collapse this transcript
10. Analyzing Data
Using auditing to diagram
00:00After a while, you might find you're spending a lot of your time in Excel not
00:04creating worksheets but auditing sheets that have already been created.
00:08So I want to show you tools that Excel has to help you along.
00:11Well, if you take a look at this worksheet here, we have a couple of groups of
00:14products and we have a total for the first group and average for the first
00:19group, you might need to scroll down, and we have total and average for the
00:23second group and then grand total and grand average for this.
00:26And what's happening is you have your data, one cell is feeding into another one.
00:31So like January is feeding into here and feeding it to there and then it's also
00:35feeding down here on the bottom.
00:37This is what auditing is going to help us with.
00:39So, let's go into the Formulas tab and you see over here we have the
00:43Formula Auditing section.
00:45There's some terminology that you need to know first is precedents and
00:49dependents and a dependent is a formula that a cell feeds into and a precedent
00:56is data that feeds into a formula.
00:58So it kind of depends on what your perspective is.
01:01Are you data or are you formula?
01:03Well, right now we're in some other data. It doesn't matter.
01:06Click in any of these data cells, doesn't matter, and then click Trace Dependents.
01:11You see Excel draws in these arrows.
01:13So what this is telling us is that February for Begentier olives feeds into
01:19total, feeds into an average, and feeds into this average over here and to this
01:24total here, but nothing down here.
01:29Well, let's choose another one.
01:30Let's choose maybe total for Cantera and click Trace Dependents and this is a
01:38formula where this is data but this formula is feeding into this cell and it's
01:44feeding into this cell and it's feeding into this cell.
01:46Well, let's look at the opposite perspective.
01:49Click Allora here and then choose Trace Precedents and this is telling us
01:54okay, this average formula is getting its data from up here.
01:58Let's maybe click for average sale of Cantera olives and Trace Precedents and it
02:04tells us, okay, January, February, March is feeding in there.
02:08Now when you see all of these arrows and boxes, these actually print.
02:12Let's take a look at Print Preview.
02:13You could either press Ctrl+P on your keyboard or go to the File tab and down to
02:17Print and you see these will all print out.
02:20Just press the Escape key so we're back here.
02:23Now, if this is too much of the mess, you could just click over here, Remove
02:27Arrows, and they're gone.
02:28Now let's go down here to the bottom where we have our grand total and grand
02:32average and I'll click, let's say, over here at the end of Column F and Trace Precedents.
02:38Now you can see that this is taking from this specific cell and that specific cell
02:43and feeding in here or maybe the grand total for both groups and Trace
02:48Precedents and again it's taking from this specific cell and this specific cell
02:53and feeding in here.
02:55So again, let's remove the arrows.
02:57Well, using the Trace Precedents and Trace Dependents commands on the Ribbon bar
03:02are great for drawing in these arrows and boxes, but sometimes you might
03:06just want to select the cells, that is you might want to select the dependents or the precedents.
03:11Now, what's in the Formula Auditing selection here on the Ribbon bar does no
03:15tell you is that there are direct precedents and direct dependents and there are
03:21indirect precedents and indirect dependents.
03:24The only way to select them is with a couple of whacky keyboard shortcuts. Let me show you.
03:28Let's click maybe over here in March.
03:30Now if you press Ctrl+Right Square Bracket and the Right Square Bracket is
03:35little to the left of the letter P on your keyboard.
03:38You notice what it does.
03:39It selects the cells that that cell is feeding directly into.
03:45No circles, arrows, and as soon as you click, that selection goes away.
03:48Now those were direct dependents.
03:50If we want to select direct and indirect dependents, press Ctrl+Shift+Right
03:56Square Bracket and now it selects the cells that that cell feeds into and the
04:01cells that those cells feed into, kind of like the grandchildren of that cell.
04:05Well, let's go down over here, maybe to the Group 2 total, and if we want to find
04:11the direct precedents, press Ctrl+Left Square Bracket and it selects this entire
04:17column of numbers because those are the numbers that feed into that formula.
04:21Well, let's click on Cell F25 and if we want to find the direct and indirect
04:26precedents, press Ctrl+Shift+Left Square Bracket and it finds the children and
04:33grandchildren that are feeding into it. And I'm sorry, there really is no other
04:37way than with those four whacky shortcuts.
04:40Now, what we could also do with Auditing is we can find errors and there's some
04:45error checking that it will help us out.
04:47Well, let's say we don't have any data yet for Group 2 and let's just select
04:51from B16 all the way down to E21.
04:55Now we haven't selected any of the formulas. We're just selecting the data. And just delete.
04:59Now when you delete, you notice you get some divide by zero errors over here,
05:03you get some divide by zero errors over there, and the reason is that it's trying
05:07to create an average.
05:08Well, you can't really create an average of the bunch of zeroes because what happens?
05:12You divide it by zero and Excel recognizes that as an error.
05:15Well, these really aren't errors in our thinking or errors in logic but
05:19according to Excel, it's an error.
05:21So when you look at this, you might say well gee, why do I have errors in my
05:24worksheet? Where are they coming from?
05:25Well, click any of these divide by zero errors and over here click Error
05:31Checking > Trace Error and it tells you, oh, okay, the errors coming from these
05:35three cells. And then you might decide oh right, because there's no data, or
05:39click one of these divide by zero errors and go to Error Checking > Trace Error
05:44and it also tells you, oh okay, because there's no data there, we have that error.
05:48And the same thing, we could remove all of the errors and that's gone.
05:52So if you have a worksheet that has a lot of data, maybe a lot of complexity to it,
05:57you might want to look into the Formula Auditing features because they can
06:00really help you make sense of things.
Collapse this transcript
Using evaluation in Excel
00:00Formulas can get very complicated very quickly.
00:03So when you start getting answers that don't look right or maybe you just want
00:07to double check to see that they are right, the Evaluation feature can help you
00:11examine a formula piece by piece.
00:14If you watched the movie on the IF function, this is a similar worksheet and
00:18here's what this worksheet is saying.
00:20It's looking at the sales of all of these people and it's evaluating, it's
00:24creating an average.
00:26If you take a look at any of the commission rates and look at this complicated
00:29formula, what the formula is doing is it's saying if the amount that the person's
00:34sold is at least average or average or above average, then let's give them a
00:40higher commission rate.
00:41If not, if they're selling below the average then we give them a lower
00:45commission rate and we're finding the commission rates over here in Column F.
00:49So let's go and evaluate this formula piece by piece to make some sense out of it.
00:53So go up to the Formulas tab and over here under Formula Auditing, click
00:58Evaluate Formula and this comes up, let me just move it out of the way.
01:02So this is showing us the formula as it exists now and you notice this B5 is
01:07underlined because that's what it's starting at.
01:10So click Evaluate and it says IF B5. What is B5?
01:14Well, B5 is 509.7 and there is 509.7.
01:18Well, is this greater than or equal to this average?
01:21Now this average is underlined so when you click Evaluate, it's going to
01:24evaluate that underline.
01:25Oh okay, if 509.7 is at least 537 point a bunch of numbers,
01:31that's the average, okay.
01:33Click Evaluate and now it says IF False, meaning that okay now it evaluated the
01:38fact that 509.70 is false, that it's equal to or greater than the average.
01:44Now, the whole thing is underlined, click Evaluate again and it evaluates that
01:49statement to 5% and then we click Close and we're back to where we were.
01:54So by evaluating this formula, we can see exactly why this number is 5%.
Collapse this transcript
Working with Goal Seek
00:00Sometimes you know the result that you want but you are not sure what the data
00:04inputs should be to get you there.
00:06Well, Excel has this great feature called Goal Seek that will let you tell it
00:11what the answer is and it will figure the rest out for you.
00:14It's kind of like that game show where they give you the answer and you have
00:17to guess the question.
00:18Well, by way of an example, our Two Trees Extra Virgin Olive Oil Company,
00:22they need a capital loan for a new equipment, because they want to expand production.
00:26So they are going to borrow some money and we are going to use the Payment
00:29function to help them determine how much they can borrow.
00:33Let's just go to Sheet2 here for a second.
00:36The Payment function has three arguments to it.
00:39The first is the interest rate that you are going to pay.
00:42The second argument is how many periods will you pay that back over.
00:46And the third argument is what is the present value of the loan, which is kind
00:50of a financial way of saying how much money do you want.
00:54So let's go here to Sheet1 and let's just take a look.
00:58Two Trees wants to borrow about $100,000.
01:01They expect that they are going to pay an interest rate of 6% and it will take
01:05about 10 years to pay it off.
01:06What they want to know with that Payment function is every month when they write
01:10that check, how much will that check be?
01:13So let's click here on Cell D8 and we will use the Payment function to figure it out.
01:18So we say =PMT, open up the parentheses, and the first thing as we said is
01:25what is the interest rate, and here we have the interest rate as 6%. Now, you
01:30want to be careful because this isn't 6% per month. This is 6% per year and
01:36the company is going to have to write a check every month, so we have to convert
01:39this 6% yearly to a monthly.
01:42So we simply divide by 12.
01:45So yearly interest rate divided by 12 is our monthly interest rate.
01:49Well, that's our first argument, so type a comma.
01:52The second thing we need to figure out is how many periods?
01:56Now, we can see here in Cell D7, it will be 10 years, but we are not going to
02:00write a check every year. We are going to write a check every month.
02:03So click that 10 years and we multiply by 12.
02:07So type *12, so that's 10 years times 12 months.
02:10So we know that it will be 120 months.
02:12Type a comma, and now the present value.
02:15Well, the present value of the loan, because let's say we are getting the amount
02:19today, we haven't paid anything back, the present value is the initial amount.
02:23It is that $100,000.
02:25Press Ctrl+Enter and now we can see that with these numbers every month
02:31Two Trees Olive Oil will have to write a check of about $1,100.
02:33Now, you might be wondering, hey, that looks like a negative number. Is that what that is?
02:39Well, yes, it is.
02:41It's a negative number because the cash flow is going from Two Trees' bank account out.
02:47So that's why it's a negative number.
02:49Well, if that looks a little weird to you, you can fix that.
02:52Let's double-click here on that $100,000 and we can simply make that a negative
02:58number, and now that payment turns into a positive number.
03:02So we have that negative $100,000 because we are going to pay that back and now we
03:06have a positive number for our monthly payment.
03:08Whichever way you like is fine.
03:09So here's where Goal Seek comes into play.
03:12Let's say Two Trees says well, $1,100. Maybe that's a little too much. We want
03:17to make that an even $1000.
03:19Well, to make that an even $1,000 a month, something has to change.
03:23Either we borrow less money, or we find a bank that will give us a lower
03:27interest rate, or maybe we pay it off over a longer period of time.
03:31So click that $1,100 and now we go up to the Data menu and over here we click
03:38that What-If Analysis and choose Goal Seek.
03:42Let's just move this over here.
03:44So the cell that we are setting it already identifies as D8, because that's
03:48what we have selected, and click over here.
03:50The value that we want is an even 1,000, and just press Tab, and what cell do we want to change?
03:55Well, let's say we will reduce the monthly payment by borrowing less money.
03:59So where it says By changing cell, click that, $100,000, click OK, and it
04:04calculates it and it finds out that at 6% over 10 years, we would have to
04:10borrow $90,073 to have an even $1,000 payment.
04:14Now, there's two things we can do.
04:16If we click OK, it will leave these numbers permanent.
04:20If we click Cancel, it will go back to the original numbers.
04:23Well, let's look at the opposite. Maybe Two Trees is flush. We are selling
04:26olive oil like crazy and maybe the company can afford $1,500 a month.
04:31So again go back to What-If Analysis, go to Goal Seek, and again the cell
04:37that we are going to change is the same as Cell D8 and the value we are going
04:41to set it to is 1,500.
04:42And the cell we are going to change, rather than the amount we are borrowing,
04:47we figure 100,000 is enough, but maybe we could afford a higher interest rate or
04:51maybe we can pay this off over a shorter period of time.
04:55So click that years, click OK, and now it tells us that rather than paying it
05:00over 10 years, we can pay it back over about 6 and 2/3 years, so that we can pay
05:06the higher amount of $1,500 at 6% per year of $100,000 loan.
05:12Click OK and now you see that number is permanent.
05:15So Goal Seek is great when you want to change just one variable at a time, but
05:21there are a few other features you could use in Excel that will let you change
05:24multiple values at a time and that's using the Table feature.
Collapse this transcript
Using data tables in formulas
00:00Two Trees is considering a capital loan so that they can expand production by
00:05buying some capital equipment.
00:07But they want to see a whole bunch of options for how much this loan is going
00:11to cost them depending upon how long it takes them to pay back or maybe how
00:15much money they borrow.
00:16If you watch the movie on Goal Seek, you saw that we were able to substitute
00:20one input, maybe just the interest rate or maybe just the amount that they are borrowing.
00:25Well, using the Data Table feature we can substitute one or possibly two
00:30entire range of inputs.
00:33In this workbook, you want to be in a single variable worksheet.
00:36Let's take a look at what we are doing here.
00:38We have about $100,000 that we are going to borrow.
00:41The company thinks that the interest rate will be about 6% per year.
00:45It's thinking of paying it off over a period of 10 years.
00:49We'll use the Payment function for that.
00:51If you click on the syntax tab, you can see the syntax of the Payment function.
00:55So, we see =PMT.
00:57What's the interest rate to be charged, how long will it take to pay back, and
01:01what's the present value.
01:02Which basically means how much is that check going to be the first day that we
01:06get it from the bank?
01:07What does that loan worth?
01:08So, let's go to the first tab here single variable and what we'll do is we'll
01:12substitute only how many years will it take to pay off.
01:16So, click here in cell D11 and we'll use the Payment function.
01:19So we'll say =PMT, open up the parenthesis. What's the rate?
01:24Well, here it is, 6%.
01:26Keep in mind that's 6% per year.
01:29We are going to pay this loan back every month.
01:31So, we have to take that 6% per year and divide it by 12 to get the
01:35monthly interest rate.
01:36So, type a comma and we'll put in the next argument.
01:39The next argument is how many periods?
01:41Well, it's 10 years, not 10 periods.
01:44So, click that 10 years and we need to multiply by 12.
01:48So, 10 years, the number of periods, will really be 120 months. Type a comma.
01:53What's the present value?
01:54Well, the day we get the check from the bank, the present value is the full $100,000.
01:58Then press Ctrl+Enter, so we enter and stay on that cell.
02:02We can see it's a negative number, because it's cash outflow.
02:06We can see that every month we will write a check of about $1100 to the bank to pay this off.
02:11Well, maybe Two Trees can't afford all that or maybe they are flush and they can
02:15afford to pay back some more.
02:17So, here we can vary how many years it will take to pay back from paying it back
02:22over one year through paying it back over 30 years.
02:25So, let's select all the cells inside this box.
02:29Keep in mind when you do this, this is kind of specific.
02:32You have to put this function in this cell and you have to put these numbers
02:36here kind of in that adjacent column.
02:38So, now we go up to the Data tab, click on What-If Analysis, and choose Data Table.
02:45Now, this Data Table dialog box is not the most intuitive thing in the world.
02:48It's asking Row input cell, Column input cell. Ah, what is that?
02:51Well, there is no row input cell.
02:53So, let's leave that for now.
02:55Click down here in Column input cell.
02:57Well, what is the column?
02:58Well, down here in Column C these are the number of years that we are going to pay back.
03:03What is that substituting?
03:04Well, that's substituting for this number where our Payment function is
03:08getting that figure.
03:10So, click on that 10.
03:11So, that Cell D7 is what's going to be substituted for when we go down this
03:17column and then our payments will appear in this blank column.
03:21So, I click OK to deselect.
03:23Now, we could see that $100,000 at 6% interest.
03:27If we pay it back over one year, every month we'll write a check for about $8,600.
03:31$100,000, 6% interest rate, if it takes us 30 years, every month we'll write a
03:37check for about $600.
03:40And if you want this formatted really to look like dollars, we can just select
03:44these figures, go to the Home tab and click this dollar.
03:48Now, it looks like dollars and negative, because the money is coming from their
03:51pocket and going out.
03:53Well, that's great, but what if we want to vary not just the number of years,
03:57maybe we have another input we want to vary?
03:59So, let's go here to the dual variable table.
04:01Now, here we can vary not just how many years it'll take, but how much money
04:06we can pay that back.
04:07I am assuming that the company doesn't have a lot of control over the interest rate,
04:11 but it probably can control how long it'll take to pay back and
04:14certainly how much to borrow.
04:15So, let's put in the Payment function again.
04:18It has to be specifically in this cell here A11.
04:21So, again we'll put in =PMT, open the parenthesis, there is the rate divided by 12,
04:29type in a comma, we want the number of periods, there are 10 years, time is
04:3312, just like in the last sheet, type in a comma, and it's the same present value,
04:37that $100,000, and press Ctrl+Enter.
04:40So, there's the Payment function.
04:42Now, again let's select all of the cells in this box, so starting from A11 down
04:46and across to select all the cells in that box.
04:50So, let's go back to the Data tab > What-If Analysis > Data Table. Move this out of the way.
04:57Now, we are going to use both of these fields.
04:58The row input cell. Well, what's the row?
05:00Well, we have in row 11, we are substituting for that present value.
05:05So, click that present value.
05:07We go in here to the Column input cell.
05:09Well, what's the column in the table?
05:11The column in the table is substituting for the number of years.
05:14So, click that number of years and that's it. Click OK.
05:17Now, we can see-- let's just select that and format it as dollars before we talk about it.
05:23Now, we can see for example if we borrow $95,000 and take 20 years to pay it
05:29back at 6%, every month we'll write a check for about $681.
05:34Or if we borrow $110,000 at 6% interest, pay it back over five years, it will
05:39cost us a little over $2100.
05:42Now, there's no rule that says you have to use these specific variables and this
05:46specific Payment function for Data Tables.
05:48For example, if interest rates are volatile, you might try higher and lower
05:52interest rate amounts. Or maybe you need to see cosines and tangents of different angles.
05:57So, you can think of Data Tables as sort of a kicked up type of Auto Fill.
Collapse this transcript
Using scenarios in formulas
00:00Excel's Goal Seek and Data Tables features are really great, but there are times
00:05when you might want to change more than just one or two variables at a time or
00:08maybe you want a nicely formatted report of all your possibilities.
00:12That's what the Scenario Manager is and it's also under the What-If button that
00:16we've been looking at in this chapter.
00:18So, go to the Data Tab and over here click What-If Analysis and choose
00:24the Scenario Manager.
00:25Now, we haven't created any scenarios yet so that's why this is blank.
00:29And the way it works is you create sets of data.
00:33Each set of data has a name that you give it.
00:35It's a friendly name. It's not a file name.
00:37You can call it just about anything you want.
00:39You typically give it names like low, medium, high, very high, whatever it is
00:44that suits your particular need.
00:46So let's start by clicking Add and let's say the scenario name we'll call
00:50this as Low amount.
00:53This will be perhaps the lowest amount that we would borrow.
00:56So, go over here for Changing cells and just delete whatever is in there and
01:00we want to select these three numbers here on the worksheet.
01:03Now, keep in mind you don't want to select that Monthly payment because that is
01:07a calculated amount.
01:09So we don't change the calculated amount directly. We change the inputs that
01:13create it. And delete the comment here.
01:16Let's call this something like Lowest amount and click OK.
01:21So, now we can change those amounts.
01:23So, let's say the lowest amount we would borrow is maybe 80,000. So I type in 80,000.
01:30Maybe we figure that if we borrow 80,000 perhaps we could get a lower
01:34interest rate than 6%.
01:35So, let's change that to maybe 5.5%.
01:39Maybe we could pay this off over fewer than 10 years.
01:42I'll just press the Tab key this time and say maybe we could pay that off over 8 years.
01:47Now, click OK and you see that Low amount scenario was put in the Scenario box.
01:52We have the cells were changing and that comment.
01:54Well, let's add a few more.
01:56So click Add, and maybe let's call this Original amount.
02:02The cells that we are changing should be the same, and let's change the comment
02:06here and we'll call this Original amount to borrow and click OK.
02:13Now, we don't have to change anything of course because this is the original amount.
02:16Now, rather than clicking OK, just click Add.
02:19So, that saves us the step of going back into the main Scenario Manager dialog.
02:23So we can just add one scenario after another.
02:26It's just a little easier.
02:27So let's call this scenario A little more.
02:31I'll just press the Tab key, Changing cells, that's the same, the comment and
02:35let's say Borrowing slightly more and click OK.
02:40So let's say maybe for this we'll borrow 125,000. Maybe we'll estimate that we
02:47will get maybe a .0625% interest and because we are borrowing a little more,
02:51maybe we'll have to pay this off over 12 years and click Add. And let's say add
02:57just one more and we'll call this a High amount to borrow.
03:01I'll just press Tab, leave the Changing cells alone, press Tab again and the
03:05comment is Highest amount, click OK.
03:10Let's say the highest amount we might borrow is 175,000 and I'll leave the
03:15interest rate alone for this.
03:16There is nothing that says that you have to change all of the values of all
03:20of your input cells.
03:21So I'll leave that 6% alone, but because we are borrowing a lot more maybe we'll
03:25have to pay this off over let's say 18 years and click OK.
03:29So now we have all of our scenarios.
03:32So how do we go and use them?
03:33Just double-click any one. Double-click the Original amount, the Low amount, A
03:38little more, High amount.
03:40Now, let's say if you just want to leave it the way it is you can click Close.
03:44And at any time, you could back to the Data tab, back to What-If Analysis and
03:48bring up the Scenario Manager and just continue looking at them.
03:52But wouldn't it be great if we could see all of these all at the same time?
03:55Click Summary and this asks us, what kind of summary do we want?
04:00We could have a traditional scenario summary or we could take everything and put
04:04it into a PivotTable report.
04:06We'll talk about PivotTables later in this course.
04:08So, let's choose Scenario summary.
04:10Now the Result cell is correctly guessing that it's that calculated amount, so
04:15click OK, and here we have our Scenario Summary and it shows us all of these
04:20named scenarios, and if you click any of these you notice in the Formula bar
04:25these are not linked to the original. These are simply copied and pasted.
04:30What you might want to do over here into Changing cells is instead of putting
04:34the cell references, give those meaningful names also.
04:36See I not going to call this something like Present Value, Interest, Years and
04:42so forth, and you can adjust those column widths if you need to.
04:46Well, this will print out pretty much the way you see it.
04:48So either press Ctrl+P or go to your File tab, choose Print, and here's your preview.
04:54It kind of cutoff as you see over here. This is two pages.
04:57You might want to go instead of Portrait Orientation choose
05:00Landscape Orientation.
05:01Of course, that all depends on the size of the scenario you are creating.
05:04Now, let's just press the Escape key and come back out.
05:07Now, just one more thing. These scenarios are not dynamic.
05:11So if you go back let's say into your original and you change these some more or
05:16you add or delete scenarios, this Scenario Summary sheet will not change.
05:21You'll have to create an additional scenario report, but that's okay because you
05:25could have as many as you like.
Collapse this transcript
Exploring the Analysis Toolpak
00:00If you watch some of the other movies in this chapter on data analysis, you saw
00:04that Excel has some pretty good tools to help you look at different
00:07possibilities and make decisions.
00:09What I want to do now is give you just a brief overview of a free add-in that
00:12comes with Excel called the Analysis ToolPak.
00:16If data analysis is something you need to do a lot of, you'll want to explore
00:19the ToolPak because it kicks these features up to a whole new level.
00:22We won't go into a lot of detail in this movie, but I want you to see what's there.
00:26But before we use it we have to enable it, because it's a plug-in.
00:29So, go up to the File tab to get into Backstage view and down here towards the
00:33bottom click Options.
00:35And on the left we have all the different categories of options.
00:39Let's click Add-Ins down towards the bottom.
00:41Now, if you see the Analysis ToolPak here listed under Active, you don't have to
00:45enable it because it's already active.
00:47But you should see it over here under Inactive Applications.
00:50Now, if you don't see it at all it means that it's simply not installed and you
00:54have to get your original Microsoft Office discs and reinstall it.
00:58But if it's here, it'll probably show up as the first ones.
01:01By the way you notice there are two of them.
01:02There is the regular and there is the VBA.
01:05The VBA is for programming.
01:07So, we're not going to look at that in this course.
01:09Make sure the regular Analysis ToolPak is selected. Go down here and click Go.
01:14And that brings up the little Add-Ins dialog box, and here we see the regular
01:17Analysis ToolPak, we see the VBA.
01:19So, just put a check there in the regular Analysis ToolPak and click OK.
01:24Now, what that does is this. Go to the Data tab and now on the right you see
01:28there is this Data Analysis item.
01:31So, I want to show you three of the tools in the Analysis ToolPak.
01:34Down here on the bottom we have three tabs and let's start in the Correlation tab,
01:37and what's happening here is we have two columns of random numbers.
01:42And we're going to use the Correlation tool to correlate and see how random are
01:46these random numbers really.
01:48So, go up to Data Analysis and scroll if you need to, find Correlation, and click OK.
01:54So, it's asking for an Input Range, and the Input Range is over here.
01:58Let's select from B3 across and down to the bottom.
02:01So, we have both of the headers and we have all the numbers.
02:03Now, Excel correctly guesses that it's grouped By columns.
02:07We want to make sure that it recognizes that the first row are our Labels.
02:11And we want to put the results right over here.
02:14So, click the radio button here for Output Range.
02:16Make sure to click in the box, make sure your cursor is there.
02:19And now let's click maybe on cell E3 for the Output Range, and click OK and deselect.
02:26So, now what it tells us it is correlating the first column with itself and
02:30correlating second column with itself. Of course it gives us 100% correlation.
02:34But when it correlates the two columns with each other, that's a pretty low number.
02:39Now, in real life you probably couldn't careless about ranking random numbers,
02:44but what you might be doing is your Two Trees Olive Oil Company is selling say
02:48two different products to customers, and you might want to see well, does the
02:52sales of one product have anything at all to do with the sales of another product?
02:57Maybe you're selling garlic olive oil, and you're also selling olive oil infused
03:02shampoo, and do the sales of shampoo have anything at all to do with the sales
03:06of your garlic olive oil?
03:08So, that's where I think you might find this useful.
03:10So, let's take a look at moving averages.
03:12Now, here we can see by month from January to August we're selling our 6-ounce
03:17size of olive oil shampoo, and we have our totals here.
03:21This will be the input.
03:22What we want to do is take a moving average, and we want to find from one month
03:26to the other, what is the average sale?
03:29So, let's go back to Data Analysis and scroll if you need to and find Moving Average.
03:36Click OK and I'll just move this here out of the way.
03:39So, click here in the Input Range, and for the Input Range select just these numbers.
03:43I'm not selecting the Total column header, because there's this blank row and I
03:47don't want to average in a zero.
03:49And you certainly don't want to select that calculated field.
03:52So, make sure Labels in First Row is deselected for this example.
03:55Now, what the Interval is-- and I'll leave this blank. This will let you have a
04:00greater or fewer numbers of months to compare with each other.
04:04But let's click over here in Output Range.
04:07And Output Range, we'll click right there on F6, so we'll have the range here
04:11right next to the input, and while we're at it put a checkbox in here for
04:15Chart Output. Click OK.
04:17So, now what we see is the first two kind of look like an error, and the
04:22reason we're doing that is because you have to start somewhere and
04:25you can't average a number with something before it that doesn't exist.
04:28So, here are the Moving Averages for the rest, and the real nice analysis
04:32part in this chart is we can see the blue line is the actual sales and by
04:36using that Moving Average we can predict on the red line what our sales will be in the future.
04:42So, now let's go to the Rank tab.
04:44In the Rank tab our olive oil company is selling to supermarkets.
04:48Rght, where the wholesaler and the supermarkets are selling your product.
04:51Now, right now you can see the supermarkets are listed in alphabetical order,
04:56and we have whatever their purchases are.
04:58Now you might say "well, hey no big deal. I could just with one or two clicks
05:02sort by Purchases." But what the Data Analysis tool will let you do is give them
05:07ranks by percentile.
05:08So, let's go back once again to Data Analysis, scroll down and choose Rank and
05:14Percentile, and click OK.
05:16So, the Input Range will be, including the label Purchases down to the bottom,
05:21and instead of scrolling I'm just going to press Ctrl+Shift and then the Down
05:25Arrow key on the keyboard, so I have them all selected and just scroll up.
05:28So, we're grouped by columns. That's correct.
05:31Label is in the first row. That's right.
05:33Now, we want to put the Output Range right over here.
05:36So, click this radio button for Output Range, make sure to click in the box, and
05:41then let's click right over here on cell C3, and it will just populate down that
05:45column, and click OK, and scroll up.
05:49Now, this is great but we're not quite finished.
05:51Column C is the Point and the Point is simply what is the original position of
05:57the supermarket name.
05:59So for example, this point number 1 is Allbearson's supermarket, and point
06:04number 18 is whatever is number 18 down on the list.
06:07Now the Purchases in Column D is redundant.
06:11It's the same thing as what's happening in Column B, but now we have the Rank
06:15and we have the Percentile.
06:17What we want to do is re-sort this selected area so that we get some useful
06:21information out of it.
06:22So, make sure it's still selected.
06:24If you deselected it, you want to reselect.
06:26Let's go back to the Home tab over here to Sort & Filter and choose Custom Sort.
06:31What we want to sort by is Point.
06:34We want to sort Values and Smallest to Largest, so that will make these four
06:38columns match the original two columns.
06:41Click OK and now we can see okay, this is supermarket number one, this is
06:45supermarket number two, and so on.
06:47Well, I said before the Column C and D were redundent, so we don't need them anymore.
06:51Put your mouse pointer up here on the header for Column C so you have that
06:53down-pointing arrow, just click-and- drag to Column D ,right-click and Delete.
06:58Now we have some useful information.
07:00But let's go and format these headers. Click on one of these green headers here,
07:04and in the Home tab get the Format Painter and just drag over here.
07:08Okay, now let's do something useful.
07:10Let's sort by Rank.
07:11Click anywhere in the Rank column, Sort & Filter, maybe Smallest to Largest.
07:16So, keep in mind Smallest Rank is the highest amount.
07:19So we see Snob Hill Market is our best customer.
07:22Here in the purchases they are in the 100 percentile, or maybe we want to sort
07:26Largest to Smallest.
07:28And let's go and sort alphabetically again.
07:30Click somewhere in Column A, go to Sort & Filter, Sort A to Z and here we have
07:35an original alphabetical order, so we could see our first supermarket in the
07:39list is our number 4 best customer.
07:42So, you might need only one or two of the tools in the Analysis ToolPak, but
07:47knowing how those work can save you a tremendous amount of time over doing it manually.
Collapse this transcript
11. Advanced Analysis with PivotTables
Discovering PivotTables
00:00Among Excel's arsenal of data analysis tools is a really great feature
00:05called PivotTables.
00:06That's what we are going to look at in this chapter and I want to give you an
00:09overview of what PivotTables are and where you would find them useful.
00:13PivotTables are useful when you have a lot of data to analyze and it's not
00:18obvious how they relate to each other.
00:20In the example here on the screen, we have orders being placed from different
00:25regions of the country over different months.
00:27We see we have different sized bottles being sold and in each order we can see
00:32how many of these bottles are being sold.
00:34If you have thousands and thousands of rows of data like this, it could be hard
00:39to make good decisions unless you have them analyzed properly.
00:43So PivotTables summarize your data. They turn raw data into useful knowledge
00:48that you can do things with.
00:49Now if you were to create a PivotTable based on the data that you just saw,
00:54this is whatthe PivotTable might look like.
00:56Now I know it looks kind of complicated.
00:58So let's talk about what the anatomy of this PivotTable is.
01:01First thing to look at are the Row Labels and we just said that we're selling to
01:06different regions of the country.
01:08So we've taken those particular data points and we've put them into the row
01:13labels, because there is only a finite number of regions that we are selling to.
01:18We also have column labels and the column labels are also taken from the data
01:22that we just saw. We have different sized bottles that we are selling.
01:25And where the rubber meets the road is the Summary area.
01:29So for example, we know that the central region has bought over 10,000 bottles
01:35of the 1 liter size and they have bought over 76,000 bottles of the 2 liter size,
01:41because it's summarized.
01:42Now we can have sort of a third dimension to the PivotTable using the report filter.
01:47So in addition to our row and column labels, we can also filter by month.
01:53PivotTables are flexible.
01:55What's the pivoting part of a PivotTable?
01:57They are flexible and with just one or two clicks, we can swap columns, rows, and filters.
02:04Also we can filter tables interactively with a feature called Slicers and
02:08Slicers are new to the 2010 version of Excel.
02:11In addition to PivotTables, Excel also has a feature called PivotCharts where
02:16we can make a chart of all our data and we will look at PivotCharts also in this chapter.
Collapse this transcript
Creating a basic PivotTable
00:00Now we're going to get a chance to create our very own PivotTable and we'll
00:04create it from scratch.
00:05Before we do, let's just take a quick look at our data.
00:08We have orders coming in from different areas of the country.
00:12The orders are coming in at different times of the year.
00:14We see we are selling different size products, 1 liter bottles, 2 liter
00:17bottles and so on, and we can see in Column E, how many bottles we're selling in each order.
00:23Now, if you have thousands of rows of data like this, it could be hard to
00:27understand what's going on.
00:28So the PivotTable will summarize it and make some sense of this.
00:31PivotTables are something that we insert, so we go to the Insert tab and over
00:38here at the beginning of the Ribbon bar, click that PivotTable button and from the
00:41flyout, choose PivotTable.
00:43That brings up the Create PivotTable dialog box.
00:46So the first thing is that Excel is correctly guessing where our data are.
00:51And you can see the first row we have our Table/Range is correctly listed over here.
00:55Now, we want to put the table on a new worksheet.
00:58You don't have to, but it's generally a good idea.
01:00Now if you look down here in the lower left, we only have one tab in
01:03the worksheet anyway.
01:04So let's leave New Worksheet selected and click OK.
01:08So now, you can see we still have our data.
01:11That's still here and the PivotTable is going to be on Sheet 1. You could
01:14rename that if you want.
01:15So over here on the left is where the PivotTable will go and over on the right,
01:20we have the panel that will let us construct the PivotTable.
01:23Also take a look at the Ribbon bar. We have a PivotTable Tools section and we're
01:27right now in the Options tab.
01:29So what we're going to do is we're going to use the field list here to
01:32construct the PivotTable.
01:34So let's start off with the row labels and what we want to do is let's take the
01:38region and just with your mouse, you see you get the four headed arrow, just
01:41drag down into this box here.
01:44So immediately as we start creating the PivotTable, we have our row labels.
01:48Some of the other parts of that structures disappeared. Don't worry.
01:51It's going to come back in a moment.
01:52Second thing we want to do is figure out our column labels.
01:56So the column labels will be the size of the products.
01:59So take this Size and drag down here into the Column Labels.
02:04So now we have the basic structure of our PivotTable.
02:07So the row labels are here, column labels are here, and in the middle, this'll be
02:11the volume how many bottles are we selling.
02:14So let's go over and take Quantity and drag Quantity down here into the Values box.
02:22So now we can see all right the Southeast region is buying over 40,000 or almost
02:2841,000 bottles of the 1 liter size.
02:31We can also filter this by month, so let's take Month and drag that down here
02:36and into our Report Filter.
02:38So now we have that on the top and if you've done this, congratulations, you are
02:42now the proud parent of your very first PivotTable.
Collapse this transcript
Modifying a PivotTable
00:00In this workbook we have a simple PivotTable on Sheet 1 and if you want you can
00:05take a peek here down in the Data tab, so you can see the underlying data there,
00:11but let's go back here to Sheet 1.
00:12First thing we want to do in editing the PivotTable is let's change this sheet
00:18name to something useful.
00:19Instead of Sheet 1 you can double-click it. Maybe call it PivotTable or call it Summary.
00:24Something a little bit more useful and understandable.
00:28Now let's go and do some filtering, and you see up here we have these little
00:33down arrows for our column and row labels and report filters.
00:37Let's start by filtering the months.
00:39Click this down arrow and right now you can see we have all three months
00:44showing, but maybe we just want to see January. Perhaps this is the beginning of
00:47the year and we want to see how sales are going just for this month, or perhaps
00:52data are not complete for the other months. Click OK and now you can see were
00:57filtered just by January.
00:58Maybe we want to see two months. So click that Filter again, down here Select
01:03Multiple Items and now you can put checks in those two months and then click OK
01:08and now we see we are sorted by Multiple Items.
01:12Maybe we want to filter by region. Perhaps we get a request from department
01:17managers or sales managers for specific data.
01:20So click that down arrow and over here it says Select All, just click that so
01:24we deselect all the regions. Maybe we only want to see the Central and
01:29Northeast regions, perhaps we have a sales special going on in those two
01:33regions so we want to look at those.
01:35And click OK, and now we have just those two regions selected.
01:39May be the sales special that's going on is only going to be for the 1 liter and 2 liter size.
01:46So click this down arrow again, deselect that Select All and we'll check just 1
01:51liter and 2 liter size, click OK.
01:54By the way if this 1 liter kind of annoys you there that's aligned to the left,
01:58you can simply click it and in the Home tab just click the Right Align to
02:02format it a little nicer.
02:03Now that we have it filtered, perhaps we want the underlying data for just these
02:08numbers that we have.
02:10So double-click any of them and you notice that Excel creates a brand-new
02:15worksheet down here with just the underlying data for that particular cell
02:20that we double-clicked.
02:21Now this is not dynamic. This is simply extracting and you can click on any
02:26of these and you can see up here in the Formula bar, this is simply like a copy-and-paste.
02:29Now let's go back to the Summary tab so we get back to the PivotTable.
02:34Now if we decide that we want to unfilter these, there's a couple of ways you can do it.
02:38You could unfilter one-by-one.
02:40Click the Filter button.
02:42Now you could mess around down here by selecting/deselecting, but it's a little
02:45faster if you go over here and you click Clear Filter.
02:49Now you've cleared that filter but we still have these two that are filtered,
02:53and if you want to clear all the filters, there is faster way to do it.
02:57Up here in the Ribbon bar we have the PivotTable Tools section, and that's
03:00visible only if you've clicked inside the PivotTable.
03:04Click the Options tab and over here click Clear and choose Clear Filters.
03:10Don't choose Clear All because if you do that you'll wipe out the PivotTable.
03:13Just click Clear Filters and now the filters are cleared out from all of those options.
03:20Okay, well this is a PivotTable.
03:21So let's do a little pivoting.
03:23Let's take the Month over here in the Report Filter section and let's drag Month
03:29down below Region, and look what happens to the PivotTable.
03:33So now we have the months are separated by region.
03:38So maybe if you have separate sales managers for each region you could give
03:42this piece of the PivotTable to each sales manager and say, "hey, here's how
03:46your products are doing."
03:47Let's pivot it a little bit more.
03:49Let's take Size, and let's drag Size into the Report Filter.
03:56So we kept the original filtering by region but now we can filter it further by size.
04:00May be we only care about the 2 liter size, so click 2 liter, click OK, so we
04:06still have it filtered by region and sub-filtered by month but only for the 2
04:11liter size, and if we want to see every size again click that Filter button and
04:17choose All, and click OK.
04:20Well, what if we decide that we want to see average values instead of sum values?
04:25Because what's happening here is this is simply adding all the numbers together.
04:29You want to make sure you are still in the PivotTable Tools section and the
04:33Options tab and over here where it says Summarize Values By, click that, choose
04:38Average, and now you have average values instead of summary values.
04:43And if you want to change it back you could always go back here and change it to Sum.
04:48There is some interactive filtering that we can do and again in the Options tab,
04:53click Insert Slicer and choose Insert Slicer from the fly-out, and we get the
04:57Insert Slicer dialog box. And what this will let us do is put a little panel that
05:02will let us filter by any of these data points.
05:06So let's choose Month and Region and click OK and we can separate these slicers
05:13here just to make it a little easier to deal with.
05:16Before we do anything let's make them look nice.
05:19Select one of the slicers and over here in the Options tab,
05:22let's click down and maybe let's give it a green olive-y look and choose the other
05:27Slicer and give this maybe a slightly different green olive-y look and while we
05:31are at it, let's format the PivotTable then we'll use the slicers.
05:35So click somewhere in the PivotTable and again in this section here go to Design
05:39and when you click that, you can roll your mouse over and before you pick one you
05:45can see what it's going to look like. I'll choose this.
05:48So what are the slicers all about?
05:50Well, in the Region Slicer, click let's say Southeast and now you've immediately
05:54filtered by Southeast or by Central or by West.
05:58In the Month right now we see all of them. Maybe we want to see just January.
06:02Well, we can choose multiple values. For example if we want to see January and
06:05March but not February, make sure January is selected and select it if you need
06:09to and hold down the Ctrl key on your keyboard and Ctrl+Click March, and then
06:14we have January-March.
06:15Maybe we want to see just the Central and Northeast regions, so click Central
06:20and again hold down the Ctrl key on your keyboard and click Northeast.
06:24So now have just the Central and Northeast sections.
06:26So if we have a client or a boss or somebody who wants this specific
06:30information, you can see it takes only one or two clicks to get the specific
06:35detailed information that we want.
06:38Now I hope this has given you a good idea of what PivotTables are and how they
06:41can be useful and they are a lot more ways that you can modify them. We just
06:44don't have time to go into really tremendous detail in this course.
06:49But if you do want to learn about PivotTables in depth take a look at some of
06:53the great PivotTable courses in the lynda.com library.
Collapse this transcript
Creating and modifying a PivotChart
00:01Even though PivotTables do a great job of slicing, dicing, and baking your data
00:04so many different ways, sometimes you will get the clarity you need only by
00:07looking at a PivotChart.
00:09Now, there are two ways that you can create a PivotChart and I will show you both ways.
00:13One is you can take an existing PivotTable and make a chart out of it.
00:17The other way is to skip the middleman.
00:19Create a PivotChart directly from your underlying data without having to
00:23create a PivotTable first.
00:24Well, let's do the first method first.
00:26We already have a PivotTable here.
00:29And if you want, you could go down and click the Data tab just to see
00:32the underlying data.
00:33I will click back on the PivotTable tab.
00:36And make sure you click somewhere in the PivotTable. It doesn't really matter where.
00:40Now, up here on the Ribbon bar, you have the PivotTable Tools section.
00:44And select the Options tab, and over here click PivotChart.
00:49And this will let us insert a chart.
00:51And you have so many different types of charts you can use.
00:54Let's select Column.
00:55And I am just going to choose the fourth one here, so that's a nice basic 3-D Column Chart.
01:00And then click OK.
01:01And boom, it just pops the chart onto the screen.
01:04Now, just like a PivotTable, we can filter this.
01:07Go down here in the lower left corner and click Region.
01:10And I will click that Select All.
01:13So we deselect all. Maybe we just want to see Central and Southeast, so select
01:18those two and click OK.
01:19And now we see just those.
01:21Maybe we want to filter the months.
01:23So click the Month drop-down.
01:24And let's say we only care about February, March, and not January.
01:28So deselect January. And click OK.
01:30We could also filter by size.
01:33Click on Size and maybe we only want to see the 1 liter and 2 liter and not the 750s.
01:38So click over here to select multiple items and just deselect the 750s, and click OK.
01:43And there you are.
01:44So now we have this filtered by three different categories.
01:48Now, we can also add slicers to the PivotChart.
01:51So up here again in the PivotChart Tools tab, click the Analyze tab and Insert
01:58Slicer, and from the pop- up choose Insert Slicer.
02:01And let's insert slicers for Region and Month. And click OK.
02:07And you can drag these out of the way.
02:10Maybe drag the chart out of the way here.
02:15And before we go and use them, let's go and format them.
02:18Select the Slicer and maybe select the other Slicer.
02:21And let's give these kinds of olive-y looks.
02:24Maybe we want Southeast through Northeast.
02:26So select Southeast and then Shift+Click Northeast.
02:31And maybe we want to see January, March, and not February. So click January and
02:36then Ctrl+Click March. So we have those.
02:40And of course we could unfilter these whichever way we like. Okay.
02:44Let's take a look at the other method of creating a PivotChart and that is
02:48directly from the source data.
02:50So down here, click the Data tab and just make sure you are clicked anywhere
02:55inside the Data area. It doesn't really matter where.
02:57And just like PivotTables, PivotCharts are things that we insert.
03:01So we go to the Insert tab.
03:03Now, over here on the left, click PivotTable and then choose PivotChart.
03:07Let's move this out of the way.
03:11And Excel correctly guesses our data area, including the column headers.
03:15And we will put this on a new worksheet.
03:17So I am just going to accept the defaults and click OK.
03:20Now, in a PivotTable, we would define columns and rows, but in a PivotChart, we
03:26define Axis and Legend fields.
03:28So let's go and do that.
03:30Let's take the Region and let's drag the Region into the Axis fields.
03:36And let's take Size and drag Size into the Legend fields.
03:42So now we have the basic structure of our chart.
03:45And the data that we want to summarize is the Quantity.
03:48So take Quantity and drag Quantity into the sub-values and now we can filter it by month.
03:53So take Month and drag into the Report filter.
03:56Now before we go and format it, let's go and use it.
03:59If you take a look at the chart here, we have it grouped by Region and in the
04:04Legend we have by Size.
04:06Now, in Excel's terminology, the Size is the series.
04:10So we have this 1 liter in blue and you see we have these blue bars.
04:15So what that means is we have a 1-liter series.
04:17We have a 2-liter series.
04:19Now, if we decide we want the opposite, maybe we want the series to be the
04:23Regions and the groups to be the Size, it takes one click.
04:27In the PivotChart Tools section, make sure the Design tab is selected.
04:31And over here click Switch Row / Column, and boom, it's done.
04:34So now we are grouped by Size.
04:37And the Legend is done by Region.
04:39So we have a Southeast region and a Central region.
04:43We have a 1 liter group, 2 liter group, and so on.
04:46Now let's format it.
04:47Make sure your chart is selected, and up here under Chart Styles, click that
04:51down arrow and you can choose a style.
04:54Notice that when you roll your mouse over it, it does not change dynamically.
04:57You actually have to click one to take effect.
05:00And I will choose this kind of 3-D olive-y color.
05:03Now, we can insert Slicers here also.
05:06So up here in the Ribbon bar, click the Analyze tab, and click Insert Slicer.
05:11And then choose Insert Slicer from the fly-out.
05:14And let's do a Slicer for the Region.
05:16So just click Region and click OK.
05:18And move this out of the way.
05:20And again, we can format this.
05:21Maybe click this arrow here.
05:23And I will choose, again, a green sort of olivey color.
05:27And maybe we just want to see the Central and Northeast regions instead and not
05:30the Southeast and West.
05:31So click Central and then Ctrl+ Click Northeast, and we see that.
05:36Or maybe we want to add Southeast but not the West. You can Ctrl+Click that and so forth.
05:41So just like with PivotTables, there are just way too many features of
05:45PivotCharts to go through all of them in a single movie.
05:47So if it's something you need, I would suggest playing around with them on your
05:51own and also check out the PivotTable courses here on lynda.com.
Collapse this transcript
12. Creating and Using Charts
Choosing chart types
00:00Charts are great tools for data analysis and Excel has a very robust
00:04charting package built-in.
00:06You also might not always know which chart to use for which purpose.
00:11First of all, why even use a chart?
00:13Well, which is easier to understand? Dry data like this or a colorful
00:18column chart like this?
00:20Now column charts are great when you have a lot of data to look at.
00:24And let's take a look at this chart here.
00:26We can see right off the bat that three states here, Maryland, Vermont and New
00:30York, usually have fairly high numbers.
00:33But something happened in this second quarter
00:35where Vermont and New York still have high numbers but something happened to
00:39Maryland where the numbers aren't quite so high.
00:42On the other hand, New Jersey usually has some kind of mid-level numbers
00:46but also in the second quarter something happened where New Jersey has
00:49higher numbers than usual.
00:51Now this chart doesn't tell us why it happened but it does make those numbers stand out.
00:57Excel also creates pie charts, and pie charts are great for comparing totals.
01:02If you watched the movie in this course on absolute references, we took a grand
01:06total and we split it up into component parts by percentage.
01:10Well that's kind of what a pie chart is.
01:12We have a whole and we've split it up into its components.
01:15And by having a nice color chart, three -dimensional, one piece pulled out,
01:19it makes the numbers and it makes the information stand out a lot more.
01:24Excel also does a good job with line charts.
01:27Line charts are good for identifying trends over time.
01:30And here we have lines going across three quarters of the year and we can see
01:34what's going up and what's going down.
01:37Excel also has a type of line chart called Sparklines and they are new in the 2010 version.
01:42And these are miniature charts that fit in a cell.
01:45I like to think of Sparklines as thumbnail charts for thumbnail analysis.
01:50And Excel does a whole lot more than that and let's take a look at a few.
Collapse this transcript
Inserting Sparklines
00:00Starting in the 2010 version, Excel has a type of line chart called Sparklines
00:05and Sparklines are little miniature charts that actually fit into
00:09the cells of the worksheet.
00:11Now you might not always want a whole table or you might not always have room for one.
00:16So Sparklines might fit the bill for you.
00:18Well, let's check it out.
00:19First, click anywhere in the data are, it doesn't matter and Sparklines like any
00:23other chart are things that we insert.
00:25So go to the Insert tab.
00:27And over here to the right of the Chart section, we have Sparklines.
00:31Now click Line and the Create Sparklines dialog-box comes up.
00:35First thing we have to do is define the Data Range.
00:38So delete whatever is in here and let's start with the first number here.
00:42I'm not going to select the column headers.
00:44It's just the numbers. I'm just going to drag over.
00:45Now you could drag all the way down if you want.
00:47I'm just going to press Ctrl+Shift+Down Arrow key. It's just a much easier and faster
00:52way of selecting and scroll up.
00:53So now we have the Data Range.
00:55And now click here in the Location Range.
00:57And the Location Range is where do we want the Sparklines to go?
01:01So let's start over here in H5.
01:03Now here we have to drag down if we press Ctrl+Shift+Down Arrow.
01:07Now there's new place for it to start and let's go ahead and let's scroll back up.
01:11So click OK. And boom!
01:13It just inserts those Sparklines and just click somewhere inside the Sparklines
01:17so you can get a better look.
01:18Now when you do that you have the Sparkline Tools in the Design tab showing
01:23up on the Ribbon bar.
01:24Before we change anything there, let's just take a look at the column itself,
01:27Column H. If we want these lines to be flattened out a little bit more, you put
01:32your mouse pointer here on the right border of Column H. Your mouse pointer
01:35turns to a two headed arrow.
01:36Now you can click and drag out to the right and those lines flatten out.
01:40If you want them more compressed, just drag them back and now the lines are a
01:44little bit more craggy.
01:45I'm just kind of drag in a little bit to the right, a happy medium there.
01:48Well, we can do some formatting here.
01:51First, let's decide what kind of thickness we want for the lines.
01:55Go over here to the Sparkline Color. Choose Weight.
01:58And yes I know that's confusing. Why is Weight in with the Color tab? I don't know.
02:02It just is.
02:03And I'll choose the heavier line so that they stand out a little bit more.
02:06As far as Markers go, we can display High Points, Low Points, First, Last Points and so on.
02:11So let's go over here in the Show tab and maybe choose High Point and Low Point.
02:16And now we can see with each one there's a High and Low.
02:19If you want, you can go here into Marker Color.
02:22Go over here to Markers.
02:24And we can change them as well, make them a little bit more visible.
02:27If you don't care about High Point and Low Point, maybe you just want First and Last.
02:32I'll turn those off and I'll turn on First and Last Points.
02:35And we can see those also.
02:36And I'll just turn off those Markers.
02:38It really depends on what you need.
02:40There is no right way or wrong way.
02:42Well, even though these are called Sparklines, we also have a column variety.
02:46So over here click Column.
02:48And now we can see kind of little miniature column charts.
02:52And this might be a little bit more visible of where the high numbers are and
02:55where the low numbers are.
02:56Well, speaking of low numbers, you'll notice that some of these numbers here are negative.
03:01And here's another one.
03:03Wouldn't it be nice if we could make those negative numbers really stick
03:06out like a sore thumb?
03:07When you're looking at the data here, it's kind of hard to tell.
03:10So click somewhere in the Sparklines, and again if you need to go back to the
03:13Design tab and choose Win/Loss.
03:15Right now, it's still kind of hard to tell.
03:19But let's click on the Style dropdown. Maybe choose a dark theme and go over
03:24here to Marker Color.
03:26Click that and for negative points, let's choose a light color.
03:29I'll choose a light green.
03:31And now we can see those negative numbers really sticking out.
03:35And you can see over here Negative numbers are turned on.
03:38And if you want, you can always turn them off.
03:40And that green goes away. Turn them on, the green comes back.
03:43So the next time you need to create some charts to display just a general
03:47overview and you don't want to fuss with the whole charting package, try using Sparklines.
03:51It can save you a lot of time.
Collapse this transcript
Creating a column chart
00:00We can create column charts with just a few clicks.
00:03And Excel has many different types of charts and many variations of them.
00:07But when you learn how to use column charts, you can use the same techniques for
00:11other charts as well.
00:12Well, let's take a look at this worksheet.
00:14It has pretty typical type of data that you might want to chart.
00:17So to create the chart, we have to select the data first, because remember,
00:21Excel doesn't know what we want. We have to tell Excel what we want.
00:25So let's select from A4 down to D11.
00:29So we are selecting the column headers for State and the three quarters and the
00:33data for all our States.
00:35The important part is we are not selecting the Total column and we are not
00:39selecting the Total row.
00:41When you create a column chart, you don't want to select your totals, because
00:44then you will double the amount of data that's in your chart and your chart
00:47just won't be right.
00:48So now that we have it selected, we insert a chart.
00:51Well, because we are inserting a chart, we go up to the Insert tab.
00:55And here in the Ribbon bar, we have the Charts group.
00:57So let's click Column.
00:59And just to keep it simple for now, let's just choose the first type of 3-D Column.
01:03Click and boom, it just puts it on the page.
01:07Now, if you want to format the chart, you see on the Ribbon bar we have the
01:10Chart Tools section, and we have three tabs there.
01:13And later in this chapter we are going to go use them.
01:16But if all you need is a chart with the default settings, you are all done.
01:20But let me show you a little bit more.
01:22Let's say we don't want all three quarterly data in this chart. Maybe the 3rd
01:26quarter data hasn't come in yet.
01:28So leave the chart selected or move it out of the way if you need to.
01:31And you see we have this blue box around our data.
01:35Put your mouse pointer in this heavy dot in the lower right corner and your
01:38mouse pointer becomes a two-headed arrow.
01:40Now, that is not the Auto Fill handle. Don't get that confused with Auto Fill.
01:44It has nothing to do with it.
01:46But when you get that two-headed arrow, just drag over here to the left so this
01:50box is just around the first two quarters, and you notice that the chart
01:53immediately changes. It's live.
01:56The numbers are alive also.
01:57For example, let's take a look at Connecticut.
02:01You see Connecticut has some fairly low numbers in this chart.
02:04What happens if we change them?
02:06Let's go over here.
02:07I will just select that first Connecticut number.
02:09And let's make that, I don't know, 850.
02:12Type in 850. Press Enter.
02:14And boom, immediately that data point increases, so we can see that's live.
02:19I want to show you one other way that you can very quickly insert a column chart.
02:24I will just move this chart out of the way here.
02:26Let's select the same cells as we did before.
02:29Again, we are selecting the column headers.
02:32We are selecting the State data.
02:33We are not selecting the Total column.
02:35We are not selecting the Total row.
02:36Once we have those cells selected, just press the F11 key on your keyboard and
02:42boom, Excel creates a brand new chart on a brand new worksheet.
02:47Now, it's a two column chart, so it doesn't look as fancy as the other one.
02:50But we could modify that if we want.
02:53The advantage here is that it's a lot bigger.
02:55And that's something also that we can modify.
02:57And we could change the location of this chart.
02:59We can change the location of the other chart if we want.
03:02We will talk about moving charts around also in this chapter.
03:05This hasn't deleted the chart or the data that we already have.
03:09If you click back here on the Data tab, you can see there is our original data,
03:13and there is our original chart.
03:15So if that's all you made, you are pretty much done.
03:17But later in the chapter we will talk about modifying and formatting our charts.
Collapse this transcript
Modifying a column chart
00:00Chances are that after you create a chart, you will want to make some changes
00:04and customize it to your liking.
00:05All the tools you need for that are under the Chart Tools section that appears
00:09when you have the chart selected.
00:11So I am going to click the chart and now I have the Chart Tools section on the
00:14Ribbon bar with three tabs underneath it.
00:16If you don't see that Chart Tools section, it's just because you don't have
00:19the chart selected.
00:20Now you can scroll down to see it a little better.
00:23I am just going to move the chart up here so we can see the whole thing.
00:26Before we start formatting it, let's say you decide that you want this chart to
00:30be on its own sheet.
00:31See down here we have our Data sheet, which is where all our data is, and then
00:36we have Sheet2 and Sheet3, which are blank.
00:38So make sure the chart is selected, click the Design tab here under Chart Tools,
00:43and over here on the right, click Move Chart.
00:45Now, right now it tells you that it's an object in this Data sheet.
00:49Click New Sheet, give it a name if you like, click OK, and Excel pops it
00:54onto its own sheet.
00:56And you might do this if you want to get a bigger printout.
00:58Maybe you just want to see it a little bit more clearly. Maybe you want to
01:01print out just the chart and you don't want any of the underlying data getting in the way.
01:04Now, if you change your mind and maybe you want this chart back on the
01:08Datasheet, sure, right now you could Undo, but let's say you save it, you
01:12close it, you go away for a few days and you come back, and Undoing is no longer an option.
01:16Well, what you do here is under the Chart Tools section, under Design, you click
01:20Move Chart again, and now we can make this an object in that Data sheet.
01:26Click OK and it comes back and you notice that Chart sheet has just been removed.
01:30So now we can move this back. Maybe we will stretch it out here a little bit.
01:34Right now we have our series is in columns.
01:38We have columns for Quarter 1, 2, and 3, and that's what's in the Legend.
01:42And if you are never really sure, oh, gee, is the series columns or rows, I don't know?
01:45The Legend is the giveaway.
01:47So right now we have a Quarter 1 series, Quarter 2 series, and so on.
01:50Let's click over here to Switch Column/Row.
01:54It's just a little easier to look at.
01:55It will be a little easier to modify in this exercise.
01:58So let's go and format this chart, so it looks a little bit more olivish.
02:03So with it selected, make sure the Design tab is active, and over here
02:07click that down arrow.
02:08And you will notice as you move your mouse pointer around, there's no
02:11updating to the chart.
02:13It's not dynamic here.
02:14So just click one that you like.
02:16This one is kind of olive colored.
02:18Now let's insert a title above the chart.
02:20So click the Layout tab.
02:22And over here click Chart Title, and let's choose Above Chart.
02:27So it gives us a placeholder, and let's click in here.
02:30I will just select that.
02:32You don't even have to delete; you can just type write over it.
02:34I will call this Billions of Gallons Sold.
02:39That's a lot of olive oil.
02:40Now, if you want to format it, you see you have this dotted line around it.
02:45The best thing to do is click off it, anywhere in the chart is okay, then click
02:49back on it. So now you have a solid border instead of a dotted border.
02:54Go up here to the Format tab and you see I have these WordArt Styles.
02:58Click that and you have all sorts of options here.
03:02And choose one you like.
03:03Don't worry about the color just yet.
03:05I will choose this one here.
03:06Well, that blue color doesn't really look very olivish. So we can change it.
03:11Go up here to Text Fill and choose maybe a green fill.
03:16And you see it keeps some of that formatting as well.
03:20We could also add a reflection if you like.
03:22Go up here to Text Effects > Reflection, and you could apply some sort of reflection.
03:27And if you roll your mouse over some of these options, you can see how it's changed.
03:31I am just going to take this one.
03:32It's kind of subtle.
03:34We could also format this sort of as an object and give it a background.
03:38Leave it selected, and over here under Shape Styles, click that down arrow.
03:42And if you roll your mouse over, you can see all these different shape styles.
03:46And I am going to go down here to this kind of rounded green look, and there it is.
03:51Now, if you decide you don't want the reflection on that rounded look, you could
03:54always go back to Text Effects, back to Reflection, and turn that off.
03:58Now, let's do one more thing here.
04:01Let's take a look at the numbers.
04:02If you notice here, New Jersey is the fourth bar and if you just roll your
04:06mouse over the fourth bar here, you can see there is New Jersey in the first
04:10quarter, New Jersey here, much higher number in the second quarter, and
04:14New Jersey back down to a smaller number in the third quarter.
04:18Well, we don't know why that's happening, but you might assume that in the
04:21second quarter that New Jersey number is an outlier, so you might want to
04:25highlight it a little bit more than just having it green, with all of the other bars.
04:29So here is what we do.
04:30Click that bar there, and when you click it, you notice that all three of
04:34the New Jersey series bars get selected, and over here in the chart also it gets selected.
04:40Click that Quarter 2 New Jersey bar a second time and just that bar is selected.
04:45So that's not a double-click.
04:47It's really a click, hesitate, and click again.
04:49So just that bar is selected.
04:51Now, right-click your mouse on it and from the pop-up menu, you want to
04:54choose Format Data Point.
04:56Now, if that says Format Data Series, it means that you don't have that one New
05:00Jersey bar isolated.
05:01It means you have the whole series isolated.
05:03So you will want to make sure just to get that one selected.
05:06So click Format Data Point.
05:08And over here choose Fill.
05:10And you see it says Automatic, because it's simply picking up the style that
05:13all of the bars have.
05:14So instead, let's choose maybe Gradient Fill.
05:18Nice sunset color, isn't it?
05:19And if you click here on Preset colors, there is other presets that you
05:23can choose, and of course you can customize these anyway you like and you
05:27can change the gradient atops, you can change the color, brightness, and transparency.
05:31I am just going to leave those the way they are, and click Close and I am going to deselect.
05:35So if you have to present this chart to someone and you especially want to show
05:39them that New Jersey number is an outlier, this is a heck of a lot more obvious
05:43than it is than the number in this Data sheet, wherever it is.
Collapse this transcript
Creating and modifying a pie chart
00:00When you want to show how individual numbers combine to make up a total, nothing
00:04beats a pie chart and Excel does them pretty well.
00:07So let's take a look.
00:09Let's select cells down the State column, and hold the Ctrl key down on your
00:14keyboard and let's drag on these cells down Column E.
00:17So we want to have the State header and the data underneath it and the Total
00:21header and the data underneath it selected.
00:25The only way to select cells that are not adjacent is by holding down the Ctrl key.
00:30Now in another movie I said that you should never select the total to go into a chart.
00:34Well, let me make that a little bit more accurate.
00:37You don't want to have the total selected and the data that combines the total.
00:42So in this instance, it's okay to select the total because we don't have
00:45the quarterly data.
00:46If we have the quarterly data, you wouldn't select the total.
00:49Pie charts are showing components of the whole, so that's why we really do want
00:53the Total column selected.
00:55So we are going to insert a pie chart.
00:57So we go to the Insert tab and here under Charts, click Pie, and I am going to
01:02choose a three-dimensional pie chart and boom!
01:05It just pops it onto the worksheet, and let's just maybe stretch it out here a little bit.
01:11We'll adjust the legend in the title in just a little bit, but let's deal with
01:15the pie itself first.
01:16If you put your mouse pointer on any of the Pie pieces, you can see which state
01:21it is and what the values are.
01:23If you roll your mouse pointer over this section, you can see it's New York and
01:27New York in this sheet has the highest number.
01:29So I want to rotate that to the 4 o'clock position.
01:32Click the chart. Now you don't have to click on New York.
01:34It doesn't matter, you can click anywhere on the pie chart and go to the Layout
01:37tab and over here choose 3-D Rotation.
01:40I'll just drag this out right here.
01:42You see we have the x-rotation.
01:45If you click that up arrow, you see the pie chart rotates.
01:49I am going to rotate that till it's about 160 degrees.
01:52That will put New York at about the 4 o'clock position.
01:57Let's take the Y angle, and let's boost that up to 40 degrees.
02:01I think it's just going to make it a little bit more visible and let's bump up
02:05the Perspective to about 20 degrees.
02:07You could use different numbers but I think these numbers will just make the pie
02:11chart look a little better, and now click Close.
02:14Now that New York is in the 4 o'clock position, let's say we want to pull it out
02:18from the rest of the pie.
02:19Click it and you see the entire pie is selected and now click it again.
02:23So that's not a double-click.
02:25It's a click, hesitate, click again.
02:28Now, drag out away from the rest of the pie and there you see the New York
02:32piece has been pulled out.
02:34If you change your mind, you want that piece pushed in, just take that piece and
02:37drag it in towards the center.
02:39Don't worry if you're dragging your mouse too far.
02:41You can't overlap the pieces. They won't smush.
02:43Well, let's say you decide that you want all the pieces separated the same amount.
02:48Well click off here in the background of the chart, put your mouse-pointer on
02:52the chart, click-and-drag out.
02:54Now if you find that you're still pulling just one piece out and not all of the
02:59pieces, let me undo because I want to be very clear on this.
03:03If you have it deselected and you click it so that all pieces are selected and
03:07then you pull out, you'll still end up pulling just one piece out.
03:10I am going to undo that again and click off here again.
03:12What you really want to do is put your mouse-pointer on any piece, it doesn't
03:17matter, press-and-hold down on the mouse button, don't release the mouse button,
03:21and now drag out away and now all of the pieces will be separated.
03:25You really have to be careful of that to get all the pieces separated.
03:28Now, I think this pie chart would look a lot better if the states were listed on
03:32the pie itself rather than in the legend.
03:35So let's remove the legend.
03:37Make sure the chart is still selected and in the Layout tab here, click Legend and None.
03:43See it says Turn off Legend?
03:44So now we have more room for the pie itself and now we can stretch this out a little bit.
03:48Put your mouse pointer on one of the four corner handles and just drag out and
03:52now we have some more room for it.
03:54Also let's take this title and just drag this title out of the way here and we
03:58can still make the pie chart a little bigger.
04:00When you put mouse-pointer just outside the chart, you may see this little pop-up
04:05here that says Plot Area, and when you see that Plot Area clicked, and now
04:09you have like an internal border, and there you can resize that a little bit as well.
04:14So you could resize the chart inside the chart area.
04:17So now let's put the names of the states and the values on the pie pieces themselves.
04:23Click up here on Data Labels and you have a few options here, but click down
04:28here on More Data Label Options, because we get a little bit more control here.
04:32So over here under Label Options, you want to choose Value and Category Name and
04:38where it says Show Leader Lines, deselect that and now click Close.
04:43Well, that's okay but maybe we want to change the font a little bit.
04:47So go up here to the Format tab and over here under Text Fill maybe choose
04:53white, so it stands out.
04:54And you could still adjust them a little bit more. You can go to the Home tab,
04:57you can choose different sizes if you want. If you want a different
05:03font, you can do that also.
05:04I will go down here and choose Comic Sans.
05:11Now, if you wanted, you can still push these around a little bit.
05:15If you put your mouse-pointer on one of them and drag, you notice that even if
05:18they are all selected you are not dragging all of them.
05:20You can position them however you like.
05:22You just need to be careful that if you click, your mouse pointer is on the
05:26edge, so you have that four-headed arrow mouse pointer when dragging them around.
05:32Okay, now let's format the title.
05:36Click the title and maybe I'll drag that over here, click in it, select the
05:42text, and now let's type Billions and Billions of Gallons.
05:51That's what we hope to sell anyway.
05:52You could just drag this into whatever spot you like and now let's format it.
05:58Click the Format tab and we could go back here to WordArt and I am going to
06:04choose this one over here.
06:05It doesn't really look very olivish, but once you have it selected, you could go
06:09back to Text Fill color, and choose something that's a little bit more green.
06:14And if you don't like any of these colors, you could go down here to More Fill
06:18Colors, move this out of the way, and now you have more colors to choose from.
06:22And click OK and if you like the reflection or don't like the reflection, you can
06:27go into Text Effects, turn the Reflection on and off, turn the Glow on and off.
06:31I am going to leave it the way it is and let's just deselect it and take a look.
06:36So pie charts can be a lot of fun to make, and you can see that just about
06:40anything you want to do with them is really just one or two mouse clicks away.
Collapse this transcript
Placing Excel charts into other Office applications
00:00You may have created the world's most gorgeous charts, but that doesn't
00:04necessarily mean your work is done.
00:06Now, everyone you're showing your charts to wants an Excel sheet. You might need
00:10to place your charts and maybe the underlying data into another document.
00:14You might need to put your work into another Microsoft application like Word or
00:17PowerPoint, but you also might need to put your work into a non-Microsoft
00:22application that maybe doesn't work with Excel all that well.
00:25So let's take a look at some possibilities.
00:28First, let's start here in Excel and just select the chart.
00:32Copy to the Clipboard. I'll press Ctrl+C and now let's switch into Microsoft Word.
00:38In Word, we have open this file called Insert Pie Chart and let's just paste.
00:44I'll press Ctrl+V to paste.
00:46Looks okay and down here I'll click the Options button and you see we have a
00:50few different options to choose from.
00:52I am going to choose the middle one here Use Destination Theme & Link Data.
00:57The operative phrase is Link Data.
00:59Now, let's take a look here.
01:01We can see Connecticut is 1,316, and I am using Connecticut just because it's
01:05the lowest number in this chart and we can see the numbers right in front of us.
01:09Let's switch back to Excel.
01:11Scroll down if you need to and we can see there is that 1,316.
01:15Just click on one of those numbers for Connecticut, and instead of 385 I'll
01:19make it 450, press Enter, and we can see both here in the data and over here in
01:25the chart, it changes to 1,381. Switch back into Word and now we can see
01:30immediately it's 1,381.
01:32So we didn't have to do very much and it works with Word great.
01:36Well, now let's paste into PowerPoint and see what happens.
01:38So switch into Microsoft PowerPoint, and here in PowerPoint we have open the
01:43file called Insert Pie Chart.
01:45So we have some text here on the left and we have placeholder. Click in
01:49that placeholder, so you have your cursor, and I still have that chart in the Clipboard.
01:53So again, all I have to do is paste, Ctrl+V, and it gets kind of squished
01:58because it's being stuffed into that placeholder shape.
02:02So I am just going to Undo. I'll press Ctrl+Z and I'll just delete this
02:06placeholder altogether.
02:08Place your mouse pointer on the border here, and when your mouse pointer turns
02:12to a four-headed arrow, click and then press Delete on your keyboard.
02:16Now, when you press Delete, if that placeholder is still there, just try
02:20clicking on the border a second time and deleting.
02:22So now we have no placeholder. You can click or even drag, you see there's
02:26no placeholder there.
02:27Now just paste, press Ctrl+V, and there we go.
02:31Now before we move the chart into position, let's do just what we did in Word.
02:35Click the Options button here. I'll choose Use Destination Theme & Link Data
02:39and let's move this into position and if you need to adjust the text, you can do that.
02:45Again, let's take a look at Connecticut.
02:47So we see Connecticut is 1,381.
02:50Let's switch back into Excel and Excel receives 1,381.
02:54Let's take that 450 and I will turn it back into 385. Press Enter.
02:58We can see up here in the data and in the chart, Connecticut is back to 1,316.
03:03Let's switch back into PowerPoint and we can see immediately it's 1,316.
03:08Well, this is all the great scenario, but what if we need to put the Excel chart
03:12into a non-Microsoft application that doesn't recognize Excel all that well?
03:17So let's switch into Excel and see what we can do.
03:20Select the chart, click on the Design tab, right over here choose Move Chart,
03:26and let's put the chart in a brand new sheet.
03:28You can give it a name if you like. Click OK.
03:31Now, because the chart is taking up so much more room, we might have to make
03:35some adjustments here.
03:36Let's start with title. Click that title, and we'll make it a little bigger, go
03:40to the Home tab, and you can choose a larger size.
03:45If you want to do it a little bit more interactively, make sure it's selected,
03:48and you could press Ctrl+ Shift+> on your keyboard.
03:51Ctrl+Shift+< will make it smaller, Ctrl+Shift+> will make it bigger.
03:56Let's do the same for the state titles.
03:59Click one and let's change the font.
04:01Again, you could use the shortcut if you like. You could move them into position
04:04also if you need to, and just click off here.
04:08Now, the trick is to turn this into a PDF.
04:11We are not going to print the entire workbook or even the underlying data. Just this chart.
04:16So go up to the File tab, down here to Save & Send, over here create PDF, here
04:23again create PDF, and Excel offers to call it placing chart.pdf, but let's
04:28take a look at some options. Click the Options button.
04:31We want to make sure that we are printing just the active sheet, click OK, and
04:35we might want to open the file after publishing just so we can get a look, click
04:38Publish, and now Acrobat opens up with our chart.
04:43I found that many non-Microsoft programs that don't work with Excel very
04:47well can still import PDFs pretty well, because PDF is just such a generic
04:52widely-used format.
04:53So we saw here some scenarios that you may run into and there are undoubtedly more.
04:58In general, my advice is this.
05:00When you need to get data from one application into another, first try doing
05:04it the normal way. If that doesn't work, what you want to do is find some
05:08intermediate format that they both use.
05:10Using a PDF is generally your best bet.
Collapse this transcript
13. Creating and Using Macros
Understanding macros
00:00When you use Excel a lot, especially if you're using it for the same tasks
00:04over and over again, you'll find that you're executing the same procedures repetitively.
00:10Well you might say to yourself, gee, there had got to be a faster and easier way.
00:13I keep doing the same thing over and over again.
00:16Well you don't have to do it because macros can do the repetitive work for you.
00:21Well let's talk about what a macro is.
00:23Macros are basically little bits of instruction code that run inside Excel.
00:29Now macros can be very simple or they can turn Excel into software development and
00:35there is even alone industry of people writing macros for Excel.
00:39Well, how do you create a macro?
00:41There are two basic ways.
00:42One way is that you can record your mouse clicks and keystrokes, kind of like
00:46recording a TV program and then playing it back.
00:49The other way is that you can write the program in a language called Visual
00:52Basic for Applications or VBA for short.
00:56It's a language that Microsoft developed to be used inside of Microsoft Office.
01:02So let's talk about the advantages of creating macros by recording your
01:05clicks and keystrokes.
01:07First is you don't have to know anything about programming and the other is
01:11that you already know Excel, so leverage that and let Excel record your knowledge for you.
01:17But there are disadvantages of only recording your clicks and keystrokes.
01:21One is that if you don't know Visual Basic you can't modify the macro
01:25once you've created it.
01:26If you want to modify it, you have to record it over.
01:30A macro that you record can't make any decisions.
01:33It can't say this number is high or this number is low or whether if the user
01:37name is Joe then execute a certain procedure.
01:41It really doesn't have any intelligence.
01:43Also if you make any mistakes when you're recording the macro, even if you
01:47correct them Excel is still going to record those mistakes and the corrections
01:51because Excel can't read your mind. It's only recording what you are typing and
01:55what you're clicking.
01:56So there are definite advantages to writing macros in Visual Basic.
02:00One is that you can modify the macros as much as you like or as much as
02:04you understand the VBA.
02:05The macros can make decisions for you.
02:07So a macro can say well if this number is greater than 1500 then display this
02:14message. There are some tasks that you can execute only by writing the VBA and
02:20once you know how to use VBA in Excel you know most of what you need to use VBA
02:25in Word or PowerPoint or Access or other Microsoft programs.
02:29Perhaps there are down sides to writing VBA code.
02:32The first of course is that you have to learn the VBA language and I will
02:35be straight with you.
02:36It's a bit of a learning curve. Second is that after you write the code you have
02:40to test it and you have to debug it, especially if you're going to give your
02:44macros to other people to use.
02:47Finally, there are some tasks that are very simple and it could actually take
02:50longer to program them than to record your clicks and keystrokes and even the
02:54best programmers will record clicks and keystrokes as part of their development.
02:59So now that we have an idea of what macros are all about let's go and create
03:03some and modify them.
Collapse this transcript
Recording and using a simple macro
00:00We're going to record a basic macro that take cells from one worksheet and
00:04deposits them at the bottom of this worksheet.
00:07Now because this is an Essential Training course we're only giving
00:11light coverage to macros.
00:12If you're interested in learning about macros in depth, check out some of the
00:15really great macro courses in the lynda.com library.
00:19But before we begin recording there is some housekeeping that we need to do first.
00:23To record macros we need to display the Developer tab on the Ribbon bar.
00:27Now on my computer here, you see there is no Developer tab. If you have the
00:31Developer tab on your computer you don't have to go through this step.
00:35But I am going to go here to the File tab to go to Backstage View, and down over
00:39here let's click Options and we have all the Options categories here on the
00:43left and let's click over here where it says Customize Ribbon.
00:46Now on the right, we have a list of all the tabs that are visible, Home, Insert,
00:50Page Layout and so on, and over here is the Developer tab.
00:53So just click there to put a check, click OK, and now you can see there's the
00:57Developer tab up there on the Ribbon bar.
01:00Click it we have all the Developer tools.
01:02And we also need to set security.
01:04So click down here on Macro Security and you want to make sure that the second
01:09radio button is selected.
01:10It should be selected by default, but I want to make sure that you don't have
01:13the first button selected and the idea is that there are nefarious characters
01:18writing macro viruses and Excel tries to protect itself against them.
01:22If you have at least Disable macros with notification, it means that when Excel
01:26sees that there is a workbook that contains macros, it will at least notify you
01:30that hey, there are macros here, do you want to enable them or not?
01:33If you have that first radio button selected, you won't even get a chance to run the macros.
01:37So let's click OK.
01:39And since we'll be taking data from another workbook, let's open that workbook now.
01:44So right now we have the recording macro.xlsx, so either press Ctrl+O on your
01:49keyboard to open or go to the File tab and Open, and in the Chapter 13 folder of
01:55your Exercise Files open up the northeast data file.
01:59And you can see the structure is the same as the workbook that we were just looking at.
02:03We have Order number, Region, Month, Size and Quantity.
02:06Now to switch back and forth between one workbook and another, easiest way I
02:10think is to press Ctrl+F6, hold down the Ctrl key and press the F6 key on your keyboard.
02:15That works in just about every single Windows program under the sun, not just Excel.
02:20Now for whatever reason you don't like Ctrl+F6, you could always go to go to the
02:24View tab and over here Switch Windows, whichever you prefer is fine, and let's
02:29go back to the Developer tab.
02:31One last thing we need to decide when recording macro is are we recording with
02:35relative references or not with relative references? In other words with
02:40absolute references. That's what this button lets us decide. Here's the idea.
02:44Right now I have Cell B3 selected.
02:47When I record the macro and I hit the down arrow let's say, no surprise I go
02:52one cell down into Cell B4.
02:54Well, when you are running the macro when you're running the macro what happens
02:57if you're starting on Cell C3?
02:59When you hit the down arrow what's going to happen?
03:01Are you going to go straight down to Cell C4?
03:05Well, that's a relative reference, or are you going to go literally to Cell B4,
03:11which is an absolute reference, which is what you recorded.
03:14So that's what you have to decide is will your navigation be exactly literally
03:19the cells that you are recording or will they be relatively going up or going
03:23down, left or right?
03:24For the purposes of this macro that we are going to record let's turn
03:27Relative References on.
03:29Okay, now we are ready to record, so click the Record Macro button and the
03:34Record macro dialog box comes up.
03:36So let's give it a name.
03:37I will call this getData.
03:40Now a macro cannot have spaces in the names. You can have either mixed case or
03:45you can use underscores.
03:47Let's apply a shortcut key.
03:49Because we are going to get data, I want to use a shortcut key of Ctrl+Shift+G.
03:54So click in this box here and type Shift +G like you are going to type a capital
03:59G, and you see it makes it Ctrl+Shift+G. Then you might wonder, hey Bob, why make
04:03it Ctrl+Shift+G, why not just plain old Ctrl+G, why make this more difficult?
04:07And the answer is that in Excel almost all of the Ctrl this and Ctrl that
04:11shortcuts are already used.
04:13Ctrl+G is the command to go to a particular cell.
04:17And if we override that here, then Ctrl+G will no longer be to go to a particular cell.
04:22But there are just about no Ctrl+ Shift anything in use in Excel, but I'll
04:27leave that up to you.
04:27That's personal preference.
04:28Now we also need to decide where are we storing this macro.
04:32Over here it says where to store the macro, and click that down Aarow and you
04:36have three choices, Personal Macro Workbook, New Workbook or This Workbook.
04:41Well, let me explain. The Personal Macro Workbook is a specific file that Excel
04:45keeps, and if you have macros in it, that is if you record macros and put them in
04:50the Personal Macro Workbook, they will always be available when you start Excel,
04:54because what Excel will do is it will open the Personal macro Workbook when it
04:58starts up, but it will open up hidden, so it doesn't get in your way and there
05:02is no danger of you messing it up.
05:03Well, if you don't have a Personal Macro Workbook, Excel will create it
05:07the very first time you select it.
05:09I think it's pretty cool.
05:10Now if you choose to store your macro in a new workbook Excel will literally
05:14create a brand new workbook and put your macro in there. You would use that
05:18option if you intend on distributing your macro to other people.
05:21Well, for the purposes of this exercise, let's keep the default of storing
05:25the macro in This Workbook, and we will do that because the macro that we are
05:29recording is really meant for yhis workbook, so there is no need to store it anywhere else.
05:34Now we could enter a description, and this is just kind of like a yellow sticky
05:38note that's attached to it, and we can type-in something like "Gets data from
05:42other sheet and deposits them here."
05:47Now when we click OK, then recording is live, so click OK.
05:52And how do you know recording is live?
05:54Up here you see the Stop Recording button.
05:56Now real important. When you are done creating the macro, you need to click that
06:01Stop Recording button, because if you don't, everything you do including opening
06:05and closing files and switching tabs and all that will be recorded, and
06:09eventually the recording session will abort, Excel may crash, you won't be very
06:14happy, so you just really need to remember to Stop Recording.
06:17Now since we are going to be navigating through this worksheet, I think it's a
06:21lot easier and a lot more accurate if we use some handy shortcuts, and that will
06:25give you everything you need to know.
06:27In general, when I do something like that, I find it's always best to start in
06:31the upper-left corner in Cell A1, so press Ctrl+Home.
06:35Now the advantage of that is when you playback the macro, it doesn't matter
06:39which cell you have selected. You could be selecting Cell Q4300 and you
06:45will immediately go back to Cell A1, so you can start selecting the cells if you want.
06:49Now the data that we bring in, we want that to start in Cell A13.
06:54Well, right now we wanted to start in Cell A13 because that's the next row, but
06:58once we have data from the workbook that we are bringing in, the next time we
07:02bring in data, we wanted to start at the first blank row there so it's not
07:06always literally A13.
07:08So how do we get there?
07:09Well, press Ctrl+Down Arrow.
07:11The first time you press Ctrl+Down Arrow, it goes to the starting line there.
07:16Press Ctrl+Down Arrow again.
07:18You see it goes to the end of that section, so you just press Ctrl+Down Arrow twice.
07:23Now just press the Down Arrow by itself. So you are absolutely 100% guaranteed
07:29that your cursor is now in the first blank available row.
07:33Now we already opened up that other workbook, so let's switch there.
07:37Now I am going to press Ctrl+F6. If you prefer, you could go to the View tab and
07:42use the Switch Windows command. So I will press Ctrl+F6.
07:45Remember this is being recorded by the macro, and like we did before, press Ctrl+Home.
07:50So it doesn't matter what cell is selected in this workbook when you open it.
07:54And we will do kind of the same thing.
07:56Press Ctrl+Down Arrow once. That gets to the column header. Well we don't want to
08:00select the column headers, so just hit the Down Arrow.
08:04All right, so we press Ctrl+Home, we then press Ctrl+Down Arrow, then we press
08:08the Down Arrow by itself.
08:10Now we want to get to the last used row.
08:13Now in this case, it's Row 12.
08:15In another workbook, it might be a different row.
08:17So we want to make sure that the macro gets exactly the data and doesn't leave
08:22out any data and doesn't get any blank rows.
08:25So that's why clicking with the mouse really isn't going to work.
08:28So press Ctrl+Shift+Down Arrow, so that selects to the end of this row.
08:34Now we need to leave these cells selected and also select to the right, so press
08:39Ctrl+Shift+Right Arrow.
08:41So you are now guaranteed to select all of the data here.
08:46Now we need to copy to the Clipboard.
08:47I will press Ctrl+C to copy. If you prefer you could go to the Home tab and
08:51click the Copy button. Either way will work.
08:53Okay, so we have this copied to the Clipboard. We see the marching ants.
08:57Now let's switch back. Again I will press Ctrl+F6, or if you want you could go
09:02to the View tab, and Switch Windows. It's your choice.
09:05Now our cursor is in the right spot, so all we have do is paste.
09:09So I will press Ctrl+V to paste. If you prefer you could go to the Home tab and click Paste.
09:15There we go. Now we want to clear off the Clipboard so press the Escape key and
09:20let's deselect all of these cells.
09:23So just press the Home key. It doesn't really matter which cell you have selected.
09:27All right, now we are ready to stop recording.
09:30So go to the Developer tab if you are not already there and click Stop
09:34Recording. Okay, great.
09:36Well we recorded the macro. How do we know it works?
09:39Well, let's bring in data from another region, so right now we have the Central
09:43Region, we have the Northeast Region. I am just going to press Ctrl+F6, here is
09:47the Northeast data. Let's just close this file, and let's go open another one.
09:51So you could press Ctrl+O or go to the File tab and Open.
09:55So we have Central, we have Northeast, let's open up Southeast. Double-click it,
10:00and you can click anywhere. It doesn't matter.
10:03Maybe go back here to the recording macro.
10:06Let's run the macro, press Ctrl+ Shift+G, and boom, there it is.
10:11So we have Central, Northeast, Southeast.
10:14Let's try it again.
10:15Just press Ctrl+F6 and let's close the Southeast data because we already have
10:19the data and let's Open and press Ctrl+O or go to the File menu and Open.
10:23And let's open up the West data.
10:26Okay, so it doesn't matter what cell you have selected, Ctrl+F6, let's switch
10:31back here, and again press Ctrl+Shift +G and boom, there's your West data.
10:37And notice there are different numbers of rows for each region.
10:40We have Central is a little. Northeast is more. We have a lot more West
10:44data than the others.
10:45So if you were to try selecting cells by clicking with your mouse you really
10:49wouldn't know which cell to select or how many cells to select, but by using
10:53those keyboard shortcuts, there is absolutely no chance for error.
10:56Well, as long as you do it right.
10:58Now one more thing. If we want to save this file with the macro in it, we can't
11:03just save with the .xls extension.
11:06We have to save this workbook in a macro-enabled format.
11:10So you could either press F12 to Save As or go to the File tab and Save As,
11:16and we could keep the name, but for the file type, click that drop-down and
11:20up here let's choose Excel Macro-Enabled Workbook, see it's a .xlsm, and then click Save.
11:28Now just one more thing. This isn't some exercise I simply dreamed up for this course.
11:32This is only a slightly simplified version of a real set of macros I
11:37once created for a client that used it every single day.
11:40What would happen is in the mornings they would import new data from an order
11:43system, using techniques that we covered in the movie on importing and
11:47exporting, and they would bring that data into a growing worksheet just like we had here.
11:53So if you completed this exercise, give yourself some congratulations.
Collapse this transcript
Editing a macro
00:00This workbook contains a macro that retrieves data from a separate file, copies it,
00:05and deposits it at the bottom of the current file.
00:08It just runs as a one-shot deal. It doesn't make any decisions. It doesn't ask for any
00:12additional information.
00:13If you do the exercise in the movie on recording a macro, you already know
00:17what its procedure is.
00:19What we will do in this movie is we will add three lines of VBA code to the
00:23macro that will ask your name
00:25then enter it at the top of the worksheet, so that the next person who runs the
00:29macro will know who used it last.
00:31Before we run the macro there are a couple things we have to do.
00:34Over here, if you have this yellow bar that says Security Warning,
00:38that's just Excel's way of telling you that, hey, there are macros in here
00:42that could be dangerous.
00:43Do you really want to run them?
00:44So click Enable Content.
00:47If you have that yellow bar and you don't enable content, you can't use the macros.
00:51Second thing we need to do is we need to open up the workbook that contains the
00:55data we are going to retrieve.
00:57So you could either press Ctrl+O to Open, or go to your File tab and choose Open.
01:03And in the Chapter 13 folder of the Exercise Files, let's open up this file here
01:08called overseas data.
01:09And you see it's the same structure as the other ones.
01:11We have an Order number, the Region, Month, Size and Quantity.
01:15So let's switch back to the other one.
01:17I'll press Ctrl+F6, or if you prefer you can go to the View tab and switch windows.
01:24So let's go and edit the macro.
01:26Go to the Developer tab, and there are a few ways we can do this.
01:30Over here in the left we have the button for the Visual Basic Editor.
01:33We also have a Macros button. Click that Macros button.
01:36And this shows you the macro that we wrote.
01:38It's called getData.
01:40And to edit it, just click this Edit button.
01:43It brings us into what looks like another computer program, and really it is,
01:48and you see up here it's the Microsoft VB Editor.
01:51This VB Editor comes with Microsoft Office.
01:54You don't have to buy it separately, but you do have to install it.
01:58So if you don't have the VB Editor, you'll have to go and install it from
02:02your original disks.
02:03Now let's take a look at the code.
02:05I am just going to maximize this window here so we can see what's going on.
02:08A couple of things is the macro starts off with this keyword Sub and it ends with End Sub.
02:14Sub stands for sub-procedure.
02:16All the code that you do in the macro has to be between the opening Sub and the ending Sub.
02:22If you put any code before or after the sub-procedure, it'll give you an error.
02:26The first few lines here are in green.
02:28And we see they start off with an apostrophe or call it a single quotation mark.
02:32These are comments.
02:34They are kind of like yellow sticky notes.
02:36It's information for you or anyone else who's going to read the code, but Excel
02:40doesn't try to execute it.
02:41Here is the code itself.
02:42And I am not going to go into every single line of detail, but you can see it's
02:47pretty much human readable.
02:48Range A1 Select, you can probably figure out that it means to go to cell A1.
02:55And that's what we did for the first task of that macro.
02:58So let's add those lines of code.
03:00Click at the end here where it says ActiveCell.Select.
03:03Just click to put your cursor and hit the Enter key once or twice.
03:07Blank lines are perfectly okay.
03:09So we want Excel to ask us what our name is.
03:12Now when it asks us our name, it'll display a dialog box.
03:17When we type in our name and click OK, our name has to get stored in a variable.
03:22So the variable that we will create will simply be called "your name."
03:26So type yourName equals and now we have to display that dialog box.
03:33So type in InputBox.
03:36Be careful. InputBox has to be a one word.
03:39Open up your parenthesis.
03:41Open up your double quote, and let's type in, What is your name?
03:48Close the double quote, close the parentheses.
03:50Now after you type your name and click OK, Excel has to decide where to put that information.
03:57So press Enter and we are going to say range and then open up the parentheses.
04:02Open up the double quote and say a3.
04:04This is not case sensitive.
04:06Close the quotation marks, close the parentheses, type .Value.
04:11By the way notice as you're typing the word value, Excel recognizes that it's
04:15a legitimate keyword.
04:16So that's how you know you're doing it right.
04:18So you can type a or hit the tab key, and it will continue.
04:22So let's say range("a3").Value = and then open up the quotation mark and let's
04:27say Data retrieved by, type a space, type the closing quote.
04:34And now what we wanted to say is "Data retrieved by Bob" or whatever your name is.
04:39So we will use an ampersand to append the data.
04:43Now we need to append that variable that contains your name, which we did in the
04:46line above, which is yourName. One more thing. Press Enter.
04:51Notice when I press Enter, the word range on the previous line went from
04:55lowercase to uppercase.
04:56That's a little bit of the VBA syntax checking.
04:59When you see it's changing case on you like that, that's also a way that you
05:02know that your syntax is right.
05:04And now we'll type range, open up the parenthesis, open up the double quotes, a1,
05:11close the double quote, close the parentheses .Select.
05:13And now when I type se it recognizes the word select.
05:17You see there is up that little flying green brick next to it.
05:20That means it's something that's actually going to do.
05:21And I'll just press the Tab key and let Excel fill in the rest.
05:25And just click anywhere else here.
05:28And you'll notice that when you do, if you type that range in lowercase,
05:31it will turn to uppercase.
05:33That's all we have to do.
05:34Now we want to get back to Excel.
05:36And you don't have to save what you did here, because this macro is stored in the workbook.
05:41So there is no need to save the macro separately from saving the workbook.
05:45Now one or two things you could do.
05:47You could leave this VBA Editor open and go back to Excel, or you can close it.
05:52I just want it out of the way.
05:53So I am going to click the Close button there.
05:56Now we'll run the macro.
05:57Click in here and you could use the shortcut to run the macro, Ctrl+Shift+G in this case.
06:02Or you could go up to the macros button here and run the macro.
06:07So you have two ways of doing it. So I'll click Run.
06:10So it puts it in.
06:11It asks, what is your name?
06:12Type my name is Bob, click OK and there it is.
06:16It deposits "Data retrieved by Bob," and now you can see it put the cursor in cell A1.
06:22If you scroll down, you can see down in the bottom there is all the data from
06:27the Overseas region.
06:28So you can see that even though we made just a small modification, you could
06:33see that VBA allows you to gather information from the user while the macro is running.
06:37It allows you to output data to any cell in the worksheet.
06:40And it also allows you to concatenate a premade phrase with the
06:44information that you entered.
06:46So hopefully you'll find this useful for your own projects.
Collapse this transcript
14. Customizing Excel
Customizing the Quick Access toolbar
00:00As you use Excel you will probably find that there are some features you use
00:04more than others and maybe some features you don't use it all.
00:07To make it easy to get to the features you use most often, you can pin them
00:11to this little toolbar up here called the Quick Access toolbar or the QAT for short.
00:17The QAT works exactly the same way in all the office 2010 applications.
00:22So if know how to do it in Excel then you already know how to do it in Word,
00:26PowerPoint and the others.
00:27Now by default the Quick Access toolbar has three commands.
00:31You have Save, Undo and Redo.
00:33So here are few ways that you can add commands to the QAT.
00:37Click this down arrow here and here are some pretty common commands that
00:41you might want to use.
00:41So I will just click this one, New. That will let you create a new workbook and
00:46let's click it again choose Open. That will let you open a workbook.
00:50So it's the same thing as pressing Ctrl+ N or in this one pressing Ctrl+O or same
00:55thing as going to File tab and choosing Open or New.
00:59But what if you want to put command up on the Quick Access toolbar that's not
01:02in that quick little pick list?
01:04Let me show you a couple ways of doing that.
01:06Click that down arrow again and go down here and choose More Commands.
01:10Now this brings you to the Excel Options dialog box and we are in the Quick
01:13Access Toolbar section.
01:15It's the same things if you click the File tab and then gone down on the bottom
01:18to choose Options and choosen this. Well it's just a little faster way.
01:21So here you can see all the commands you have on the Quick Access toolbar and
01:25let's say drawing shapes is a task that you need to do frequently.
01:29What you see over here at this drop-down list is right now set to Popular Commands.
01:33Let's leave it the way it is for now and just scroll down to the bottom and just
01:38double-click Shapes and if we double- click Shapes you see it gets put over here.
01:42Now, Shapes is at the bottom, which means it will be all the way on the right
01:46side of Quick Access toolbar.
01:48Let's say you decided you want Shapes to be the first item in the Quick Access
01:51toolbar. Make sure it's selected and then click the up arrow until it gets to the
01:55top and then down here and click OK.
01:57So now you can see Shapes command is there. Let's check it out.
02:01Click the down arrow, choose any of the shape you like, and drag and it works.
02:05Just as that you had taken shapes from the Insert tab.
02:09Well we don't need that shape right now so I am just going to delete it.
02:12Now, I have a rather large worksheet open here on the screen and one thing you
02:15might do with large worksheets is set the print area.
02:18So let say for example, I wanted to print maybe just those few cells.
02:24Well you may know already you can go to the Page Layout tab choose Print Area
02:28and then click Print Area but if that's something you do often here's the easy
02:32way that we can put this up in the Quick Access toolbar.
02:35When you have the Set Print Area here visible, click the right mouse button on it
02:39and choose Add to Quick Access toolbar and you see here is on the right.
02:44So click it and now we can see the print area is set. We see the dotted line.
02:48Now let's say you decided that you wanted to display the QAT below the Ribbon.
02:52Click the down arrow and over here choose Show Below the Ribbon and I have it below the Ribbon.
02:57I'll put it back click the down arrow, Show Above the Ribbon, and there it is.
03:02If you decide you want to remove something from Quick Access toolbar it's just
03:06a right-click. Let's say we don't need the Shapes anymore.
03:09So right-click it choose Remove from Quick Access toolbar and it's gone.
03:13So the ability to customize the Quick Access toolbar is another way that Excel
03:18puts almost everything you need within one or two clicks.
03:21If you ever tried customizing the toolbars in the 2003 or older versions,
03:26you will probably appreciate the way it's done in the 2010 version.
Collapse this transcript
Customizing the Ribbon bar
00:01In addition to customizing the Quick Access toolbar up here, Excel allows you to
00:05customize the entire Ribbon bar.
00:08This is a new feature in Excel 2010 and it works the same way in all of the
00:12other Office 2010 applications. And I think you'll like this.
00:16There are a couple of ways to customize the Ribbon bar.
00:18Let me show you one way.
00:19You go over here to the File tab and you click it.
00:22Go down here at the bottom to Options and in all the categories here,
00:28choose Customize Ribbon.
00:30Now let's cancel out of here for a second because there's a faster way of doing this.
00:35Regardless of which tab you have visible, click your right-mouse button
00:38so we're on the Ribbon and then from the pop-up menu choose Customize the Ribbon.
00:43So let me explain what's going on here.
00:45On the right side are all of the tabs that are available in Excel on your computer.
00:51On the left side are all the commands and the tabs in Excel's inventory.
00:56So most of the tabs are probably turned on. You may have a tab that's turned off.
01:00In my case, the Developer tab is turned off, but before we start adding and
01:04removing things from the tab, let's say you simply wanted to reorder what's on the tab.
01:09Maybe you're doing a lot of collaboration and you decide that you want the
01:13Review tab moved to the top.
01:15So you can select it and click the Up arrow or you can simply grab it with your
01:20mouse and drag it to the top.
01:23Now click OK and now you see the Review tab is the first tab instead of the Home tab.
01:28You can click it and it's the same Review tab you know and love.
01:31I'm just going to go back to the Home tab here.
01:34Well, once again right-click somewhere on the Ribbon bar, go down here to
01:37Customize, and I'm just going to drag this out of the way here for a second,
01:41because I want to bring your attention to the groups here in the Ribbon bar.
01:45If you don't have the Home tab open, you can open it and take a look here.
01:49These are the groups.
01:50So we have Clipboard, Font, Alignment, Number and so on, and that's what
01:53it's showing you here. Clipboard, Font, Alignment.
01:56And if you expand any of these by clicking the plus sign you can see the
01:59items that are in there.
02:00You notice they're grayed out and they're grayed out because you cannot
02:03customize a built-in group on the Ribbon bar. Excel just does not let you to that.
02:09So what if we wanted to add just a single command to one of our existing tabs?
02:15Well, let's do this.
02:16Let's click this drop-down arrow here where it says Popular Commands by default,
02:20and let's go down here and choose Tool Tabs and in the Tool Tabs list, let's go
02:26down here to Drawing Tools and let's open up Insert Shapes.
02:30Now let's say you decide that maybe you need to insert text boxes often.
02:35Now if you tick that text box and you hit Add, it's going to give you an
02:38error because you can't add this text box or any single command just to the Ribbon bar.
02:45But what you can do is you can take this Insert Shapes group and add the
02:51group to the Home tab.
02:52So select the Insert Shapes group, click Add, and now that gets added to your Home tab.
02:59And just like with the tabs themselves, you could reorder the groups so you
03:03could hit the up arrow or maybe take it and drag it up.
03:06So I'm going to leave Insert Shapes at the top of the Home tab.
03:10Click OK and there it is, as though it were born there.
03:14So I'm just going to right-click and now let's go back to customizing.
03:18But what if you really did want to insert single commands?
03:21What you can do is you can create your own groups under existing tabs.
03:27You could also create an entire new tab and that's what I'm going to show you here.
03:31With the Home tab selected, click New Group and you see it's called New Group
03:36and select it and click Rename because we want to have maybe a more friendly name
03:41and let's call it Miscellaneous Tools and click OK.
03:46So now we could go back to this drop- down list, go down here to tool Tabs, go
03:55back to Drawing Tools.
03:57Go back to Insert Shapes.
03:58Now remember we really, really wanted that text box.
04:01Well, with these Misc Tools selected, you can select that text box, click Add and now it gets added.
04:07Let's add a couple of other tools.
04:09Maybe let's open up Word Art Styles and choose Text Fill and Add. Maybe Format
04:15Text Effects and Add.
04:18And let's say you like SmartArt so maybe we'll go up to Design and if you're
04:21working a lot with SmartArt maybe you're changing their layouts.
04:24So I'll choose Change Layout and add that.
04:28Now, I'll click OK and there you see your Misc
04:31Tools are here and click text box and now you can draw one.
04:35I'm just going to press Ctrl+Z to undo.
04:36We don't really need that here.
04:37So let's go back into the Customize dialog box, click your right-mouse button
04:42and go back to customize the ribbon.
04:45So what if you want to create your own tab from scratch?
04:48Go down over here and click New Tab and see it gives you a new tab with a new group.
04:54Well, let's give it a name.
04:56This time I'll right-click it and choose Rename and I'll call this Bob's Faves
05:02and click OK and I'll tkae this new group and I'll right-click it and rename it
05:08and I'll call it maybe Important Stuff and click OK.
05:14Now we can go and populate the tab and we can populate the group.
05:19So go to that down arrow and here's a really handy item. Commands not in the Ribbon.
05:24These are commands you really don't see very often and let's say you need to
05:28insert page breaks a lot.
05:30So let's scroll down here to the letter I because page breaks are things that you insert.
05:36Make sure your Important Stuff group is selected.
05:38Choose Insert Page Break and click Add and now it's added.
05:42Maybe let's put one more thing in.
05:44I'll scroll down here and let's say you often need to email your workbooks to someone.
05:49So I'll choose this Send to Mail Recipient and click Add and that gets added.
05:54What if we want to insert groups that already exist?
05:57So let's go up to this drop-down list and let's go down to Main Tabs.
06:03So these are Excel's general default tabs and maybe let's open up Page Layout
06:10and maybe Page Setup is something you use often.
06:12So select Page Setup, click Add, and you see Page Setup as a pre-made group will
06:18co-exist with Important Stuff so you'll have an Important Stuff group and you'll
06:21have a Page Setup group.
06:22Maybe let's put in one more.
06:23Maybe I'll go the View tab and you like using Workbook Views and we've talked
06:28about Workbook Views in this course.
06:30So I'll choose Workbook View, click Add, so that's another group.
06:33Okay, that's fine, click OK.
06:34So now you have your Custom tab, click it, and here are the individual commands
06:39you added and here are the two pre-made groups that you added and they both work
06:45just the same way as they would if you went to them the normal way, but it's just
06:50a little more convenient.
06:51In fact, let's use one.
06:52I'll just click a cell here and Insert Page Break and now you can see the lines
06:57in there so you know that really did insert a page break.
07:00Now let's say you do all these customizations on your computer and you need to
07:04do the same customizations on multiple computers.
07:07Maybe you're supporting a department and you need to put the same customizations
07:11on maybe two dozen computers.
07:13Now you could be there all night going through the same customization routine
07:17over and over again.
07:18So, what you can do is you could save these customizations as a profile and
07:22then import that profile on to all the machines. So that could save you loads and loads of time.
07:27Here's how you do that.
07:28Again right-click anywhere on the Ribbon bar and choose Customize the Ribbon and
07:33down over here choose Import or Export. Choose Export all customizations, give it
07:40a name if you need, and you notice that the extension is .exportedUI User
07:44Interface, and click Save.
07:47So let's say you've done that and now you're at another computer and you want to
07:51load the customizations.
07:52Simply go over here to Import/Export, choose Import customizations file, and then
07:57you can simply double-click that profile that you created before.
08:01I'm just going to cancel out.
08:03Well, just one last thing.
08:04What if you've made all these customizations and you decide you want to
08:07remove all of them?
08:08Go down over here to Reset > Reset All Customizations and if you reset all
08:13customizations, it'll wipe out all the customizations you made to the Ribbon bar
08:17and the Quick Access toolbar so it'll make Excel look like it did when you
08:21first installed it.
08:22Now make sure that's what you really want to do because there is no undo for this.
08:26So I'll click Yes, click OK, and now my Ribbon bar is back to the default.
08:32My Quick Access toolbar is back to the default.
08:35So as you're using Excel you might want to think about what commands you use a
08:39lot and then go and customize Excel and save yourself a bit of time and effort.
Collapse this transcript
Setting Excel options
00:00In addition to customizing the Ribbon bar and Quick Access toolbar on top of the
00:05Ribbon, Excel gives you a lot of control over the way it behaves.
00:08I want to show you few of its settings.
00:10Before we do, there's one other thing I need to show you.
00:12As you may have noticed, if you have something selected in a cell like this,
00:19you have this little ghosted out toolbar here, and it's called the Mini toolbar.
00:23So, if you have something selected like this, you can very quickly make it
00:27bold or italic or change the color of it without having to go all the way up to the Ribbon bar.
00:32Now, some people like it, some people don't, and one of the first items in
00:37Excel's Options is to turn that Mini toolbar off.
00:39So, I just want you to keep that in mind.
00:42So, let's go up to the File tab to get into Backstage view, and down here
00:45towards the bottom click Options.
00:48So, over here on the left we have all these categories.
00:50And the General category is selected there by default. So here it is, Show Mini
00:55toolbar on selection.
00:56Now, let's deselect that, click OK and select anything else.
01:02I'll just double-click this and now you see the Mini toolbar isn't there.
01:06You can sort of have it both ways because when you have something selected,
01:09you can still right-click and the Mini toolbar is going to come up regardless.
01:13So that way you can have it if you like it and if you don't.
01:16Let's just escape out of there and go back to the File tab, back to Options.
01:20Now, if you're not sure what any of these items are, you can roll over one of
01:25these little information icons, and it gives you some information.
01:29The General tab gives you what are probably the most common customizations
01:32you might make, like what font and size and view do you want to use, how many
01:37worksheets in a new tab, and also what's your username. I'll leave everything
01:41else the way it is.
01:43Now, let's go to the Formulas section.
01:45It's kind of rare that you'd want to change anything here.
01:48But I do want to call your attention to this Workbook Calculations.
01:52If you have a very large worksheet, maybe your worksheet has links to a workbook
01:56that's on a slow running network.
01:59Every time you make a change to your worksheet, it could take a long time for
02:03your worksheet to update and for the calculations to take place.
02:06And keep in mind Excel recalculates the workbook every time something happens.
02:11If you change a number, if you enter something in a cell, if you change
02:16something in a cell, the worksheet recalculates.
02:18So, if that's really slowing things down, you can turn Workbook Calculation to Manual.
02:24And then when you make your changes, you won't see them immediately until you
02:28force the recalculation.
02:29And you can force the recalculation simply by pressing the F9 key on your keyboard.
02:34The rest of the items in here you could probably leave alone.
02:38Let's go over here to Proofing.
02:40This Proofing is pretty much the same thing that you would see in Word or PowerPoint.
02:44Then you can see it helps you spell things, helps you print things out.
02:48But I want to show you something that I think is pretty cool is AutoCorrect.
02:51So let's click AutoCorrect Options.
02:54This will let you create custom abbreviations and have Excel expand those
02:59abbreviations for you.
03:00Let me show you what I mean.
03:01Let's say you're tired of typing Two Trees Extra Virgin Olive Oil Company.
03:06You can type in ttoc and I'll just press the Tab key, and every time I type in
03:11ttoc this is going to replace it with Two Trees Extra Virgin Olive Oil Company.
03:22A bit of a mouthful. Much easier to type ttoc.
03:24So, click Add, click OK, click OK.
03:29So, now let's see where it says Payroll.
03:31Double-click after the word Payroll and we want to say Payroll for. Instead of
03:36saying Payroll for Two Trees blah, blah, blah, just type ttoc and hit Enter and
03:40it fills in the rest. Let's go back.
03:43File tab > Options, so all of that is under Proofing.
03:47Let's go to the Save tab and this will tell you what is the default file
03:52location, where will you open things up.
03:54Right now, I have the set to open up in the Chapter 13 folder of the Exercise Files.
03:59Those people will simply set this to the Documents folder or the My Documents
04:04folder depending upon which version of Windows you're running.
04:06And the AutoSave is also pretty handy, and what the AutoSave will do is every
04:1010 minutes or whatever number you have in here, Excel will make a temporary backup copy.
04:15So, if Excel crashes or the computer crashes or something happens, the most that
04:20you will lose is 10 minutes of work.
04:22Now, that doesn't mean that Excel is going to save your work against your will.
04:26It's simply making a backup copy and if you save your work that overrides
04:29anything that's in this auto recovery.
04:31Now, if your computer is running slowly or again, you are on a slow running
04:36network or something to that effect, you can turn off this Save AutoRecovery and
04:41it will speed up Excel a little bit, but just keep in mind if you do that you're
04:44sort of working without a safety net.
04:46Let's go over here to Language.
04:48If you need to use Excel in a foreign language or you have a foreign language
04:52keyboard, this Language section will help you do that.
04:55Let's go to the Advanced section and over here some people like to change this.
05:00After pressing Enter what happens to your cursor?
05:03Well, you know already that the currency goes inwards, but maybe I like it
05:06to go to the right, maybe I like it to go up, you can change that and scroll
05:10down here a little bit.
05:11You have some Clipboard options here.
05:14If you don't like that little Paste Options button that comes up at the bottom
05:18when you paste data, you want to turn it off, you can turn it off this way, and
05:22let's scroll down here.
05:23This is something that I generally set on any of my computers, where it says Show
05:27all windows in the Taskbar.
05:28I generally turn that off and here's why.
05:30If you have multiple Excel workbooks open, you could switch them by going to the
05:35View tab and choosing Switch Windows, or you could also switch workbooks by
05:39pressing Alt+Tab on your keyboard and switch from one workbook to the next.
05:43But that's okay if Excel is the only program you have running.
05:47But if you have a lot of programs running, maybe you have Excel, and Word,
05:50and email, and web browser, and who knows what else, then when you try to
05:54Alt+Tab from one workbook to another, you have to Alt+Tab through all of
05:58those other programs as well.
05:59But if you deselect that, Show all windows in the Taskbar, then Excel will
06:03occupy only one spot on the Taskbar, and you cannot Alt+Tab between one
06:09workbook and another.
06:10But if you know that you can press Ctrl+F6 to switch from one workbook to
06:15another or you know you could go to the View tab and choose the Switch Windows
06:18button to go from one window to another, then you're not stuck and you can move
06:23from one workbook to another pretty quickly.
06:25But again, that's personal preference.
06:26I leave it up to you.
06:28And let's scroll-down here, and you have some display options.
06:32You can set display options for the workbook.
06:34You can set display options for the particular worksheet that you're on. Scroll down here.
06:40Under Formulas where it says Enable multi -threaded calculation, it's generally a
06:44good idea to turn that on.
06:46That's a new feature in Excel 2010.
06:48If you're running a 64-bit version of Windows, and you're running the 64-bit
06:53version of Excel 2010, multi-threaded calculation will make Excel run faster
06:59when you have some complicated calculations to do.
07:01Scroll down here a little bit, and here are some other options, mostly personal
07:06preference, and these two options up here are good for accessibility settings.
07:12So, if you have any physical difficulty using the computer, you might want
07:15to use these options.
07:17These other four options here, we've viewed already in other movies in this course.
07:23Customizing the Ribbon, customizing the Quick Access toolbar, customizing
07:28 the Add-Ins.
07:29The Trust Center we saw briefly in another movie and what this will do is this
07:34gives you some information on Microsoft's privacy settings.
07:38You might opt into Microsoft's Customer Experience Improvement Program and what
07:42that'll do is as things are happening, maybe things are going slowly, maybe
07:46you're executing some unusual routines, who knows, Microsoft will collect
07:52anonymous data to help them improve the next version of Excel or perhaps the
07:56next update to Excel.
07:58This gives you an explanation of what kind of information they are
08:02collecting from you.
08:03Now, there are so many options here.
08:05It can really seem overwhelming, but honestly, you shouldn't have to mess with
08:09most of these settings, and they're all here because there are so many
08:12millions of Excel users all over the world, the program has to cover all
08:16circumstances that might crop up.
Collapse this transcript
Conclusion
Goodbye
00:00So that concludes our course on Excel 2010 essentials.
00:04I hope you enjoyed taking this course as much as I enjoyed presenting it to you.
00:07Excel can be complicated at times, but the more you use it, the more you'll
00:11appreciate all it can do it for you.
00:13So until next time, take care!
Collapse this transcript


Suggested courses to watch next:

Excel 2010 Power Shortcuts (3h 43m)
Dennis Taylor


Excel 2010: Charts in Depth (3h 38m)
Dennis Taylor


Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 104,069 instructional videos.

get started learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 2,025 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.

preview image of new course page

Try our new course pages

Explore our redesigned course pages, and tell us about your experience.

If you want to switch back to the old view, change your site preferences from the my account menu.

Try the new pages No, thanks

site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked