Skip to main content

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

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 12/1/2019, 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 the LOOKUP function to deal with this problem.

Vlookup between two dates and return corresponding value with formulas

Vlookup between two dates and return corresponding value with an amazing feature


Vlookup between two dates and return corresponding value with formulas

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

1. Enter the below formula into a blank cell where you want to place the result:

=LOOKUP(2,1/($B$2:$B$8<=E2)/($C$2:$C$8>=E2),$A$2:$A$8)

Note: In the above formua:

  • B2:B8 is the range of start dates and C2:C8 is the end date range in your table;
  • the E2 is the given date which you want to get its corresponding value.

2. And then, drag the fill handle down to the cells to get the result you need. See screenshot:

Notes:

  • If the date doesn’t exist, you will get an error value after typing this formula.
  • Here is another simple formula that also helps you:=LOOKUP(E2,$B$2:$C$8,$A$2:$A$8).

Vlookup between two dates or two values and return corresponding records in Excel

Kutools for Excel's LOOKUP between Two Values utility helps you to vlookup and return the corresponding records based on the given dates or values quickly and easily. Click to download Kutools for Excel!

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


Vlookup between two dates and return corresponding value with an amazing feature

If you don't want to remeber these painful formulas, Kutools for Excel's LOOKUP between Two Values feature can help you to solve this job as quickly as you need.

Tips:To apply this LOOKUP between Two Values feature, firstly, you should download the Kutools for Excel, and then apply the feature quickly and easily.

After installing Kutools for Excel, please do as this:

1. Click Kutools > Super Lookup > LOOKUP between Two Values, see screenshot:

2. In the LOOKUP between Two Values dialog box, please do the following operations:

  • Select the lookup value cells and output cells from the Lookup values and Output Range section;
  • Then, specify the corresponding items from the Data range section.

3. Then, click OK button, the matching records based on the given dates have been extracted as following screenshot shown:

Note: If you want to replace the error value when the date doesn’t exist with other specific text, please check Replace #N/A error value with a specified value option.

Click to Download Kutools for Excel and free trial Now!


More relative articles:

  • Vlookup Values Across Multiple Worksheets
  • In excel, we can easily apply the vlookup function to return the matching values in a single table of a worksheet. But, have you ever considered that how to vlookup value across multiple worksheet? Supposing I have the following three worksheets with range of data, and now, I want to get part of the corresponding values based on the criteria from these three worksheets.
  • Use Vlookup Exact And Approximate Match In Excel
  • In Excel, vlookup is one of the most important functions for us to search a value in the left-most column of the table and return the value in the same row of the range. But, do you apply the vlookup function successfully in Excel? This article, I will talk about how to use the vlookup function in Excel.
  • Vlookup Matching Value From Bottom To Top In Excel
  • Normally, the Vlookup function can help you to find the data from top to bottom to get the first matching value from the list. But, sometimes, you need to vlookup from bottom to top to extract the last corresponding value. Do you have any good ideas to deal with this task in Excel?
  • Vlookup Values From Right To Left In Excel
  • Vlookup is a useful function in Excel, we can use it to quickly return the corresponding data of the leftmost column in the table. However, if you want to look up a specific value in any other column and return the relative value to the left, the normal vlookup function will not work. Here, I can introduce you other formulas to solve this problem.

Best Office Productivity Tools

Supercharge Your Spreadsheets: Experience Efficiency Like Never Before with Kutools for Excel

Popular Features: Find/Highlight/Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns     Move Columns   |   Unhide Columns   |   Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolset12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   Many More...

Kutools for Excel boasts over 300 features, ensuring that what you need is just a click away...

Supports Office/Excel 2007-2021 & newer, including 365   |   Available in 44 languages   |   Enjoy a full-featured 30-day free trial.

kte tab 201905


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, 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!
Comments (30)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What if I have start dates and end dates for multiple projects that are being down simultaneously by different workers? How can I use the date and project to get the name of the worker?
This comment was minimized by the moderator on the site
LOOKUP(2,1/($A$2:$A$7<=F1)/($B$2:$B$7>=F1),$C$2:$C$7)
This comment was minimized by the moderator on the site
SHARVAN FOLLOW MWE


