Microsoft Excel – excluding hidden rows in totals

If you use the AutoSum button in Excel, then figures in hidden cells are still used in the totals.

If, however, you first format the data as a table and then do a total within the table, the values in hidden cells are not included.

To format data as a table, click in any cell in the dataset, then press Ctrl + T or on the Home tab, in the Styles group, click Format as Table and select your required table style.

The data will be formatted as a table and the Table Tools Design contextual tab will be displayed. Check the Total box and in the Totals  row, select the column or columns that you want to total (you can also choose Average, Count etc.)

Table2

Now, say I hide rows, 6 to 9, the Totals row will change to reflect only data that is displayed.

Table3

Find out more about our Microsoft Excel training in the London, Middlesex, Surrey areas.

Find out more about our Microsoft Excel training in the Dorset, Hampshire, Wiltshire areas.

 

Advertisements

About jdonbavand

I am a trainer of Microsoft Office, Microsoft Project and Crystal Reports. I have called my blog "If Only I'd Known That...." because I hear it so many times in training sessions. In fact, if only I had a £100 (or 150 Aussie dollars)for every time someone says "If only I'd known that." ....
This entry was posted in Microsoft Excel, Microsoft Excel 2007, Microsoft Excel 2010, Microsoft Excel 2013, Microsoft Excel 2016 and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s