Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to combine 2 or more chart types in a single chart in Excel
  • How to Use Solver Tool in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • Example of COUNTIFS with variable table column in Excel
  • Move chart to a separate worksheet in Excel

References

  • How to get relative column numbers in a range in Excel
  • Count rows that contain specific values in Excel
  • Perform case-sensitive Lookup in Excel
  • Count rows with at least n matching values
  • Vlookup Examples in Excel

Data Validations

  • Excel Data validation whole percentage only
  • Excel Data validation only dates between
  • Excel Data validation must begin with
  • Excel Data validation unique values only
  • Prevent invalid data entering in specific cells

Dynamic date list in Excel

by

This tutorial show how to Dynamic date list in Excel using the example below.

To create a dynamic date list, you can use a formula that increments a start date to create and display additional dates.

 Formula

=start+ROWS(exp_rng)-1-offset

Explanation of how this formula works

In the example shown, the formula in B5 is:

=start+ROWS($B$5:B5)-1-offset

where “start” is the named range G4, and “offset” is the named range G5.

Notes: (1) the offset represents days before the start date to display in the list. (2) the shading of the start date is done with conditional formatting as described below.

Worked Example:   Display Date is same month in Excel

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.

Worked Example:   Excel Data validation date in next 30 days

Next, we subtract the value in 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.

Worked Example:   How to enter Today's Date or Static Date and Time in Excel

To display a month, the formula in D5 is:

=TEXT(B5,"mmm")

To display a weekday, the formula in C5 is:

=TEXT(B5,"ddd")

 

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

Post navigation

Previous Post:

Number and Text Filters Examples in Excel

Next Post:

Convert date string to date time in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Not Equal To ‘<>‘ operator in Excel
  • Complete List of Excel Logical Functions, References and Examples
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • IF with wildcards in Excel

Date Time

  • WORKDAY.INTL function: Description, Usage, Syntax, Examples and Explanation
  • Get month from date in Excel
  • Add business days to date in Excel
  • Add years to date in Excel
  • Calculate days remaining in Excel

Grouping

  • How to randomly assign people to groups in Excel
  • Group times into unequal buckets in Excel
  • Categorize text with keywords in Excel
  • Group arbitrary text values in Excel
  • Group numbers at uneven intervals in Excel

General

  • How to test a range for numbers in Excel
  • How to get original price from percentage discount in Excel
  • Freeze and Unfreeze Panes in Excel
  • How to create dynamic worksheet reference in Excel
  • How to calculate percent change in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning