Dataset looks like the following. There are 1000's of IDs and 100,000's of observations. 'Wanted Value' is the desired output using the variable "Value". The number of observations for ID is not constant, normally between 5 and 30. There could be intermittent missing values in between which need to be repopulated plus or minus the date difference, depending upon the moving forward vs backward. Missing values are labelled as ".". Thanks for your help!! ID Date Value Date Diff Wanted Value 1 1/1/2000 . - 600-92-91-91 1 4/1/2000 . 91 600-92-91-91 1 7/1/2000 . 91 600-92-91 1 10/1/2000 . 92 600-92 1 1/1/2001 600 92 600 1 4/1/2001 600 90 600 1 7/1/2001 . 91 600+91 1 10/1/2001 730 92 730 2 1/1/2002 . 92 550-92 2 4/1/2002 550 90 550 2 7/1/2002 . 91 550+91 2 10/1/2002 600 92 600 2 1/1/2003 . 92 600+92 2 4/1/2003 . 90 600+92+90 2 7/1/2003 . 91 600+92+90+91 2 10/1/2003 . 92 600+92+90+91+92 2 1/1/2004 . 92 600+92+90+91+92+92 2 4/1/2004 . 91 600+92+90+91+92+92+91
... View more