I need to create a variable from a date so that I can specify where data should go (Column Number) and pass this to a cell reference. The date it self comes from a sheet in the same workbook it is a different sheet that I am working on though. lets pretend its in A1 on sheet1 I will be able to adjust to suit, and I am working on Sheet2. The date in the cell is in a normal format dd/mm/yyyy for us Brits. Jan 08 is my first column and this would be 1, Feb 08 would be 2 and so on for ever all on sheet2. The columns don't have the days specified just the month and year.
I would then have a referance to work from. For example if the date was 15/03/2008 this would start in column 3. If this is not possible I have no idea if it is or it is, Excel can do stranger things. Then this might be an alternative, after checking the date it matches to the column by checking the month and year along that row, column by column. In this case the dates (Month and Year) are all in row 2.
Just so you have an overview of the aim. I have some data that has been retrieved from an external workbook. I already have the variable for the row it needs to go in. The paste column start is determned by the date in the cell mentioned at the begining of the post. I just need a way of matching the date to the relevant column.
Maybe I am over complicating the issue, not unusual, any guidance, assistance or help would be greatly appreciated.
Regards Partjob
I would then have a referance to work from. For example if the date was 15/03/2008 this would start in column 3. If this is not possible I have no idea if it is or it is, Excel can do stranger things. Then this might be an alternative, after checking the date it matches to the column by checking the month and year along that row, column by column. In this case the dates (Month and Year) are all in row 2.
Just so you have an overview of the aim. I have some data that has been retrieved from an external workbook. I already have the variable for the row it needs to go in. The paste column start is determned by the date in the cell mentioned at the begining of the post. I just need a way of matching the date to the relevant column.
Maybe I am over complicating the issue, not unusual, any guidance, assistance or help would be greatly appreciated.
Regards Partjob