+ Reply to Thread
Results 1 to 11 of 11

get cell value if vlookup returns a specific data

Hybrid View

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: get cell value if vlookup returns a specific data

    Hey guys,
    After lots of trial and error, I finally figured out the formula. I didn't use vlookup. Here it is:

    =IFERROR(INDEX(Sheet1!$B$4:$B$20,MATCH(Sheet2!$A$6,Sheet1!C$4:C$20,0)),"")
    For those who need it, here's an explanation of what it does.

    1. Cells B4:B20 in sheet1, contains the names of my co-workers
    2. Cell A6 in sheet 2 contains "AM".
    3. Cells C4:C20 in sheet 1, is the row that the formula needs to "look in" and it has a date in cell C4.

    If someone is working "AM" on 12/06/2013, the formula will find the corresponding name in cell B4:20 and drop it in sheet 2.

    Thanks for your response.

    Regards,
    Amar.

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: get cell value if vlookup returns a specific data

    Hi

    And how, exactly, is that supposed to refer to what you originally posted??
    There is no similarity between this formula and the information you posted on Sheet Test.xls
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

+ 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