Hello,
I'm trying to automate my data analysis. I have a program that gives me a text file of names, dates, and times that I have to paste into Excel and delimit into columns. It would be great if I could add a line of code to my program to write a formula to be delimited into the last column of data that calculates the difference between the start time and end time of using this program.
For example, it would be easy enough to have it write "=A6-A2" (A6 being the end time, and A2 being the start time), but that would only work for the first row of data. I tried using offset, but quickly learned it can't reference the cell it is used in. I need the formula to say "Look one cell to the left and subtract the value of the cell four cells to the left" and it should do this without knowing what cell it is in.
Any help would be greatly appreciated!
Bryan
I'm trying to automate my data analysis. I have a program that gives me a text file of names, dates, and times that I have to paste into Excel and delimit into columns. It would be great if I could add a line of code to my program to write a formula to be delimited into the last column of data that calculates the difference between the start time and end time of using this program.
For example, it would be easy enough to have it write "=A6-A2" (A6 being the end time, and A2 being the start time), but that would only work for the first row of data. I tried using offset, but quickly learned it can't reference the cell it is used in. I need the formula to say "Look one cell to the left and subtract the value of the cell four cells to the left" and it should do this without knowing what cell it is in.
Any help would be greatly appreciated!
Bryan