I don’t know anything about Macros, but I am in need of some way to perform a conditional WRITE operation to another Calc file from the data in my main Calc file.
The situation is a large (over 8000 line) Calc file where a recorded value occasionally exceeds a given threshold value, and I want to extract every occurrence of this condition and record it in a separate Calc file.
Say, a line in my main file (Voltage-date.ods) is this :
A544 B544 C544 D544 E544 F544 G544
2023-04-07 02:30:00 2.5000 7.1042 124.7 124.1 125.4
So my test is logically something like :
IF(G544>125) THEN WRITE (A544,B544,C544,D544,E544,F544,G544) to OV-date.ods
And, after a time, the separate file might look something like this :
A B C D E F G
2023-04-04 12:18:00 7.1500 4.2200 122.0 121.4 125.2
2023-04-07 02:30:00 2.5000 7.1042 124.7 124.1 125.4
2023-04-13 05:42:00 3.1000 3.1900 123.8 122.9 126.1
…
Is there an easy way to do this, or will it involve a lot of code that I might not be able to figure out eventually?