Google-sheets – How to automatically fill missing data in Google Spreadsheet

google sheetsgoogle-sheets-arrayformulagoogle-sheets-charts-trendlines

I'm searching for the exact same thing as Google Spreadsheet: How to fill in missing values (inbetween filled values) automatically

I made a spreadsheet for tracking weight, where each row is one day, and one column is weight. Although I've had Google Spreadsheet create a row for every date in the year, I only measure my weight a few times a week. What I would like is a formula to tell Google Docs to use "the last manually filled entry higher in the column", or something along these lines.

Ideally, the last filled row though, will be a manual entry (i.e., hopefully I could paste the formula into all cells in the column, and blank rows between manually-entered rows are filled, but nothing after the last manual entry).

Even more ideally, between two manually filled rows (i.e., row 10 and row 15), the formula would be able to interpolate between the two, but I realize that is asking a bit much.

I have no experience in making these formulas though, can anyone point me to somewhere to start to solve this problem?

But the solution provided doesn't seem to work for me.

Can someone help me?

Best Answer

There's multiples ways to do this :

I used =Trend but =Growth works too.

=TREND(C2:C11,A2:A11,A12:A24)

=Forecast is an amazing function too.

=FORECAST(A3,$B$2:$B$11,$A$2:$A$11)

You can use Arrayformula for extra lazyness :

=ARRAYFORMULA(FORECAST(A3:A24,$B$2:$B$11,$A$2:$A$11))

Theses formulas will be accurate the more data you feed them.
I updated your sheet. Similar question on stackoverflow.