Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to vlookup between two dates and return corresponding value in Excel?

doc-vlookup-date-1

Supposing you have a report of some projects schedule, now, you want to get the specific project of a given time which is between two given dates of the schedule. Take the following screenshot data for example, I would like to look up the given date 8/13/2015, if this date falls between the start dates and end dates within the report, then return its corresponding project name. This article, I will introduce you the LOOKUP function to deal with this problem.

Vlookup between two dates and return corresponding value with LOOKUP formula


Vlookup for a value in a list:

With this formula of Kutools for Excel, you can quickly vlookup the exact value from a list without any formulas.

doc-vlookup-function-6

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


arrow blue right bubble Vlookup between two dates and return corresponding value with LOOKUP formula


To get the relative value which date falls between two dates, the below Lookup formula may help you. Please do as this:

Enter this formula into a blank cell where you want to place the result: =LOOKUP(2,1/($A$2:$A$7<=F1)/($B$2:$B$7>=F1),$C$2:$C$7), (A2:A7 is the range of start dates and B2:B7 is the end date range in your report, the F1 is the given date which you want to get its corresponding value.), and then press Enter key to get the result you need. See screenshot:

doc-vlookup-date-2

Note: If the date doesn’t exist, you will get an error value after typing this formula.



Related articles:

How to vlookup to return multiple values in one cell in Excel?

How to vlookup next largest value in Excel?

How to vlookup in two dimensional table in Excel?



Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Ann · 1 years ago
    Hi,

    pls. explain how the formula works. Why use "2" as lookup values and "1/" in lookup vector?
  • To post as a guest, your comment is unpublished.
    Niher · 2 years ago
    How to solve the following problem
    Date Range 50000 100000 200000
    01/07/2010 30/06/2011 460 920 1840
    01/07/2011 29/02/2012 502 1005 2011
    01/03/2012 22/05/2015 560 1120 2241
    23/05/2015 16/05/2017 480 960 1920

    I want investment return of $100000 for the date 03/04/2013. What will be the formula?
  • To post as a guest, your comment is unpublished.
    Fayley · 2 years ago
    Can you explain why this works? What is the 2,1 for?
  • To post as a guest, your comment is unpublished.
    digvijay · 2 years ago
    sir how this formula work,pls get me step by step
    LOOKUP(2,1/($A$2:$A$50=$L$2),$C$2:$C$50
    • To post as a guest, your comment is unpublished.
      Manuelle · 2 years ago
      Yes, Why 2,1/

      In fact I need to Vlook up a date in a range of dates like bellow, but th formula doesn't work #REF ! I don't know why..
      2010-04-01 2010-10-31 À date P-6
      2011-04-01 2011-10-31 À date P-5
      2012-04-01 2012-10-31 À date P-4
      2013-04-01 2013-10-31 À date P-3
  • To post as a guest, your comment is unpublished.
    NT · 2 years ago
    When try with this in F2 =Lookup(F1,$A$2:$B$7,$C$2:$C$7) got the similar result. Can you pl explain the difference and why 2 been used as lookup value.
    • To post as a guest, your comment is unpublished.
      ryan · 1 years ago
      I think it's because that's the number of lookup factors you have. I tried it with three factors and I used 3 as the lookup value. I'm not sure exactly, but I think by putting "3" and then using the "/" to separate the lookup vectors you tell Excel to search for the three following inputs to return the output.