+ Reply to Thread
Results 1 to 3 of 3

conditional if with vlookup

  1. #1
    Registered User
    Join Date
    06-16-2010
    Location
    Minnetonka, MN
    MS-Off Ver
    Excel 2010
    Posts
    43

    Cool conditional if with vlookup

    Hey everyone,

    I'm hoping you can help me out with this problem. I'm trying to do an if statement that has 2 conditions and if those are met, then perform a vlookup. Here is what I have so far:

    =if((A2:A100=G2)*(B2:B100=H2),vlookup(something on a different sheet),0)

    I get a return of all 0's and I know that they shouldn't all come back with the 0's. Any suggestions on my formula or suggestions for a new formula?

    Any help would be awesome, thanks

  2. #2
    Registered User
    Join Date
    07-09-2010
    Location
    California
    MS-Off Ver
    Excel 2002
    Posts
    2

    Re: conditional if with vlookup

    Perhaps using AND(cond_1,cond_2) would be appropriate.

    Try this:
    =if( AND(A2:A100=G2,B2:B100=H2),vlookup(something on a different sheet),0)

  3. #3
    Registered User
    Join Date
    06-16-2010
    Location
    Minnetonka, MN
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: conditional if with vlookup

    Using the AND function inside didn't work, I am getting the same results.

+ 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