I have the following in my file,
Sheet 1 is a typical output consisting of five columns (A,B,C,D,E) that I get from my experiment. For my data analysis then, I do a two point moving average ( in Sheet 2) and three point moving average (in Sheet 3) of all the columns in Sheet 1 and plot a graph that consists of two series (i.e. Col B (X) vs Col C (Y) and Col D (X) vs Col E (Y) ). The formula for two and three point average that i use are
Two point moving average: =AVERAGE(INDIRECT("Sheet1!A"&(ROW(A4)-1)*2+1&":A"&(ROW(A4)-1)*2+2))
Three point moving average: =AVERAGE(INDIRECT("Sheet1!A"&(ROW(A4)-1)*3+1&":A"&(ROW(A4)-1)*3+3))
I have hundreds of files like this and inorder to save time and automate the processing I tried recording a macro to do the task for me. But then I encountered many errors and coming from a non-programming background I had no clue what was going on.
Can someone please help me with this. Can a macro be written that can perform this? Any help is greatly appreciated.
Much thanks,
Karthik
Sheet 1 is a typical output consisting of five columns (A,B,C,D,E) that I get from my experiment. For my data analysis then, I do a two point moving average ( in Sheet 2) and three point moving average (in Sheet 3) of all the columns in Sheet 1 and plot a graph that consists of two series (i.e. Col B (X) vs Col C (Y) and Col D (X) vs Col E (Y) ). The formula for two and three point average that i use are
Two point moving average: =AVERAGE(INDIRECT("Sheet1!A"&(ROW(A4)-1)*2+1&":A"&(ROW(A4)-1)*2+2))
Three point moving average: =AVERAGE(INDIRECT("Sheet1!A"&(ROW(A4)-1)*3+1&":A"&(ROW(A4)-1)*3+3))
I have hundreds of files like this and inorder to save time and automate the processing I tried recording a macro to do the task for me. But then I encountered many errors and coming from a non-programming background I had no clue what was going on.
Can someone please help me with this. Can a macro be written that can perform this? Any help is greatly appreciated.
Much thanks,
Karthik