Consulting

Results 1 to 3 of 3

Thread: Interpolation function with empty data

  1. #1

    Interpolation function with empty data

    Hello everyone, I just got interested in VBA and I seek help from veterans
    In fact I have a set of data collected for some weeks. Except that there's weeks where there is no data.
    I used a VBA function that interpolates the data. Except that the Xarray and Yarray used in this function must not contain null values​​.
    function is defined as follows: PINTERP (Xrange, yrange, celulle)
    An illustrative Excel file is attached with the VBA code ...

    Can you help me on this?

    Thank you in advance
    Attached Files Attached Files
    Last edited by realjumpy7; 04-22-2013 at 06:55 AM.

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    This uses a UDF (user defined function). "-" values cannot be used as a data value, Blank or zero is OK, or you can custom format 0 to show "-",
    Attached Files Attached Files
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    It's working perfectly, just what I need!!!
    Thanks a lot for your help mdmackillop...

Posting Permissions

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