Vlookup using Dates
Hello,
I'm having some issues around a simple vlookup using dates. I have include screenshots to assist.
My formula looks as follows and I am getting a "invalid data type" error.
=VLOOKUP([Batch Helper]1, {Site Disposition - database (MASTER) Range 2}, {Site Disposition - database MASTER Range 1}, false)
I am trying to do as follows:
For the Task Due column, do a vlookup table to another sheet that looks for the "Batch Helper" number as per below screenshot in the first column "Master Row" and returns the corresponding "A-Due" date in the "Task Due" column.
I cannot seem to resolve the invalid data type error. I have also shown the "task Due" and the "A-Due" are both DATE column types.
any assistance would be great. The "A-Due" date is also populated by another formula as shown in the screenshot. Im not sure if this is causing the issue also,
Answers
-
Your first range should cover both columns, and the position where you have the second range needs to be a number reflecting a column number within the first range.
=VLOOKUP([Batch Helper]1, {Site Disposition - database (MASTER) Range 2} <-- This should cover all necessary columns with the lookup value column on the left and the output column on the right.
=VLOOKUP([Batch Helper]1, {Site Disposition - database (MASTER) Range 2}, # <-- This should be the number that says which column number from the range the output column is. So if your range is only covering two columns (search value on left and output on right), then the output column number would be 2.
Try adjusting your range and updating the 3rd portion of the VLOOKUP with the column number and see if that clears things up for you.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!