G
Guest
I use Excel 2000, and I have a spreadsheet that I have been updating
by hand. The data is getting fairly large now, so I am in the process
of writing a perl script to generate a text file containing the data,
separated by tabs, so that I can just copy everything in the text file
and paste it into the spreadsheet.
The spreadsheet does have some columns that do some arithmetic
calculations. I can easily have the perl script perform those
calculations itself, so that all the values in the text file are "hard
coded". But the problem is that there will be a few errors in my data
stream that the perl script won't catch, and I will need to go back
into the spreadsheet and correct those by hand. If the values were
hard coded, then I may have to re-perform the calculations for several
columns. But if somehow I could have the perl script output a formula
into the text file instead of an actual value, then I would only need
to go back into the spreadsheet and change one column if there was an
error.
But I have no idea how to do that, or if it is even possible. For
example, one of the cells in one of the rows in my spreadsheet right
now uses the formula:
=IF(G1883="Long",AE1883/R1883,AE1883/AD1883)
But if I am trying to create a tab delimited data file, I won't know
what row number each set of data will occupy, so I won't be able to
output any formulas. Is there a way for me to do this?
by hand. The data is getting fairly large now, so I am in the process
of writing a perl script to generate a text file containing the data,
separated by tabs, so that I can just copy everything in the text file
and paste it into the spreadsheet.
The spreadsheet does have some columns that do some arithmetic
calculations. I can easily have the perl script perform those
calculations itself, so that all the values in the text file are "hard
coded". But the problem is that there will be a few errors in my data
stream that the perl script won't catch, and I will need to go back
into the spreadsheet and correct those by hand. If the values were
hard coded, then I may have to re-perform the calculations for several
columns. But if somehow I could have the perl script output a formula
into the text file instead of an actual value, then I would only need
to go back into the spreadsheet and change one column if there was an
error.
But I have no idea how to do that, or if it is even possible. For
example, one of the cells in one of the rows in my spreadsheet right
now uses the formula:
=IF(G1883="Long",AE1883/R1883,AE1883/AD1883)
But if I am trying to create a tab delimited data file, I won't know
what row number each set of data will occupy, so I won't be able to
output any formulas. Is there a way for me to do this?