+ Reply to Thread
Results 1 to 8 of 8

Conditional VLookup

  1. #1
    Forum Contributor
    Join Date
    02-23-2014
    Location
    Melbourne
    MS-Off Ver
    Microsoft 365
    Posts
    174

    Conditional VLookup

    Hi Experts
    I have a table in which I am doing a simple vlookup to populate the cell

    =VLOOKUP([@[Product No]],CategoryData,3,FALSE)

    It works, but now I need to make it conditional

    I have another column in the table called [@[Outsourced/Cancelled In SAP]] and need the formula to check this cell first

    IF([@[Outsourced/Cancelled In SAP]]=C, then Cancelled
    IF([@[Outsourced/Cancelled In SAP]]=OS, then Out Sourced
    IF([@[Outsourced/Cancelled In SAP]]=NA, then Non Assembled
    If not, do the VLOOKUP([@[Product No]],CategoryData,3,FALSE)

    Any help, please

    Thanks
    Rahul

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,409

    Re: Conditional VLookup

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Conditional VLookup

    Hi Rahul- perhaps this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you have your answer, please mark the thread as SOLVED (Thread Tools up top)...and perhaps click the Add Reputation star below any posts you found helpful. Thanks!-Lee

  4. #4
    Forum Contributor
    Join Date
    02-23-2014
    Location
    Melbourne
    MS-Off Ver
    Microsoft 365
    Posts
    174

    Re: Conditional VLookup

    Hi TMS
    Thanks a lot
    It works like a charm

    Appreciated

  5. #5
    Forum Contributor
    Join Date
    02-23-2014
    Location
    Melbourne
    MS-Off Ver
    Microsoft 365
    Posts
    174

    Re: Conditional VLookup

    Hi Leelnich
    Your solution also works like a charm
    Thanks

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,409

    Re: Conditional VLookup

    You're welcome. Thanks for the rep.


    You'd virtually written it yourself

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,409

    Re: Conditional VLookup

    Another variation (untested):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,409

    Re: Conditional VLookup

    All three formulae could benefit from a seconf IFERROR

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Conditional Vlookup...
    By erkamu in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-18-2015, 03:51 PM
  2. [SOLVED] 'Conditional' VLOOKUP possible?
    By L. Oversteegen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2014, 02:12 AM
  3. Excel 2007 : Conditional Vlookup
    By exchangejames in forum Excel General
    Replies: 3
    Last Post: 03-07-2012, 11:05 AM
  4. conditional if with vlookup
    By vancoservices in forum Excel General
    Replies: 2
    Last Post: 07-12-2010, 02:28 PM
  5. Conditional or VLookup?
    By stemcell1 in forum Excel General
    Replies: 3
    Last Post: 01-14-2009, 12:48 PM
  6. Replies: 12
    Last Post: 08-08-2006, 11:40 AM
  7. Conditional VLOOKUP?
    By uberathlete in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2005, 11:05 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