+ Reply to Thread
Results 1 to 6 of 6

what's wrong with this formula (for linear Interpolation)

  1. #1
    Registered User
    Join Date
    10-22-2009
    Location
    cairo egypt
    MS-Off Ver
    Excel 2003
    Posts
    17

    what's wrong with this formula (for linear Interpolation)

    Dear all

    what's wrong with this formula, it is supposed to be linear interpolation, type the temperature(x) in C10 to give the factor (y), but it always give REF error.

    X values are in A10 to A38
    Y values are in B10 to B38

    =INDEX($A$10:$B$38,MATCH(C10,$A$10:$A$38,1),2)+
    (C10-INDEX($A$10:$B$38,MATCH(C10,$A$10:$A$38,1),1))*
    (INDEX($A$10:$B$38, MATCH(C10,$A$10:$A$38,1)+1,2)-
    INDEX($A$10:$B$38, MATCH(C10,$A$10:$A$38,1),2))/
    (INDEX($A$10:$B$38, MATCH(C10,$A$10:$A$38,1)+1,1)-
    INDEX($A$10:$B$38,MATCH(C10,$A$10:$A$38,1),1))


    any suggesions please!

    thanks for your patience
    Last edited by salmanisn; 04-18-2010 at 07:40 AM. Reason: attach file

  2. #2
    Registered User
    Join Date
    01-08-2009
    Location
    Istanbul, Turkey
    MS-Off Ver
    Excel 2010 - 64 bit
    Posts
    46

    Re: what's wrong with this formula

    can you upload an attachment

  3. #3
    Registered User
    Join Date
    10-22-2009
    Location
    cairo egypt
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: what's wrong with this formula

    this is the attach
    sorry
    Attached Files Attached Files

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: what's wrong with this formula

    Where's the formula in the first post, not everyone can download. Also review your thread title
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

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

    Re: what's wrong with this formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

  6. #6
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: what's wrong with this formula (for linear Interpolation)

    Your error comes from the two occurrences of:
    Please Login or Register  to view this content.
    The MATCH portion evaluates to 30 but you only have 29 rows in the INDEX array.

    To find the error, go to the Formula tab and then to the Formula Auditing group. Click the Evaluate Formula. In the new window keep clicking the Evaluate button to find what is causing the #Ref error.

+ 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