Book Image

101 Excel 2013 Tips, Tricks and Timesavers

By : John Walkenbach
Book Image

101 Excel 2013 Tips, Tricks and Timesavers

By: John Walkenbach

Overview of this book

Excel is a popular program. Millions of people throughout the world use it on a regular basis. But it’s a safe bet that the vast majority of users have yet to discover some of the amazing things this product can do. 101 Excel 2013 Tips, Tricks, & Timesavers?is packed with information that you need to know in order to confidently and seamlessly master the challenges that come with using Excel! Excel 2013 is excellent, but there's lots to learn to truly excel at Excel! In this latest addition to his popular Mr. Spreadsheet's Bookshelf series, John Walkenbach, aka "Mr. Spreadsheet," shares new and exciting ways to accomplish and master all of your spreadsheet tasks. From taming the Ribbon bar to testing and tables, creating custom functions, and overcoming "impossible" charts, mixing nesting limits, and more,?101 Excel 2013 Tips, Tricks, & Timesavers?will save you time and help you avoid common spreadsheet stumbling blocks.
Table of Contents (10 chapters)
Free Chapter
1
Cover
2
Table of Contents
3
Title Page
4
Introduction

Tip 41: Returning the Last Nonblank Cell in a Column or Row

Suppose that you update a worksheet frequently by adding new data to its columns. You might need a way to reference the last value in a particular column (the value most recently entered). This tip presents three ways to accomplish this.

Figure 41-1 shows an example. The worksheet tracks the value of three funds in columns B:D. Notice that the information does not arrive at the same time. The goal is to get the sum of the most recent data for each fund. These values are calculated in the range G4:G6.

9781118642184-fg04101.tif

Figure 41-1: Use a formula to return the last non-empty cell in columns B:D.

Cell counting method

The formulas in G4, G5, and G6 are

=INDEX(B:B,COUNTA(B:B))
=INDEX(C:C,COUNTA(C:C))

=INDEX(D:D,COUNTA(D:D))

These formulas use the COUNTA function to count the number of non-empty cells in column C. This value is used as the second argument for the INDEX function. For example, in column B the...