+ Reply to Thread
Results 1 to 5 of 5

Return the value above the cell found from vlookup?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-25-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    179

    Return the value above the cell found from vlookup?

    Hi i have a very simplistic vlookup that returns a date all i want to do is return the date located in the cell above it but for some reason i just cant work out how to do it. Should i be using something instead of a vlookup?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Return the value above the cell found from vlookup?

    try using indx/match to find what you want, and in the 1st match, use -1 at the end
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    06-25-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    179

    Re: Return the value above the cell found from vlookup?

    Good Point, got it working thanks.

    =INDEX(BW2:BW171,(MATCH(U5,BW2:BW171,FALSE)-1),)

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Return the value above the cell found from vlookup?

    Try this structure:
    Formula: copy to clipboard
    =INDEX(date_column_range,MATCH(your_date,date_column_range,0)-1)

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Return the value above the cell found from vlookup?

    If you will be copying this down (or across) anywhere, you will need to absolute ($) some of those references

+ 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. How to get VLOOKUP to return zero is not found???
    By Tanasi in forum Excel General
    Replies: 8
    Last Post: 03-27-2009, 12:04 PM
  2. Vlookup, return empty cell (not #N/A) when result not found
    By haitham1984 in forum Excel General
    Replies: 4
    Last Post: 11-03-2008, 03:15 AM
  3. Vlookup, return zero if not found
    By molsansk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2006, 01:45 PM
  4. [SOLVED] vlookup to return cell position as to where result was found
    By Rock in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-12-2005, 09:06 PM
  5. [SOLVED] vlookup to return the cell positioning where the criteria is found
    By Rock in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2005, 12:07 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