Skip to main content
Bob Umlas/4 min read

Collection of Excel Tips and Tricks, Part 2

Excel Workbook Checklist

0/4
Master Excel at Noble Desktop

Noble Desktop's Excel Bootcamp covers formulas, pivot tables, data analysis, and VBA.

Discover various tips and tricks for Excel that can enhance your efficiency, including how to put totals in certain cells, best formulas for grand totals, how to create multi-column text boxes, how to remove specific data from cells, and more.

This is the second article about Excel tips & tricks. Let’s dive right in.

How would you put totals in E1:E7 and A8:E8?

Excel spreadsheet with data in columns A through D and empty cells in column E and row 8 for totals

Most people would click in E, press ALT/=, Enter, then either drag the fill handle down or double click the fill handle (so far, that would look like this):

Excel spreadsheet showing SUM formula auto-filled in column E for row totals then click in A8, ALT/=, Enter, and drag the fill handle to E8. The finished product:

Completed Excel spreadsheet with both row totals in column E and column totals in row 8

Here's the trick. First, make this your selection:

Excel spreadsheet with selection including the extra row and column for the ALT+= shortcut trick

That is, include the extra row and column. Then simply ALT/= and you get the same result as before! One keystroke!

Next – You have this worksheet:

Excel worksheet with numbered rows containing values and periodic subtotal rows

(Note rows 12-111 are not shown, but are similar in structure – numbers and a subtotal every so often). Question: What’s the best formula for the Grand Total in B123? I’ve seen a formula such as this:

Excel formula bar showing a long SUM formula manually selecting each subtotal cell

Which works (selecting each of the subtotals in column B), but is somewhat error-prone (you might click on a wrong cell or miss a subtotal or two), I’ve actually seen a formula like this which took 2 lines in the formula bar!

What about =SUMIF(A1:A122, "Subtotal", B1:B122)? In case you don’t know the SUMIF formula, it takes a range to test (A1:A122), checking wherever that range contains the word Subtotal, and if it does, add up the values from the “sum-range”, B1:B122.

How about =SUMPRODUCT(N(A1:A122="Subtotal"), B1:B122)? In case you didn’t know the SUMPRODUCT formula, it takes a list of numeric arrays and multiplies them together then adds the result. The expression A1:A122=”Subtotal” returns an array of TRUE/FALSE, which isn’t numeric, so this is passed to the N-function which changes TRUE to 1 and FALSE to 0 so it’s multiplying an array like {0;0;0;0;0;1;0;0;0;0;0;0;0;1;…} by the numbers and wherever there’s a 1 it corresponds to the value in the subtotal in column B and winds up summing just the subtotal values.

Here's another one – from cell B123, press ALT/=. This gives

Excel AutoSum suggesting a SUM formula that automatically detects subtotal cells

Excel finds them for you! Cool, but the best formula in my opinion is =SUM(B1:B122)/2.


Excel cell showing the formula =SUM(B1:B122)/2 as a simple grand total solution

What? How does that work? Well, each section contains a few numbers and the subtotal:

Excel section showing individual values and their subtotal demonstrating the double-counting principle

The numbers B1:B7 total 733. So the values in B1:B7 plus the number in B8 is 733 + 733! It’s there twice, as is each section. Cool, right?

Did you know you can make text boxes have multiple columns?

Excel text box formatted with multiple columns displaying text flowing between them

Once you have your textbox drawn, you press CTRL/1 to get Format Shape. Click Text Options (as shown below) and then click the right-most icon under Text Options, then click Columns:

Format Shape dialog showing Text Options with the Columns settings highlighted

This brings up this little form:

Columns dialog box for text boxes with fields for number of columns and spacing

Where you specify the number of columns as well as the spacing between columns!

You have this data and need to remove everything before the colon and the space after that:

Excel cells containing text with labels before colons that need to be removed

I’ll show 5 ways to do that. The first 3 involve formulas. First, to find the :, use this FIND formula:

Excel FIND formula locating the position of the colon character in cell text

Knowing the position, we want to keep the data starting 2 positions to the right of that, and we need to incorporate the MID function, which takes a part of a string:

Excel MID formula extracting text after the colon using the FIND result

Now, we have to replace the data in column A with the data in B which is copy/paste special Values. This leaves the values in column B, so we have to clear that:

Excel column A showing cleaned text values after pasting formula results as values

Here’s another formula using a new function, TEXTAFTER:

Excel TEXTAFTER function syntax showing parameters for extracting text after a delimiter

We only need to first 2 parameters:


Excel cells showing TEXTAFTER function results extracting text after the colon and space

This is clearly easier than the MID and FIND.

Next, we’ll look at Data/Text-to-Columns:

Excel Data tab showing the Text to Columns feature for splitting text by delimiter

The delimiter is the colon. Unfortunately, we can’t use the space as well – this is a one-character delimeter. We we get this:

Text to Columns result showing data split at the colon with leading spaces in column B

You can see that the 2nd column begins with a space, so it needs more “tweaking” – need another formula: =Mid(B1,2,100):

We might as well put it in column A!

Excel MID formula in column A cleaning up the leading space from the Text to Columns result

Then, just delete column B.

Another way to do this is to use Flash fill, found on the home tab under the AutoSum:

Excel Home tab showing the Flash Fill option under the AutoSum dropdown

 (also found in the Data tab in the Data Tools Group). Flash fill is a great tool in which you supply an example or 2 and Excel “understands” what you’re trying to do and fills in the rest. So, for the first example, we need to only type in “Do this” (no quotes, no formula):

Excel cell B1 with manually typed example text for Flash Fill to learn the pattern

Then invoke the Flash fill command (shortcut is CTRL/e):

Flash Fill results automatically extracting text after colons for all rows

Here, you can just delete column A!

OK, not for my favorite way to do this: Select column A, and bring up the Replace command (CTRL/H):

Excel Find and Replace dialog with wildcard pattern to remove text before the colon

In Find what, enter &*: (including a space after the colon). The asterisk represents a wildcard, meaning any characters up to and including a colon and a space. Replace this with nothing.Click Replace All and you’re done!:


Screenshot of an Excel worksheet highlighting multiple rows of text entries (e.g., 'Do this, ' 'This is good stuff, ' 'Don't forget the doughnuts') while the 'Find and Replace' dialog box is open, showing a confirmation message indicating 15 replacements were made.