Hi,
I’ve set up a small spreadsheet that uses a macro to read in each record of a (potentially) huge file, does some analysis per record, and then updates some summary fields before going on to the next record. Or at least it is supposed to.
In order to summarise the analysis of each record it reads, I’m using circular references to accumulate values. The reason for this is so that the master spreadsheet that reads the records and displays the results is small, and can easily switch from file to file. But for some reason, when I try to accumulate the values just derived into the existing value for an individual record, the value becomes corrupted, often incrementing the values many times over in comparison with the value of the accumulation that should be taking place. I’ve updated the spreadsheet with a long delay for each record so you can see what is happening. One file is the main spreadsheet, the other file is a subset of sample data. I’ve also tried separating out the calculated cell from the cell it’s circularly referring to in a bid to correct the problem. I know this kind of thing can work in Excel, I’ve done it before, and in quite an old version as well. Can anybody explain why this is happening, and what I can do about it?
Thanks.
NOTE: This file will need to be changed to .csv before using it, as .csv is not an allowed file type for uploading:
BPLSEshort.xls
To run the macro, just click the button which will invoke the file picker:
Finanalysis-v02.ods
file2.ods
Mike
(Edit: attempted to improve file display -AK)