Posts

Go To Special in Excel: Select Blanks, Errors and Formulas in Seconds

Image
  Go To Special in Excel: Select Blanks, Errors and Formulas in Seconds Go To Special lets you select every cell of a certain type in one go, such as all the blank cells, all the cells showing errors, or all the cells containing formulas. To open it, press Ctrl+G, click the Special button, pick the type of cell you want, and click OK. Excel selects every matching cell in your range at once, and you can then fill, format, copy or delete them together. A colleague once sent me a customer export with a blank row between every single record. About nine hundred rows, so roughly four hundred and fifty blanks. I scrolled down and deleted them one at a time, right-clicking each blank row and choosing Delete. It took me the better part of half an hour, and when I finished I found I'd missed a few and had to hunt for them. I found out about Go To Special not long after, and the same job now takes about ten seconds. I try not to think about the half hour. How do I open Go To Special? ...

Named Ranges in Excel: Give Your Cells Names You'll Actually Remember

Image
  Named Ranges in Excel: Give Your Cells Names You'll Actually Remember A named range is a label you give to a cell or a group of cells, so you can use the name in a formula instead of a cell address. To create one, select the cells, click the Name Box (the small box to the left of the formula bar), type a name such as SalesTotal, and press Enter. After that, a formula like =SUM(SalesTotal) does the same job as =SUM(C2:C140) , and is far easier to read. I once opened a workbook I'd built about six months earlier and found a formula that read =SUM(Sheet2!$C$5:$C$140)*Sheet4!$B$2 . I knew I'd written it. I had absolutely no idea what it did. It took me about twenty minutes of clicking between sheets to work out that the first part was total revenue and the second part was a tax rate sitting in a cell I'd never labelled. That was the day I started naming things. A formula that says =Revenue*GST_Rate explains itself, even to the person who wrote it half a year ago. ...

How to Print an Excel Sheet on One Page (Without Tiny Text)

Image
  How to Print an Excel Sheet on One Page (Without Tiny Text) To fit a sheet on one page, go to Page Layout > Scale to Fit, set Width to 1 page and leave Height on Automatic. That squeezes all your columns onto one page width while letting the rows run onto as many pages as they need. For a wide sheet, also switch the orientation to Landscape first, so Excel doesn't have to shrink the text as much. I once printed a twelve-column report for a team meeting and handed out the copies without checking them. The last two columns, the ones with the totals, had spilled onto separate pages at the back, so everyone was holding a stapled report with the most important numbers missing. I ended up reading them out from my laptop, which wasn't how I'd planned to run the meeting. Since then I always look at the print preview before I print, and it's now a habit I'd recommend to anyone. What's the quickest way to fit everything on one page? There are two routes, and ...

Excel Slicers: Click-to-Filter Buttons for Tables and Pivot Tables

Image
  Excel Slicers: Click-to-Filter Buttons for Tables and Pivot Tables A slicer is a set of clickable buttons that filters a pivot table or an Excel Table. To add one, click inside the table or pivot table, then choose Insert > Slicer (or Table Design > Insert Slicer for tables), tick the column you want to filter by, and click OK. Clicking a button filters the data instantly, and the highlighted buttons show you exactly which filters are switched on. I started using slicers after a meeting where the numbers on my report didn't match anyone else's. The cause was embarrassingly simple. I'd used the filter dropdown on a column earlier that morning, left it set to one region, and forgot about it. The little funnel icon in the column header is easy to miss, and nothing else on the sheet tells you a filter is active. With slicers, the selected buttons are highlighted right on the sheet, so a filter I've forgotten about is much harder to overlook. I still make the odd...

Goal Seek in Excel: Work Backwards to Find the Number You Need

Image
  Goal Seek in Excel: Work Backwards to Find the Number You Need Goal Seek works backwards from a result you want. You tell Excel which formula cell should reach a target value, and which input cell it's allowed to change, and Excel adjusts that input until the formula hits the target. You'll find it under Data > What-If Analysis > Goal Seek. A manager once asked me, quite casually, how many units we'd need to sell to hit a profit target for the quarter. I had a perfectly good profit model already. So I did what I'd always done: typed a guess into the units cell, looked at the profit, typed a higher guess, then a lower one, and carried on like that for about a quarter of an hour, narrowing in on the answer. A colleague leaned over, said "Goal Seek," and had the answer in about ten seconds. I've never forgotten how silly I felt, and I've also never guessed and checked since. How do I use Goal Seek? Goal Seek has three boxes, and the key is...

Flash Fill in Excel: How Ctrl+E Splits and Combines Text Automatically

Image
  Flash Fill in Excel: How Ctrl+E Splits and Combines Text Automatically Flash Fill spots a pattern in what you type and fills the rest of the column to match. Type the result you want in the first row next to your data, start the second row or press Ctrl+E, and Excel completes the whole column for you. It works on text, so it's ideal for splitting names, joining pieces together, or reformatting things like phone numbers, without writing a formula. One afternoon I had about 600 customer phone numbers pasted in as a single block of digits, like 0412345678, and a request to make them readable as 0412 345 678 for a mail-out. My plan was to build a formula with LEFT, MID and RIGHT, which would have worked fine. A colleague walked past, watched me typing the formula, and said, "Why not just type the first one how you want it and hit Ctrl+E?" I did. The other 599 filled in before I'd finished sighing. I'd had Excel for years and never touched Flash Fill, mostly beca...

How to Record a Macro in Excel (No Coding Needed)

Image
  How to Record a Macro in Excel (No Coding Needed) A macro is a recorded set of steps that Excel can replay on demand. To make one, turn on the macro recorder (View > Macros > Record Macro), do the steps you want to automate once, then stop the recording. From then on, running the macro repeats those steps in one click or one keyboard shortcut, with no coding required. For months I spent the first twenty minutes of every Monday doing the same routine on a weekly export: delete three columns, trim the spaces, format the dates, apply a filter, resize the columns, and freeze the top row. Twelve or so steps, always in the same order, always slightly boring and occasionally done wrong because I was half asleep. A colleague saw me at it one morning and said, "You know you can just record that, right?" I recorded it that same afternoon. The Monday routine went from twenty minutes to about four seconds, and I've been a bit evangelical about macros ever since, though I...