+ Reply to Thread
Results 1 to 4 of 4

The lookup fuction???

  1. #1
    Registered User
    Join Date
    10-16-2007
    Posts
    1

    The lookup fuction???

    I have a list of 12 numbers and I need to take a number and find out which one of the 12 numbers my number is grater than....

    So in:
    column A is a list of names
    column B is a list of thier indexs
    column C is the number of which line from the list the index is >

    the list is

    1 1.45
    2 4.36
    3 7.25
    4 10.15
    5 13.05
    6 15.95
    7 18.84
    8 21.74
    9 24.64
    10 27.54
    11 30.43
    12 33.33


    so if the index in column B is 22.4 the answer in C should be 8

    How do i go about building this lookup... or what ever other function should be used......

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: The lookup fuction???

    try something like...

    =if(vlookup(your_number,your_data_range,column_to_search_in,false)>your_number,"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: The lookup fuction???

    Working with your sample data, using MATCH() provides the desired answer.

    =MATCH(22.4,A2:A13,1)

    This version to deal with the #N/A error when your search value is lower than first range value.
    =IF(22.4<=A2,0,MATCH(22.4,A2:A13,1))
    and this version to account for exact match:
    =IF(22.4<=A2,0,MATCH(22.4,A2:A13,1)-COUNTIF(A2:A13,22.4))

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: The lookup fuction???

    hi, fclanton, C1 formula

    Please Login or Register  to view this content.

+ 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