Automatic date selection from Excel import
Posted: Fri Dec 12, 2025 1:42 pm
Hello everyone,
Is it possible to import an Excel file without having to hardcode the start date? For example, if I have the following code
My question is this: Is there a way to get around having to add 1980 and automatically detect the start and end dates of the sheet?
For reference, the data looks like this (note the second and third series begin in 1990)
Is it possible to import an Excel file without having to hardcode the start date? For example, if I have the following code
Code: Select all
import(page=DATA) %data range ="Sheet1" @freq q 1980
My question is this: Is there a way to get around having to add 1980 and automatically detect the start and end dates of the sheet?
For reference, the data looks like this (note the second and third series begin in 1990)
Code: Select all
quarter sales laborforce household
Q1-80 813038
Q2-80 795216
Q3-80 815587
Q4-80 850848
Q1-81 856297
Q2-81 902501
Q3-81 899384
Q4-81 890007