Hello,
In column A (shown below) I have a list of dates and in column B I have a number which can range from 0 - 9. Based upon the number in B1, I want to use vba to copy cell A1 and paste in C1 (and C2 if B1 has something larger than a 1). I would like to do this for a hundred dates.
The table below shows an example.
Column A contains the dates and column B has a number from 0 - 9. Column C, I want to paste the number of dates based upon the value in column B.
Any help would be greatly appreciated. I am having to do this manually and it can be very time consuming when you have a hundred of these dates to do.
<tbody>
</tbody>
In column A (shown below) I have a list of dates and in column B I have a number which can range from 0 - 9. Based upon the number in B1, I want to use vba to copy cell A1 and paste in C1 (and C2 if B1 has something larger than a 1). I would like to do this for a hundred dates.
The table below shows an example.
Column A contains the dates and column B has a number from 0 - 9. Column C, I want to paste the number of dates based upon the value in column B.
Any help would be greatly appreciated. I am having to do this manually and it can be very time consuming when you have a hundred of these dates to do.
A | B | C | |
1 | 2/1/2015 | 3 | 2/1/2015 |
2 | 4/1/2015 | 1 | 2/1/2015 |
3 | 6/1/2015 | 0 | 2/1/2015 |
4 | 4/1/2015 |
<tbody>
</tbody>