I am stumped on this one bad. I have a column with the the following values for example {0,0,0,8,4,0,5,1,6,0,9,0,0}. I need to replace only the zeros at the beginning and end of the column with the last non zero value at each end. In this example the new column should look like this {8,8,8,8,4,0,5,1,6,0,9,9,9}. Also, not always there will be a zero value in the middle of the column, but I need to watch for this "if" situation too. The the new data range can be placed in the column right next to the original. Excel function is preferred but VBA could also work. Any help will be much appreciated. Thanks!