+ Reply to Thread
Results 1 to 3 of 3

Include vlookup within if statement

Hybrid View

jpruffle Include vlookup within if... 07-14-2009, 05:45 PM
Paul Re: Include vlookup within if... 07-14-2009, 05:49 PM
jpruffle Re: Include vlookup within if... 07-14-2009, 05:52 PM
  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    Include vlookup within if statement

    Hi,

    How can you return a Vlookup as a true value in an If statement?

    For example

    =IF(A2>B2,"yes","no")
    To something like:

    =IF(A2>B2,"=VLOOKUP(AF5,commsafe,5,FALSE)","no")
    Pardon my ignorance and thank you for any help.
    Last edited by jpruffle; 07-14-2009 at 05:53 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Include vlookup within if statement

    You would leave out the "=" sign, for example:

    IF(A2>B2,VLOOKUP(AF5,commsafe,5,0),"no")

  3. #3
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    Re: Include vlookup within if statement

    Once again Paul Thank you.

+ 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