Hi,
I'm currently using a loop to cycle through my 20,000 records and perform a few checks (eg, find duplicates). While i'm going through this loop I'd also like to populate two columns for the row i'm looking at.
For example, I want to turn:
Column A Column B Column C
12-JAN-03 Empty Empty
20-JAN-04 Empty Empty
15-FEB-04 Empty Empty
Into this:
Column A Column B Column C
12-NOV-03 NOV FY04 Q2
20-JAN-04 JAN FY04 Q3
15-FEB-04 FEB FY04 Q3
So I want the Macro to check the date in column A and insert a three letter abbreviation of the Month into column B. I also want to have an "if then" statement in the macro so that I can say if date between xxxx and yyyy then insert "FY04 Q2" or if date between wwww and zzzz then insert "FY04 Q3" otherwise insert "error".
I hope this explains my problem enough. I look forward to any responses.
Many thanks,
Richard.
I'm currently using a loop to cycle through my 20,000 records and perform a few checks (eg, find duplicates). While i'm going through this loop I'd also like to populate two columns for the row i'm looking at.
For example, I want to turn:
Column A Column B Column C
12-JAN-03 Empty Empty
20-JAN-04 Empty Empty
15-FEB-04 Empty Empty
Into this:
Column A Column B Column C
12-NOV-03 NOV FY04 Q2
20-JAN-04 JAN FY04 Q3
15-FEB-04 FEB FY04 Q3
So I want the Macro to check the date in column A and insert a three letter abbreviation of the Month into column B. I also want to have an "if then" statement in the macro so that I can say if date between xxxx and yyyy then insert "FY04 Q2" or if date between wwww and zzzz then insert "FY04 Q3" otherwise insert "error".
I hope this explains my problem enough. I look forward to any responses.
Many thanks,
Richard.