+ Reply to Thread
Results 1 to 4 of 4

help with index or lookup function

  1. #1
    Registered User
    Join Date
    12-21-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    1

    Question help with index or lookup function

    Hello,
    Can someone help me with index function for the below situation?

    Criteria
    Ratio Rating
    15% 1
    20% 2
    25% 3
    30% 4
    35% 5
    40% 6
    45% 7
    50% 8

    Actual:
    Ratio Rating
    16% *

    *What is the index function that can return rating of 2 for ratio of 16%?

    Basically, I want a function that can do the following
    if the ratio is <15%, return 1
    if the ratio is >=15% but <20%, return 2
    if the ratio is >=20% but <25%, return 3
    and so on…

    Any help would be greatly appreciated.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,795

    Re: help with index or lookup function

    can you sort the list the other way round ?
    then use index/match with -1
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: help with index or lookup function

    Try it like this:

    =IFERROR(VLOOKUP(A15,A$2:B$10,2,0),INDEX(B$2:B$10,MATCH(A15,A$2:A$10)+1))

    Hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: help with index or lookup function

    Hi All,

    in D2 the ratio.


    =MAX(1,INT((D2-0.05)/0.05))


    Hope it helps
    Last edited by canapone; 12-22-2018 at 12:07 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

+ 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] Use of INDEX with or without MATCH function or Lookup function
    By GStone in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-07-2018, 09:52 AM
  2. Index/Aggregate Function for Lookup
    By VirenS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-15-2017, 12:09 PM
  3. Count using V lookup or Index function
    By omer123456 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-11-2017, 03:02 PM
  4. Index/Aggregate Function for Lookup
    By VirenS in forum Excel General
    Replies: 0
    Last Post: 06-16-2016, 04:28 AM
  5. [SOLVED] need help using a lookup or index function
    By benitobo in forum Excel General
    Replies: 1
    Last Post: 06-22-2015, 10:04 PM
  6. [SOLVED] INDEX/LOOKUP function for Matrix
    By 2011 in forum Excel General
    Replies: 4
    Last Post: 05-31-2012, 09:55 AM
  7. Lookup function or Index
    By anelson02 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-10-2009, 06:41 PM

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