+ Reply to Thread
Results 1 to 4 of 4

If with vlookup

  1. #1
    Registered User
    Join Date
    11-23-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    19

    If with vlookup

    This is what i am working on
    =IF(I4<40,"U",VLOOKUP(I4,$AE$1:$AF$61,2,FALSE))

    How i want it is if the Number is 40 below they get a "U"

    and thing over it uses the vlook up

    100 A
    99 A
    98 A
    97 A
    96 A
    95 A
    94 A
    93 A
    92 A
    91 A
    90 A
    89 A
    88 A
    87 A
    86 A
    85 A
    84 A
    83 A
    82 A
    81 A
    80 A
    79 B
    78 B
    77 B
    76 B
    75 B
    74 B
    73 B
    72 B
    71 B
    70 B
    69 C
    68 C
    67 C
    66 C
    65 C
    64 C
    63 C
    62 C
    61 C
    60 C
    59 D
    58 D
    57 D
    56 D
    55 D
    54 D
    53 D
    52 D
    51 D
    50 D
    49 E
    48 E
    47 E
    46 E
    45 E
    44 E
    43 E
    42 E
    41 E
    40 E

    Will this work because i am getting an #N/A error in some cells

    Can anyone help please.......

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: If with vlookup

    Instead try this formula,

    =LOOKUP(I4,{0,40,50,60,70,80},{"U","E","D","C","B","A"})

    Hope I got the intervals correct.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: If with vlookup

    The value in I4 does not exist in the range AE1:AF61
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: If with vlookup

    Special-K, that's true,

    you could change

    =IF(I4<40,"U",VLOOKUP(I4,$AE$1:$AF$61,2,FALSE))

    to

    =IF(I4<40,"U",VLOOKUP(I4,$AE$1:$AF$61,2,TRUE))

    if you sort the data in col AE from smallest to largest value. Then it would work similarly to the lookup formula I posted above.

    Another alternative,

    =VLOOKUP(I4,{0,"U";40,"E";50,"D";60,"C";70,"B";80,"A"},2,TRUE)

    Cheers,
    berlan

+ 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] When vlookup ragnes is mutiple: How do vlookup value finding occurrence against coresspond
    By silambarasan.J in forum Excel Formulas & Functions
    Replies: 34
    Last Post: 07-07-2015, 09:32 AM
  2. Replies: 3
    Last Post: 12-04-2014, 01:27 PM
  3. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  4. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  5. [SOLVED] Vlookup is not working and giving =vlookup(B2,$T$2:$U$135,2,false) this kind of values.
    By yogeshsharma1981 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2013, 04:08 PM
  6. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  7. Replies: 5
    Last Post: 07-29-2009, 07:53 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