+ Reply to Thread
Results 1 to 3 of 3

How do i convert this line into a vlookup?

Hybrid View

  1. #1
    Registered User
    Join Date
    12-16-2008
    Location
    Massachusetts
    Posts
    17

    How do i convert this line into a vlookup?

    How could I convert this 'IF' into a VLOOKUP function?

    =IF(H20 is inbetween 12-14),1,IF(H20 is inbetween 15-17),2,IF(H20 is inbetween 18-19),3,IF(H20 is inbetween 20-21),4,IF(H20 is inbetween 22-23),5,IF(H20 is inbetween 24-25),6,IF(H20 is inbetween 26-27),7,IF(H20 is inbetween 28-30),8,IF(H20 is inbetween 31-32),9,IF(H20>33),10,"")

    I know "is in between" is not part of any excel function, just wanted to spell it out for clarity of what it is I want to do.

    Thanks in advance.
    Last edited by jllav; 05-27-2009 at 04:45 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How do i convert this line into a vlookup?

    Try:

    =LOOKUP(H20,{0,12,15,18,20,22,24,26,28,31,33},{"",1,2,3,4,2,6,7,8,9,10})
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-16-2008
    Location
    Massachusetts
    Posts
    17

    Re: How do i convert this line into a vlookup?

    Sweeeeet, worked like a charm.

+ 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