+ Reply to Thread
Results 1 to 10 of 10

Vlookup to return specific value if cell value of vlookup is specific

  1. #1
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Vlookup to return specific value if cell value of vlookup is specific

    Hi all

    ...Having one of those days....

    I need to have a vlookup and if statement I believe....

    In need to vlookup and if the cell value to be returned is 'active' I would like "A" returned instead... and if is not equal to 'active', then blank

    TIA

    Shaz0503

  2. #2
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Vlookup to return specific value if cell value of vlookup is specific

    If(vlookupstatement="active","A","")

  3. #3
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Vlookup to return specific value if cell value of vlookup is specific

    soberguy....

    Thank you so much - I was nearly there myself - just left out the '=' ....

    rgds

  4. #4
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Vlookup to return specific value if cell value of vlookup is specific

    Happy to help. If you'd be so kind as to mark the thread solved, that would be most excellent.

  5. #5
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Vlookup to return specific value if cell value of vlookup is specific

    soberguy

    just a quick question, if I want to include additional values what should I use = eg active OR inactive

    I tried =IF(VLOOKUP(A4,AM_Weekly!C:D,2,)={"Active","Inactive"},"A") but returns "false"

    S

  6. #6
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Vlookup to return specific value if cell value of vlookup is specific

    Haven't really tried that before, but it would probably look like:
    =IF(OR(VLOOKUP(A4,AM_Weekly!C:D,2,)="Active",VLOOKUP(A4,AM_Weekly!C:D,2,)="Inactive"),"A")

  7. #7
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Vlookup to return specific value if cell value of vlookup is specific

    Soberguy

    =IF(OR(VLOOKUP(A4,AM_Weekly!C:D,2,)="Active",VLOOKUP(A4,AM_Weekly!C:D,2,)="Inactive"),"A","")

    works perfectly,,,,

    rgds

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Vlookup to return specific value if cell value of vlookup is specific

    Quote Originally Posted by soberguy View Post
    Haven't really tried that before, but it would probably look like:
    =IF(OR(VLOOKUP(A4,AM_Weekly!C:D,2,)="Active",VLOOKUP(A4,AM_Weekly!C:D,2,)="Inactive"),"A")
    Like this...

    IF(OR(VLOOKUP(A4,AM_Weekly!C:D,2,)={"Active","Inactive"}),"A","")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Vlookup to return specific value if cell value of vlookup is specific

    Thanks Tony,,

    Will keep that one also...

    sometimes it is so easy when its right in front of you...

    shaz0503

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Vlookup to return specific value if cell value of vlookup is specific

    You're welcome. Thanks for the feedback!

+ 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. VLOOKUP with multiple criteria. Return a specific date
    By gmazz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-14-2014, 08:03 PM
  2. [SOLVED] Vlookup in UserForm - Get Input from listbox, Lookup in specific table from specific sheet
    By s2jrchoi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2013, 09:00 AM
  3. choose one specific return from multiple returns of Vlookup
    By loaiky in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-28-2013, 12:06 PM
  4. [SOLVED] Combination IF/VLOOKUP to Return Specific Value
    By Shadefalcon in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-09-2013, 04:14 PM

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