+ Reply to Thread
Results 1 to 12 of 12

How to get value corresponding to the input value from a table

  1. #1
    Registered User
    Join Date
    03-10-2015
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2010
    Posts
    5

    How to get value corresponding to the input value from a table

    Hi,
    I have a table with 2 columns, copy attached.
    One column has length ( in millimeters ), and other has volume ( in liters ).

    a. I would like that if I input a length in mm, then its corresponding volume be displayed.
    b. At number of times, the length I input will not be present in the data table. In such case I be displayed the entry above and below than my figure. And further based on these two entries, the average volume be displayed.

    Example from the attached table :

    (a) I input 400, so in this case the volume corresponding to 400 being 2326 liters be displayed.
    (b) I input 428. Now there is no such entry in the table, rather there is 425 and then 430. So in such case the differences between these table values calculated ; meaning 430-425 = 5, and then 2586 - 2534 = 52. Then divide these numbers; 52 / 5 = 10.4. So it means that for each 1 mm increment, the volume rises by 10.4 liters. As our required length is 428, so we get total volume by adding these increments into the liters corresponding to 425; as 2534 + (10.4x3 ) = 2565.2

    Can anyone help me with the above ?

    Thanks in advance & Regards.

    Omar
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: How to get value corresponding to the input value from a table

    Is it similar to this thread?

    Is the length interval alway 5?
    Quang PT

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: How to get value corresponding to the input value from a table

    If you have your criteria in Cell C1 then try
    =IFERROR(INDEX(B2:B23,MATCH(C1,A2:A23,0)),INDEX(B2:B23,MATCH(C1,A2:A23))+(INDEX(B2:B23,MATCH(C1,A2:A23)+1)-INDEX(B2:B23,MATCH(C1,A2:A23)))/(INDEX(A2:A23,MATCH(C1,A2:A23)+1)-INDEX(A2:A23,MATCH(C1,A2:A23)))*(C1-INDEX(A2:A23,MATCH(C1,A2:A23))))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    03-10-2015
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: How to get value corresponding to the input value from a table

    It may be similar to that Vlookup thread, but I am not sure myself.

    YES, the interval is always "5 ".

  5. #5
    Registered User
    Join Date
    03-10-2015
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: How to get value corresponding to the input value from a table

    It may be similar to that Vlookup thread, but I am not sure myself.

    YES, the interval is always "5 ".

  6. #6
    Registered User
    Join Date
    03-10-2015
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: How to get value corresponding to the input value from a table

    i am unable to understand how to go about the Criteria

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: How to get value corresponding to the input value from a table

    So, does Siva's solution work?
    Last edited by bebo021999; 03-10-2015 at 11:19 AM.

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: How to get value corresponding to the input value from a table

    see the attached file
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,292

    Re: How to get value corresponding to the input value from a table

    If you have your criteria in Cell C1 then try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: How to get value corresponding to the input value from a table

    My solution:

    =IFERROR(LOOKUP(LOOKUP(C1,$A$2:$A$23),$A$2:$A$23,$B$2:$B$23)+LOOKUP(LOOKUP(C1,$A$2:$A$23,$A$3:$A$24),$A$3:$A$23,$B$3:$B$23-$B$2:$B$22)*(C1-LOOKUP(C1,$A$2:$A$23))/5,$B$23)
    Attached Files Attached Files

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: How to get value corresponding to the input value from a table

    @Czeslaw,

    Percentile and percentrank do a great job! Although it does not work for first and last value.

    It should be perfect with iferror combination! Thanks!

  12. #12
    Registered User
    Join Date
    03-10-2015
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: How to get value corresponding to the input value from a table

    @nflsales . Thank you very much.
    Your help has solved my problem 100%. Thanks once again
    Regards.
    Omar

    Quote Originally Posted by nflsales View Post
    see the attached file

+ 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. Replies: 2
    Last Post: 08-27-2014, 03:13 PM
  2. Input Cell to create table with input # of rows
    By pgreenway in forum Excel General
    Replies: 3
    Last Post: 05-04-2011, 03:18 PM
  3. Input table -> Output table
    By liquidicy in forum Excel General
    Replies: 2
    Last Post: 09-01-2009, 07:27 PM
  4. Daily input to one same table
    By abusuffian in forum Excel General
    Replies: 7
    Last Post: 02-20-2009, 04:24 AM
  5. input table
    By newo in forum Excel General
    Replies: 2
    Last Post: 06-20-2007, 08:30 AM

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