Good evening
I could do with some help here please.
Looking for some code for the following:
When dslrintervalcode28 is 2......
Look up to the most recent occurence of 1, (data is sorted by ddate) and put the value that is in the adjacent cell to the right (dslrintervalnmfp) in the wanted column
Reverse process needed when dslrintervalcode28 is 1....look back up to the most recent occurrence of 2 and repeat.
Thank you
Hans
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
I could do with some help here please.
Looking for some code for the following:
When dslrintervalcode28 is 2......
Look up to the most recent occurence of 1, (data is sorted by ddate) and put the value that is in the adjacent cell to the right (dslrintervalnmfp) in the wanted column
Reverse process needed when dslrintervalcode28 is 1....look back up to the most recent occurrence of 2 and repeat.
Thank you
Hans
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float ddate byte dslrintervalcode28 float(dslrintervalnmfp wanted) 21479 2 .1474 . 21675 2 .1182 . 21712 2 .1083 . 21740 1 .0504 . 21762 1 .073 . 21778 1 .0924 . 21789 1 .0913 . 21805 1 .0868 . 21821 1 .1059 .1083 21854 2 .1 . 21872 1 .1118 . 22070 2 .0674 . 22109 2 .0275 . 22149 2 .0025 .1118 22158 1 .0907 . 22200 2 .0109 . end format %td ddate
Comment