Hello,
I am trying to create a macro all in Excel of what would usually occur between Excel and Access.
Let's say I have 12 variables I can enter into cell A1. Let's say the variables are months (Jan, Feb, Mar, etc).
Starting in A2, I want to return an x amount of values based on cell A1.
The problem is, not each variable (month) has the same amount of values to return.
For example, if cell A1 is Jan, then it would need to return 3 numbers in A2 to A4. If Feb is entered, it will return 8 numbers in A2 to A9, if Mar then 4 numbers in A2 to A5, and so on.
I've attached a sample to see if it would help explain better.
Currently, I have a query built into Excel that works with Access to do this. I'm wanting to move the database into Excel and have everything down in Excel.
Any help would be appreciated. Please let me know if you need any clarification.
Thank you!
I am trying to create a macro all in Excel of what would usually occur between Excel and Access.
Let's say I have 12 variables I can enter into cell A1. Let's say the variables are months (Jan, Feb, Mar, etc).
Starting in A2, I want to return an x amount of values based on cell A1.
The problem is, not each variable (month) has the same amount of values to return.
For example, if cell A1 is Jan, then it would need to return 3 numbers in A2 to A4. If Feb is entered, it will return 8 numbers in A2 to A9, if Mar then 4 numbers in A2 to A5, and so on.
I've attached a sample to see if it would help explain better.
Currently, I have a query built into Excel that works with Access to do this. I'm wanting to move the database into Excel and have everything down in Excel.
Any help would be appreciated. Please let me know if you need any clarification.
Thank you!