Hello!
Ok; I've never created a macro before and would really appreciate some help.
I am trying to create a spreadsheet that will populate data based on a few criteria so that I do not have to constantly type everything out each and every time. On one tab, I want to have a start date and an end date. I also will have a list of companies in one column and products in the column next to it. I would like to have a macro create a row for each Company-Product for every date between the start date and end date (including those dates). I would like the data to have the Date in Column B, Company in Column C, and Product listed in Column D.
Please see the sample tables below. Any assistance is greatly appreciated and do not hesitate to reach out for any clarification!
Criteria
<tbody>
</tbody>
<tbody>
</tbody>
Result:
<tbody>
</tbody>
Ok; I've never created a macro before and would really appreciate some help.
I am trying to create a spreadsheet that will populate data based on a few criteria so that I do not have to constantly type everything out each and every time. On one tab, I want to have a start date and an end date. I also will have a list of companies in one column and products in the column next to it. I would like to have a macro create a row for each Company-Product for every date between the start date and end date (including those dates). I would like the data to have the Date in Column B, Company in Column C, and Product listed in Column D.
Please see the sample tables below. Any assistance is greatly appreciated and do not hesitate to reach out for any clarification!
Criteria
Start Date: | 12/01/18 |
End Date: | 12/03/18 |
<tbody>
</tbody>
Company | Product |
Lay’s | Potato Chips |
Wise | Potato Chips |
Utz | Thin Pretzels |
Hershey’s | Kisses |
Hershey’s | Kisses with Almonds |
<tbody>
</tbody>
Result:
Date | Company | Product |
12/01/18 | Lay’s | Potato Chips |
12/02/18 | Lay’s | Potato Chips |
12/03/18 | Lay’s | Potato Chips |
12/01/18 | Wise | Potato Chips |
12/02/18 | Wise | Potato Chips |
12/03/18 | Wise | Potato Chips |
12/01/18 | Utz | Thin Pretzels |
12/02/18 | Utz | Thin Pretzels |
12/03/18 | Utz | Thin Pretzels |
12/01/18 | Hershey’s | Kisses |
12/02/18 | Hershey’s | Kisses |
12/03/18 | Hershey’s | Kisses |
12/01/18 | Hershey’s | Kisses with Almonds |
12/02/18 | Hershey’s | Kisses with Almonds |
12/03/18 | Hershey’s | Kisses with Almonds |
<tbody>
</tbody>