12.5 C
London
Sunday, July 7, 2024
HomeSoftware TutorialsGoogle SheetsGoogle Sheets: How to Use VLOOKUP by Date

Google Sheets: How to Use VLOOKUP by Date

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

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:

Google Sheets VLOOKUP by date

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.

Additional Resources

The following tutorials explain how to perform other common tasks in Google Sheets:

Google Sheets: How to Use VLOOKUP From Another Workbook
Google Sheets: Use VLOOKUP to Return All Matches
Google Sheets: Use VLOOKUP with Multiple Criteria

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories