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

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
.....

Comments

  • davetrousers
    davetrousers Posts: 5,862 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    Damned formatting, these should be in columns (ie the date in column A and the value in column B)
    .....

  • davetrousers
    davetrousers Posts: 5,862 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    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
    .....

  • superscaper
    superscaper Posts: 13,369 Forumite
    Part of the Furniture 10,000 Posts Combo Breaker
    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?"
    Moss
  • superscaper
    superscaper Posts: 13,369 Forumite
    Part of the Furniture 10,000 Posts Combo Breaker
    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?"
    Moss
  • davetrousers
    davetrousers Posts: 5,862 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    OK thanks, got it now
    .....

  • Stompa
    Stompa Posts: 8,390 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    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...
    Stompa
  • superscaper
    superscaper Posts: 13,369 Forumite
    Part of the Furniture 10,000 Posts Combo Breaker
    Stompa wrote: »
    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?"
    Moss
  • Stompa
    Stompa Posts: 8,390 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    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).
    Stompa
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

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

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.