Explanation

Dates in Excel are just serial numbers , formatted to display as dates. This means you can perform math operations on dates to calculate days in the future or past.

In the example shown, the date in the named range “start” is provided by the TODAY function:

=TODAY() //returns current date

The formula in B5 begins with the start date, and increments the date by one using an expanding range inside the ROWS function:

ROWS($B$5:B5) // returns row count

ROWS returns the row count in a range. As the formula is copied down, the range expands and the row count increases by one at each new row. From this value, we subtract 1, so the date is not incremented in the first row.

Next, we subtract the value in the named range “offset” (G5). The offset is simply a way to begin the list of dates earlier than the start date provided. If offset is zero or blank, the first date in the list will equal the start date.

To display a weekday, the formula in C5 is:

=TEXT(B5,"ddd")

To display a month, the formula in D5 is:

=TEXT(B5,"mmm")

See this article for more examples of custom number formats in Excel.

The formulas in B5, C5, and D5 can be copied down as many rows as desired.

Highlighting the start date

The start date is shaded with a conditional formatting rule based on this formula:

=$B5=start

For more examples of applying conditional formatting with formulas, see this article .

Explanation

Excel handles dates and time using a scheme in which dates are serial numbers and times are fractional values . For example, June 1, 2000 12:00 PM is represented in Excel as the number 36678.5, where 36678 is the date portion and .5 is the time portion.

If you have dates that include time, you can use the INT function to extract just the date part. The INT function returns the integer portion of a number that includes a decimal value.

So, assuming A1 contains the date and time, June 1, 2000 12:00 PM (equivalent to the number 36678.5), the formula below returns just the date portion (36678):

=INT(A1)

The time portion of the value (the fractional part) is discarded. To see the result formatted as a date, be sure to apply a date number format . Make sure you use a date format that does not include a time . Otherwise, you’ll see the time displayed as 12:00 AM.