+ Reply to Thread
Results 1 to 6 of 6

Vlookup Return "Active" Value

  1. #1
    Registered User
    Join Date
    03-28-2017
    Location
    US
    MS-Off Ver
    2010
    Posts
    42

    Vlookup Return "Active" Value

    Hi,

    I have attached the spreadsheet of the example. I am trying to lookup value (A100, A200, etc.) and return the "Active" "Price".

    Thanks in advance for your help.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Vlookup Return "Active" Value

    Hi spider_min,

    There's no doubt a more efficient solution but this array formula will work for you. Input into cell B3 and confirm entry using ctrl + shift + enter (rather than just enter). The formula should have curly brackets round it if done correctly.

    Please Login or Register  to view this content.
    Hope this helps.

    Snook

  3. #3
    Registered User
    Join Date
    03-28-2017
    Location
    US
    MS-Off Ver
    2010
    Posts
    42

    Re: Vlookup Return "Active" Value

    Hi - It works, but when I move the table into different sheets/worksheets, it won't work.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Vlookup Return "Active" Value

    Without an attachment it is hard, the references need to refer to the sheetname as well as the range

    =LOOKUP(1,1/($D$3:$D$9=A3),$E$3:$E$9) is a non array based answer, but may need to be
    =LOOKUP(1,1/('Yourothersheetname'!$D$3:$D$9=A3),'Yourothersheetname'!$E$3:$E$9)

    if the active row is always the last row otherwise
    =LOOKUP(1,1/($D$3:$D$9=A3)*($F$3:$F$9="active"),$E$3:$E$9)

    and similar adjustments may need to be made for the other sheet
    Last edited by davsth; 02-28-2020 at 08:18 AM.

  5. #5
    Registered User
    Join Date
    03-28-2017
    Location
    US
    MS-Off Ver
    2010
    Posts
    42

    Re: Vlookup Return "Active" Value

    This one this workout perfectly. Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    =LOOKUP(1,1/($D$3:$D$9=A3)*($F$3:$F$9="active"),$E$3:$E$9)

  6. #6
    Registered User
    Join Date
    03-28-2017
    Location
    US
    MS-Off Ver
    2010
    Posts
    42

    Re: Vlookup Return "Active" Value

    Thank you for all your help.

+ 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] If vlookup return blank means "paid", otherwise is "unpaid"
    By Dewdrop in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2019, 05:51 AM
  2. [SOLVED] VLOOKUP to compare 2 columns and return "Yes" or "No" in 3rd column
    By rmccain in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2017, 09:38 PM
  3. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  4. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  5. Return "green", "yellow" or "red" from date/age and priority ranking
    By Cantaloop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2013, 12:12 AM
  6. VLookup to return "true" or "false"
    By Sph01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2011, 11:10 AM
  7. Replies: 3
    Last Post: 02-16-2011, 02:55 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