+ Reply to Thread
Results 1 to 3 of 3

IF and Vlookup formula combined

  1. #1
    Registered User
    Join Date
    02-23-2008
    Posts
    5

    IF and Vlookup formula combined

    Hi there,
    I have combined two formulas in one cell and it is not working correctly.

    The Vlookup portion works and is returning data from my SAP data but my IF formulas isn't.
    Basically this formula should return the data from SAP unless, R11 is "Terminated", then it should write "terminated" in the cell.

    Please help, thank you!!!

    =VLOOKUP(A11,SAP,20,FALSE),IF(OR(R11="terminated","terminated"))

  2. #2
    Registered User
    Join Date
    09-22-2011
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003,2007, 2010
    Posts
    85

    Re: IF and Vlookup formula combined

    If you want to have the data returned only if they are not terminated, then your logic is backwards. Test for termination first, then if they are not, vlookup the data.

  3. #3
    Registered User
    Join Date
    02-05-2012
    Location
    Arizona, USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: IF and Vlookup formula combined

    Shouldn't it be
    =IF(R11="terminated","terminated",VLOOKUP(A11,SAP,20,FALSE))

+ 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