Excel Tables have a Total Row that can be toggled on and off from the Ribbon. Several functions are available when the Total Row is turned on.
In Excel 2010 and 2007 (Windows) select a cell inside the Table, then choose Table Tools and click the check box for Total Row. In Excel 2011 (Mac) select a cell in the Table and choose Tables, then select the check box for Total Row.
Jan 30, 2015 - If you use the ribbon, identifying duplicate values in Excel for Mac 2011 is identical to the steps in Excel 2007 and later. The steps to highlight. Sep 22, 2010 - Learn how to use Excel's AutoFit feature to automatically change the size of. To fix this, select the row with the cut-off text and click on Format.
A Total row appears below the data where each column has access to several automatic formulas. The default selection for the Total Row is none, meaning no function is selected when you first turn on the Total Row on your Table.
Average, Count, Count Numbers, Max, Min, Sum, StdDev, and Var are options on the drop-down list for each cell in the Total Row. You can even choose More Functions…, which we won’t go into here.
When you choose a function from the list, what you really get is the SUBTOTAL function, where the first argument is the function, and the second argument is the Table column data. In the picture below, 101 represents the Average function, and [Net Product] is the data. Excel inserts this formula automatically when you select Average from the drop-down list.
Using SUBTOTAL in the Total Row means that when the Table is Filtered, the function will give the correct answer.
If you toggle the Total Row off, Excel remembers the function and it will appear again when you toggle the Total Row back on.
Total Row Reference in a Formula
The Total Row can be used in a formula outside the Table. Notice the Avg Hours Per Setup formula below uses #Totals to refer to the Total Row in the Table.
By using the the Setup Hours and Number Setups from the Total Row, you can Filter the Table and get the correct answer for Average Hours per Setup.
The problem occurs when the Total Row is toggled off, which leaves this formula without a reference.
If you recall from my last post on Tables, I used the following formula for Average Hours Per Setup =SUM(Table1[Setup Hours])/SUM(Table1[Number Setups]) which has a different flaw. It does not work when the Table is Filtered.
Create a Formula That Works
We can replace SUM in this last formula with the SUBTOTAL function =SUBTOTAL(109,Table1[Setup Hours])/SUBTOTAL(109,Table1[Number Setups]).
Now when we Filter the Table the calculation is correct and we don’t have to worry about having the Total Row toggled on for the formula to work.
SUBTOTAL with Windows and Mac
It’s much easier to use the SUBTOTAL Function with Windows versions of Excel (2007, 2010) because autocomplete gives you the different function numbers for the first argument.
The Mac version (2011) doesn’t have autocomplete but you can access Help, which brings you to another window with some information that helps you decide which function number to use for SUBTOTAL.
Hidden values refers to entire rows that are hidden. Excel Tables use “Ignores hidden values” as function numbers when you select a function from the drop-down list in the Total Row.
Table Availability in Excel Versions
As you may have guessed Excel 2003 (Windows) doesn’t have Tables. They have what is referred to as Lists, which is the pre-cursor to Tables. Lists don’t have any structured data.
The same is true for Excel 2008 (Mac), which only has Lists and no Tables. If you have a file with Tables and open it with an earlier version having only Lists then you get a warning.
The moral of this is to upgrade, Tables are worth it.
No related posts.
This tutorial demonstrates various ways of entering dates in Excel. See how to insert today's date and current time as static time stamp or dynamic values, how to auto populate a column or row with weekdays, and how to auto fill random dates in Excel.
There are several ways to add dates in Excel depending on what exactly you want to do. For example, do you want to enter a today's date in some report or invoice? Or, perhaps you want to insert a date in Excel that will update automatically and always display the current date and time? Or, maybe you want to auto fill weekdays or input random dates in your worksheet?
In a moment, you will learn all these and a few more date entering techniques. If you are curious to know how Excel stores dates and times, please check out part 1 of this tutorial - Excel date format.
How to insert today's date in Excel
How to autofill dates in Excel
Pick your dates in Excel pop-up calendar
And easily calculate them in place
Read more
Get two-month view of the calendar
Expand the pane to see two months side by side in Excel
Read more
Add or subtract the required units in Excel
And see the result right away
Read more
How to enter a date in Excel
You can type a date in an Excel cell in a variety of ways, for example 1/1/2015, or 1-Jan-2015, or 1-Jan, or January 1, 2015. When you type something like that in a cell, Microsoft Excel knows you are entering a date and automatically applies the date format to that cell. Quite often, Excel formats the newly inserted date according to your Windows default date settings, but sometimes it may leave it exactly as you typed.
The most obvious visual indication that Excel has recognized the date you've entered is its right-alignment in a cell as opposed to left-aligned text values.
If Excel has failed to recognize your input as a date and you see it left-justified in a cell, try inserting a date in some other format close to your default short or long date formats. These formats are marked with an asterisk (*) in the Format Cell dialog window and you can quickly access them on the Excel ribbon (Home tab > Number group):
You will be able to easily change the date format later via the Format Cells dialog that opens on the Ctrl + 1 shortcut. For more details, please see How to change the date format in Excel.
Note. If a date you've entered displays as a number of pound signs (#####) in a cell, most likely the cell is not wide enough to fit the entire date. To fix this, double-click the right border of the column to auto fit the date, or drag the right border to set the desired column width. If this does not help, please check other Excel date format troubleshooting tips.
Inserting today's date and current time in Excel
In Microsoft Excel, you can input the current date and time either as a static or dynamic value.
Shortcuts to enter today date in Excel (as a timestamp)
To begin with, let's define what timestamp is. Timestamping is entering a 'static date' that won't change with the course of time or when the spreadsheet is recalculated.
So, if your goal is to enter the current date and/or time as a static value that won't automatically update the next day, you can use one of the following shortcuts:
Ctrl + ; shortcut inserts the today date in a cell.
Ctrl + Shift + ; shortcut inserts the current time.
To enter the current date and time, press Ctrl + ; then press the Space key, and then Ctrl + Shift + ;.
Insert an automatically updatable today's date and current time
If you want to input today's date in Excel that will always remain up to date, use one of the following Excel date functions:
=TODAY() - inserts the today date in a cell.
=NOW() - inserts the today dateand current time in a cell.
Unlike Excel date shortcuts, the TODAY and NOW functions will always return today's date and current time.
When using the Excel date functions, please keep in mind that:
The returned date and time are not refreshed continuously, they are updated only when the spreadsheet is re-opened or re-calculated, or when a macro containing the function is run.
The functions take the current date and time from your computer's system clock.
How to insert today date & current time as unchangeable time stamp
This section addresses a handful of comments that have been posted on this page with one and the same question - 'What formula do I use to enter a timestamp in my Excel sheet without it changing every time the worksheet is reopened or recalculated?'
For starters, I'd like to note that I'm very hesitant to post the solution because it involves circular references, and they should be treated with great care. Anyway, here goes the formula…
Let's say you have a list of items in column A, and as soon as a certain item is shipped, you enter 'Yes' in the Delivery column, which is column B. Once 'Yes' is in there, you want to have the current date and time automatically inserted in the same row in column C as a static unchangeable time stamp.
To do this, we are going to use the following nested IF formula with circular references in the second IF function:
=IF(B2='yes', IF(C2=' ,NOW(), C2), ')
Where B is the Delivery column, and C2 is the cell where you input the formula and where the time stamp will eventually appear.
In the above formula, the first IF function checks cell B2 for the word 'Yes' (or any other text you supply to the formula), and if the specified text is there, it runs the second IF function, otherwise returns an empty string. And the second IF is a circular formula that makes the NOW function return the current day and time if C2 doesn't have a value in it already, thus saving all existing time stamps.
If instead of checking for any specific word, you want the timestamp to appear when you put anything in the specified cell (that could be any number, text or date), then have the first IF function to check for a non-empty cell, like this:
=IF(B2<>', IF(C2=' ,NOW(), C2), ')
Note. For this Excel circular formula to work, you should allow iterative calculations in your worksheet. Also, please keep in mind that there are many reasons not to use circular references in Excel, and if you decide to utilize this solution in your worksheets, it's on your own risk.
How to auto populate dates in Excel
If you need to insert dates in a range of cells, you can let Excel 'auto date' a column or row by using the AutoFill feature.
Auto fill a date series that increases by one day
To automatically fill a column or row with an incrementing date series that increases by one day, you use Excel's AutoFill feature in the usual way:
Enter your initial date in the first cell.
Click on the cell with the first date to select it, and then drag the fill handle across or down the cells where you want Excel to add dates. (The fill handle is a small green square that appears at the bottom-right corner when you select a cell or a range of cells in Excel, as shown in the screenshot below.)
Auto fill weekdays, months or years
There are two ways to automatically populate the selected range of cells with weekdays, months or years.
You can use the Excel AutoFill options as described above. When the range is populated with sequential dates, click the AutoFill Options icon and select the option you want:
Another way is to enter your first date, select that cell, click the right mouse button and drag the fill handle down the cells you want to auto fill with dates, and then release it. When you do, Excel displays a context menu and you select the appropriate option from it.
Auto insert every 2nd, 3rd or Nth day
If you've tried a second solution described above, you probably noticed a whole lot more Excel auto date options the fill handle provides. One of them is inserting every 2nd, 3rd, 4th, etc. day, month or year in a worksheet. Let's try this now:
Add the first date in some cell.
Select that cell, right-click on the fill handle, drag it down or across several cells, and then release.
In the context menu, click Series.
In the Series dialog box, choose the appropriate Date unit and enter the Step value.
How to inset random dates in Excel
Regrettably, Microsoft Excel does not provide an option to enter random dates automatically. Luckily, AbleBits Random Generator for Excel does :)
You simply select a range of cells where you want to autofill dates in a random order, and switch to the Random Generator's pane where you specify:
Start and End date;
What days to add - weekdays, weekends or both;
To add only unique dates, check the Uniquevalues
Then you click the Generate button, and have the selected range populated with random dates.
Apart from dates, the Random Generator add-in can auto fill your worksheets with numbers, Boolean vales and custom lists. If you think this is something that would be useful in your work, we will gladly provide you with a 15% promotion code that we offer exclusively to our blog readers: AB14-BlogSpo
Insert a date in Excel via a drop-down calendar (Date Picker)
If you are setting up a spreadsheet for other users, and want to make sure they enter dates right, it may be a good idea to insert a drop-down calendar in a worksheet. Your users will be able to fill in dates in a mouse click and you will be 100% confident that all dates are entered in an appropriate format.
If you are using a 32-bit version of Excel, you can use Microsoft's Date Picker control. For the detailed instructions, please see How to insert calendar in Excel (Date Picker control).
If you are using a 64-bit version of Excel 2016, Excel 2013, Microsoft's Date Picker control won't do. In this case, consider using one of the third-party calendars, for example our own one :)
For more options, please see third-party drop-down calendars for Excel.
This is how you insert date in Excel. I am hopeful these date entering techniques, shortcuts, functions and Excel auto date features have proved useful to you. Anyway, thank you for reading!