Table of Contents
The VLOOKUP function in Google Sheets allows users to retrieve data based on a specified date. This function can be used by entering the date as the lookup value and selecting the range of data to search within. The function will then return the corresponding data from the chosen range that matches the specified date. This can be useful for organizing and analyzing data by date, and can save time and effort when manually searching for specific information.
Google Sheets: Use VLOOKUP by Date
You can use the following syntax to use a VLOOKUP by date in Google Sheets:
=VLOOKUP(D2,A2:B9,2,FALSE)
This particular formula looks up the date in cell D2 in the range A2:B9 and returns the corresponding value in column 2 of the range.
Note: The FALSE argument tells Google Sheets to look for exact matches instead of approximate matches.
The following example shows how to use this syntax in practice.
Example: Use VLOOKUP by Date in Google Sheets
Suppose we have the following dataset in Google Sheets that shows the total sales of some product on various dates:

We can use the following formula with VLOOKUP to look up the date value in cell D2 in column A and return the corresponding sales value in column B:
=VLOOKUP(D2,A2:B9,2,FALSE)
The following screenshot shows how to use this formula in practice:

The VLOOKUP formula returns 12, which is the sales value that corresponds to the date 5/26/2022 in the original dataset.
Note that this formula assumes the values in column A are in a valid date format and that the value we supply to the VLOOKUP formula is also in a valid date format.
If the value that we supply to the VLOOKUP formula is not valid, then the formula will simply return #N/A as a result:

Since 5.26.2022 is not a valid date format, the VLOOKUP formula returns #N/A as a result.
The following tutorials explain how to perform other common tasks in Google Sheets:
Cite this article
stats writer (2024). How can I use the VLOOKUP function in Google Sheets to retrieve data by date?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-the-vlookup-function-in-google-sheets-to-retrieve-data-by-date/
stats writer. "How can I use the VLOOKUP function in Google Sheets to retrieve data by date?." PSYCHOLOGICAL SCALES, 27 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-the-vlookup-function-in-google-sheets-to-retrieve-data-by-date/.
stats writer. "How can I use the VLOOKUP function in Google Sheets to retrieve data by date?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-the-vlookup-function-in-google-sheets-to-retrieve-data-by-date/.
stats writer (2024) 'How can I use the VLOOKUP function in Google Sheets to retrieve data by date?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-the-vlookup-function-in-google-sheets-to-retrieve-data-by-date/.
[1] stats writer, "How can I use the VLOOKUP function in Google Sheets to retrieve data by date?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I use the VLOOKUP function in Google Sheets to retrieve data by date?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