INSTA ID -SHARVAN.MANDAL93
This comment was minimized by the moderator on the site
suppose x employee OT done in jan-22 & claim in feb-22, again in mar-22 try to claim ot agst jan-22, then how to track/stop claim twice/double OT date in excel by manually
This comment was minimized by the moderator on the site
Thanks! Helped me a lot! Except the formula should be
=LOOKUP(1,1/($B$2:$B$8<=E2)/($C$2:$C$8>=E2),$A$2:$A$8)   (and not =LOOKUP(2,.....)As you are looking for a match with 1 instead of 2! (1/True(1)/True(1) = 1)
This comment was minimized by the moderator on the site
It is very helpful for me...Thanks a lot.....
This comment was minimized by the moderator on the site
Thank you very much, very helpful and clear instructions!!!
This comment was minimized by the moderator on the site
Same here, still finding the way to retrieve more than one value, Did you find the solution?

Thank you for your time!
This comment was minimized by the moderator on the site
dear, I need help. For Example, IF we have many entries against value "A" than how I can pick the latest date value using the formula in excel. and if I have many entries of different values how I can pick the latest date value. (Sorry For My English)
This comment was minimized by the moderator on the site
I have something similiar to this! Have you had any luck anywhere?
This comment was minimized by the moderator on the site
Same here , still finding the way to retrive more than one value, Did you find the solution ?

Thank you for your time!
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Hi. What is the logical explanation to use this formula: =LOOKUP(2,1/($A$2:$A$7<=F1)/($B$2:$B$7>=F1),$C$2:$C$7)? How does it work? Thanks.
This comment was minimized by the moderator on the site
a godsend - exactly what I was looking for! much thanks
This comment was minimized by the moderator on the site
hello, what if in the columns, there are data aside from dates. How can I get the date from the range?

E.g. Column A - 03/19/2019, Column B - Approved, Column C - Pending, Column D - ---. In this case, how can I get 03/19/2019?
This comment was minimized by the moderator on the site
i have two sheets, Sheet No 1 has Selling date, Grade & Item Code, Sheet no 2 has Price applicable from date, to date, Item code & Garde. please help to solve using vlookup, index or any other function in excel ?
This comment was minimized by the moderator on the site
Hello, what if I want to add another criteria. For example, if there was another column D called "Group ID" that I want to add in the formula. i.e. If group ID=302511 then LOOKUP(2,1/($A$2:$A$7<=F1)/($B$2:$B$7>=F1),$C$2:$C$7). Is this possible?
This comment was minimized by the moderator on the site
Hello, Tom,
Can you give your problem more detailed? You can insert a screenshot here.
This comment was minimized by the moderator on the site
Hi
I have a list of Jobs where the status of these jobs vary from INV, CMP to CLS.
is there a way i could lookup the Status Date to a corresponding job number to a different sheet
This comment was minimized by the moderator on the site
Thanks - can always rely on help from internet
This comment was minimized by the moderator on the site
I have two tables in a workbook.I need help to create a macro to run a report based on the dates as shown.


Sheet1


Name Due Date Amount Paid
JohnDoe3 23-Jan-18 $965.00 Yes
JohnDoe4 24-Jan-18 $145.00 Yes
JohnDoe5 25-Jan-18 $225.00 No
JohnDoe6 26-Jan-18 $336.00 No
JohnDoe7 27-Jan-18 $365.00 No
JohnDoe8 28-Jan-18 $124.00 No
JohnDoe9 29-Jan-18 $321.00 No
JohnDoe10 30-Jan-18 $333.00 No
JohnDoe11 31-Jan-18 $521.00 No
JohnDoe12 01-Feb-18 $333.00 Yes
JohnDoe13 02-Feb-18 $965.00 No
JohnDoe14 03-Feb-18 $145.00 No
JohnDoe15 04-Feb-18 $225.00 No
JohnDoe16 05-Feb-18 $336.00 No
JohnDoe17 06-Feb-18 $365.00 No
JohnDoe18 07-Feb-18 $124.00 No
JohnDoe19 08-Feb-18 $321.00 No
JohnDoe20 09-Feb-18 $333.00 No
JohnDoe1 10-Feb-18 $521.00 No
JohnDoe2 11-Feb-18 $333.00 No

and


Sheet2


FirstDate LastDate PayDay
19-Oct-17 01-Nov-17 16-Nov-17
02-Nov-17 15-Nov-17 30-Nov-17
16-Nov-17 29-Nov-17 14-Dec-17
30-Nov-17 13-Dec-17 28-Dec-17
14-Dec-17 27-Dec-17 11-Jan-18
28-Dec-17 10-Jan-18 25-Jan-18
11-Jan-18 24-Jan-18 08-Feb-18
25-Jan-18 07-Feb-18 22-Feb-18
08-Feb-18 21-Feb-18 08-Mar-18

Today is 05FEB18

If I run a report today (falls between 25-Jan-18 and 07-Feb-18 for pay period 22-Feb-18)


I want to pick up all the records for Due Dates 25JAn18 to 07FEB18 which has no in the Paid column and create a report.


Then update the paid column to yes.

the output should be as follows

JohnDoe5 25-Jan-18 $225.00
JohnDoe6 26-Jan-18 $336.00
JohnDoe7 27-Jan-18 $365.00
JohnDoe8 28-Jan-18 $124.00
JohnDoe9 29-Jan-18 $321.00
JohnDoe10 30-Jan-18 $333.00
JohnDoe11 31-Jan-18 $521.00
JohnDoe12 01-Feb-18 $333.00
JohnDoe13 02-Feb-18 $965.00
JohnDoe14 03-Feb-18 $145.00
JohnDoe15 04-Feb-18 $225.00
JohnDoe16 05-Feb-18 $336.00
JohnDoe17 06-Feb-18 $365.00
JohnDoe18 07-Feb-18 $124.00


Thanks for your help.
This comment was minimized by the moderator on the site
Hi,

pls. explain how the formula works. Why use "2" as lookup values and "1/" in lookup vector?
This comment was minimized by the moderator on the site
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?
This comment was minimized by the moderator on the site
Can you explain why this works? What is the 2,1 for?
This comment was minimized by the moderator on the site
sir how this formula work,pls get me step by step LOOKUP(2,1/($A$2:$A$50=$L$2),$C$2:$C$50
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
This is brilliant. Simplicity in explanation is perfect. One of the quickest formulae I've ever looked up to learn. Thank you.
This comment was minimized by the moderator on the site
Hi! Nice explanation, but how can we do the same exercise if we have multiple projects with the same dates? In that case I want the name of those projects to be returned not only a single value... Thanks!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations