Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Data Analysis Intermediate Excel LOOKUP Functions LOOKUP Tips and Common Errors

Excel VLOOKUP: range_lookup=TRUE instead of FALSE

Hi, so a question about range_lookup: if for example, in the Housing Units column, I set it to TRUE instead of FALSE, then I get a ton of repeated values. Any idea why this is? The bigger question I'm looking at is, when would I choose TRUE, since it seems like FALSE is the better option.

Thank you!

1 Answer

Steven Parker
Steven Parker
231,269 Points

You use range lookup when you want the closest answer. You'll get duplicates, but every lookup will have a "match".

When it's FALSE you only get a match when it is exact. That eliminates the duplicates but then any value not found will cause the lookup to fail.