Mac – Why can I not have the date and time in one cell

macnumbers

I want to start at a date and at 12:00:00 am and I want each cell to increase by 1 hour. I put =a2+time(1,0,0) but I keep getting "The formula’s arguments can only include one date value." What am I doing wrong?

Best Answer

You don't need a formula to display a date and a time together in Numbers but a formula would make life easier if you also wanted to have a list of cells with incrementally increased times on an hourly basis.

First, select (click on) the cell where your initial date is. Then, select the "Format" icon on the Numbers toolbar at the top and then select the "Cell" tab. In the Cell tab, choose "Date & Time" as the Data Format and then choose one of the Date format options in addition to one of the Time format options in the separate drop-down menus for Date and Time. The cell you just formatted should appear similar to

5/10/18 12:00 AM

after these actions.

In order to display in another cell the time and date in the cell A2 as increased by one hour, you can use the following formula which utilizes the hour specification allowed in formulas. If the cell A2 has the starting date and time, put down the formula

= a2 + "1h"

, for example, into the cell right below (the cell A3) to get a date and time one hour later than the one in the cell a2. Assuming the cell A2 has the date and the time I used as an example previously, the cell A3 would appear similar to

5/10/18 1:00 AM

after entering the formula and pressing return.

You can have the further incrementally increased hours as a list of dates & times if you copy and paste the formula in A3 to the cells below it.