+ Reply to Thread
Results 1 to 6 of 6

Taking number in between for interpolation

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Taking number in between for interpolation

    Hi all,

    I need help to take number in between cells. For example, I have numbers 1, 2, 3, 4, 5, 6, 7. When I type 5 in a column, I want to have 4 and 6, above and below 5. I am doing this to ease interpolation, so that whenever I want to do interpolation, I just need to type what number, I would like to have to be interpolated.

    Thanks for the help.

    Attached file is the example, it may help and may not help.
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Taking number in between for interpolation

    Perhaps:

    In D9:
    =INDEX(A2:A7;MATCH(D10;A2:A7;1))

    In D11:
    =INDEX(A2:A7;MATCH(D10;A2:A7;1)+1)

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Taking number in between for interpolation

    In D9
    =IFERROR(INDEX(A$2:A$7,MATCH($D$10,$A$2:$A$7,0)),INDEX(A$2:A$7,MATCH($D$10,$A$2:$A$7,1)))

    In D11
    =IFERROR(INDEX(A$2:A$7,MATCH($D$10,$A$2:$A$7,0)),INDEX(A$2:A$7,MATCH($D$10,$A$2:$A$7,1)+1))

    In E9
    =INDEX(B$2:B$7,MATCH($D9,$A$2:$A$7,0))
    Copy down and across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    03-12-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Taking number in between for interpolation

    In D9:
    =INDEX(A2:A7;MATCH(D10;A2:A7;1))
    In D11:
    =INDEX(A2:A7;MATCH(D10;A2:A7;1)+1)
    This formulas work perfectly, thanks!!!

    In D9
    =IFERROR(INDEX(A$2:A$7,MATCH($D$10,$A$2:$A$7,0)),INDEX(A$2:A$7,MATCH($D$10,$A$2:$A$7,1)))
    In D11
    =IFERROR(INDEX(A$2:A$7,MATCH($D$10,$A$2:$A$7,0)),INDEX(A$2:A$7,MATCH($D$10,$A$2:$A$7,1)+1))
    In E9
    =INDEX(B$2:B$7,MATCH($D9,$A$2:$A$7,0))
    These also work perfectly, with bonus formula that really really helps!!!

    Thanks all!!

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Taking number in between for interpolation

    Glad it works

  6. #6
    Registered User
    Join Date
    03-12-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Taking number in between for interpolation

    But for Ace_XL formula, when I put number that is the same with number in the data, the interpolation doesn't work. I don't know what is wrong with your formula. In the interpolation cell shows #DIV/0!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find row number of a value from a table for interpolation
    By develaavi in forum Excel General
    Replies: 1
    Last Post: 02-13-2014, 01:55 AM
  2. Macro Loop until Negative number is reached and perform an interpolation
    By anaessens in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2012, 09:54 AM
  3. Taking the number from a Web page through VBA
    By waffffi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2012, 05:30 AM
  4. taking the Zero out before a number
    By oakman in forum Excel General
    Replies: 4
    Last Post: 07-03-2008, 08:56 AM
  5. Taking numbers out of a number
    By 93Akkord in forum Excel General
    Replies: 10
    Last Post: 09-05-2007, 12:40 PM

Tags for this Thread

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