We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
Help. Interpolating in excel
davetrousers
Posts: 5,862 Forumite
in Techie Stuff
Hi I have a query, how do I interpolate in excel?
I have some daily data, but for some days there is no data, so how do I interpolate some values to fill the gap. This is what I have:
27-Jul-04 135.6 28-Jul-04 0 29-Jul-04 0 30-Jul-04 0 31-Jul-04 0 01-Aug-04 237.25
How can I interpolate values for 28th to 31st July?
Thanks
I have some daily data, but for some days there is no data, so how do I interpolate some values to fill the gap. This is what I have:
27-Jul-04 135.6 28-Jul-04 0 29-Jul-04 0 30-Jul-04 0 31-Jul-04 0 01-Aug-04 237.25
How can I interpolate values for 28th to 31st July?
Thanks
.....
0
Comments
-
Damned formatting, these should be in columns (ie the date in column A and the value in column
.....0 -
27-Jul-04 135.6
28-Jul-04 0
29-Jul-04 0
30-Jul-04 0
31-Jul-04 0
01-Aug-04 237.25.....0 -
Well mathematically I suppose it depends on how you assume the data behaves. Making a typical assumption that it's linear then you basically want to go in equal incremental steps every day until August. So (237.25-135.6)/4 added to the value/cell before it, so for 28th it'd be 135.6+(237.25-135.6)/4. Not thinking clearly today but I think that's right (haven't checked)."She is quite the oddball. Did you notice how she didn't even get excited when she saw this original ZX-81?"
Moss0 -
Just to turn that into "Excel speak", assuming your above table started at A1, then the formula you'd want in the first of the "zero" cells would be B1+($B$6-$B$1)/4. I used the $ because they're absolute references so you can just copy and paste that exact formula to the other cells without the references being messed up."She is quite the oddball. Did you notice how she didn't even get excited when she saw this original ZX-81?"
Moss0 -
OK thanks, got it now.....0
-
If you leave the unknowns empty, you can select the range up to and including the known values either side of your unknowns, then use Edit > Fill > Series...Stompa0
-
If you leave the unknowns empty, you can select the range up to and including the known values either side of your unknowns, then use Edit > Fill > Series...
I thought there'd be an easier way in Excel. I was only thinking about the actual maths approach first. I presume that the series function assumes a linear interpolation as I did."She is quite the oddball. Did you notice how she didn't even get excited when she saw this original ZX-81?"
Moss0 -
superscaper wrote: »I presume that the series function assumes a linear interpolation as I did.
By default, yes. It does also offer some other alternatives, though I've never used them and quite frankly it's not entirely obvious what they're for (and they don't appear to take notice of both the start and end values).Stompa0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.5K Banking & Borrowing
- 254.1K Reduce Debt & Boost Income
- 455K Spending & Discounts
- 246.6K Work, Benefits & Business
- 602.9K Mortgages, Homes & Bills
- 178.1K Life & Family
- 260.6K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards