+ Reply to Thread
Results 1 to 3 of 3

VBA to interpolate missing values in table

  1. #1
    Registered User
    Join Date
    10-25-2009
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2003
    Posts
    13

    VBA to interpolate missing values in table

    Dear all,

    I have a table (10000 records) contains a "column" field , "row" field and some values under "Value" field (sample example attached). I need to interoplate / extrapolate missing values within each COLUMN if enough minimum number of values exist to allow interpolation. Next, interpolate within each ROW for any missing values that havn't been filled from the prvious process (see example attached with explanation).

    I expect the following steps will be performed:

    -STEP 1:

    - For each COLUMN within the group, if there's at least 3 values, interpolate/ extrapolate linearly all missing values as necessary (column 1 within Group 1 above meets the criteria of 3 values)

    - Column 2 ' as an examlpe' has only 2 values, doesn't meet the criteria then skip

    - Column 3 meets the criteria( at least 3 values), then interpolate / extrapolate and so on

    STEP 2:

    Now, for each ROW across all columns within the group (row A, B, etc.) , interpolate / extrapolate all missing values. This should fill all values skiped from step 1 above. After finishing, move to the next group and so on

    I appreciate a vba macro to solve this. Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: VBA to interpolate missing values in table

    Hi adfo, please read the forum rules and then add links to the cross post in the Access forum. This is basically the same question asked twice.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: VBA to interpolate missing values in table

    It's been deleted there, teylin.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1