I've created an Excel Add-In, and one of the functions of this Add-In, lets say New_Years
currently takes in 2 years and outputs every New Years day between those 2 years as an array in Excel. So New_Years(2000,2002)
would return Jan 1st 2000, Jan 1st 2001, and Jan 1st 2002 in the last cell.
The problem is that I have to know there are going to be 3 dates in that time, select 3 cells, enter my formula in the top cell, and then hit Ctrl + Shift + Enter
to fill out the array.
I use XLW version 5 to convert my C++ code to an .xll file. I would really like it if there was some way I could just fill in one square with my formula, and Excel would fill in the squares below as needed with the appropriate dates. Anyone know if this is possible? Or impossible?
Many thanks!
It is actually possible albeit complex. I am reposting this piece of magic from Kevin Jones aka Zorvek as it sits behind the EE Paywall (link attached if anyone has access)