+ Reply to Thread
Results 1 to 7 of 7

Look up the Nth value in a column (for instance the 2nd number)

  1. #1
    Registered User
    Join Date
    12-15-2020
    Location
    Amsterdam
    MS-Off Ver
    Office 365
    Posts
    3

    Look up the Nth value in a column (for instance the 2nd number)

    Heya people,

    Been struggling with this formula. I want to calculate something which will give me a number. I'm trying to make a formula that checks this number and then looks up in a column with numbers what the value is that matches this number.

    Note: when the result is 2 I don't need to have it find the number 2 specifically, but the 2nd number of the column, and then return what that number is.

    To complicate things, the result may also be 3.5 or 3.75 or something. This would mean 4th number - 3rd number * 0.5 + 3rd number.

    Attached is a sample sheet. For any additional info let me know, kinda hard to explain what I mean haha.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Look up the Nth value in a column (for instance the 2nd number)

    Hi,
    Try this in E4:
    =(INDEX($I$2:$I$13,ROUNDUP(E3,0))+INDEX($I$2:$I$13,ROUNDDOWN(E3,0)))/2

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Look up the Nth value in a column (for instance the 2nd number)

    Or:
    =(index($i$2:$i$13,ceiling(e8,1))+index($i$2:$i$13,floor(e8,1)))/2

  4. #4
    Registered User
    Join Date
    12-15-2020
    Location
    Amsterdam
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Look up the Nth value in a column (for instance the 2nd number)

    Thanks! This works for any whole value yes! Do you by any chance also know how to tweak it to calculate 3,25, 3,5 and 3,75 etc?

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Look up the Nth value in a column (for instance the 2nd number)

    It does calculate fractions.
    Please see attached.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-15-2020
    Location
    Amsterdam
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Look up the Nth value in a column (for instance the 2nd number)

    3.75 should return 4,5 though.

    - 3.75 is between the 3rd and 4th value
    - that means: (((4th value - 3rd value) * 0.75) + 3rd value)

    - 6.25 is between the 6th and 7th value
    - that means: (((7th value - 6th value) * 0.25) + 6th value)

    Not sure if this is possible because you'd need to know what the decimals are in the 'find' number

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Look up the Nth value in a column (for instance the 2nd number)

    Try this in E9:
    =((INDEX($I$2:$I$13,ROUNDUP(E8,0))-INDEX($I$2:$I$13,ROUNDDOWN(E8,0))))*($E8-INT($E8))+INDEX($I$2:$I$13,ROUNDDOWN(E8,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. [SOLVED] Find the column number of the first instance of a column with data
    By Tamarissa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-10-2020, 04:36 PM
  2. [SOLVED] Add number to end of text and increase number per instance
    By cossie2k in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-22-2015, 05:25 AM
  3. Replies: 2
    Last Post: 04-23-2015, 04:36 PM
  4. [SOLVED] Incorrect column number returned in INDEX, MATCH for nth instance
    By BuZZarD73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2014, 11:00 AM
  5. Replies: 3
    Last Post: 10-08-2013, 09:46 AM
  6. Number Each Instance in Corresponding Column
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2013, 02:21 PM
  7. Find the First Instance of a Number
    By Phillycheese5 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-18-2008, 10:59 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