+ Reply to Thread
Results 1 to 9 of 9

Vlookup with IF Function

  1. #1
    Registered User
    Join Date
    01-25-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    97

    Unhappy Vlookup with IF Function

    Dear All,

    Pls advise how to use vlookup with "if" function. (Vlookup with 2 conditions is not working)
    Pls find attached file.

    Regards,
    Sun
    Attached Files Attached Files
    Last edited by Dr.SUN; 03-25-2010 at 03:26 AM. Reason: Forget to attach file.....

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Vlookup with IF Function

    with such a little data it's hard to give anything reasonable.. But I'll try:

    =IF( condition, VLOOKUP FUNCTION, else)

  3. #3
    Registered User
    Join Date
    01-25-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: Vlookup with IF Function

    sorry now i have attached file zbor..................plz give me solution

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Vlookup with IF Function

    Dr. Sun,

    there is still rather little information about the nature of your lookup.

    Assuming that you want to return the name for the values in columns H and I, try this in J2 and copy down

    =IFERROR(INDEX(B:B,MATCH(H2&I2,INDEX(C:C&D:D,0),0)),"no match")

    The first data pair will not find a match. There is no name with Age = x and Scholarship = 1000. Copied down, the formula will find the name b in row 3 and the name c in row 4

  5. #5
    Registered User
    Join Date
    01-25-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: Vlookup with IF Function

    dear teylyn first u see my attached file and confirm.

    Regards,
    SUN

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Vlookup with IF Function

    SUN, I created the formula in your file attachment. You can copy it and paste it into cell J2, then copy down.

    Should the formula not do what you require, please be more specific with your requirements. You still have not specified what you want the lookup to return.

  7. #7
    Registered User
    Join Date
    01-25-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: Vlookup with IF Function

    x 1000
    y 1000
    z 2500
    Scholarship amount is not displaying...............

  8. #8
    Registered User
    Join Date
    01-25-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: Vlookup with IF Function

    U c Ihv used 2 conditions in col d. results are not as expected.

  9. #9
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Vlookup with IF Function

    Sun, please use English, not chat talk.

    Tell me:
    - What do you want to return?
    - Where? in which cells?
    - Why? what are the conditions?

+ 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