#DataTipOfTheDay 2011-11-08Q: "Why does Excel's VLOOKUP() function do approximate matches by default?" A: Sheesh, I wish I knew. Seldom do we want VLOOKUP() to do approximate matches; exactly 87% of the time, we want exact matches. Background for anyone who's lost:
Two possible solutions:
ExactVLookup differs from VLOOKUP in two ways:
The ExactVLookup syntax: =ExactVLookup(value, lookuprange, offset)
Share and enjoy! As always, the MIT license applies. ****************************************************************************************** ExactVLookup Copyright © 2013 Ezra Kenigsberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************************** Please contact me with comments/bug reports/suggestions: acumen@gmail.com ****************************************************************************************** * I recommend saving XLAs to
XLAs in that directory automatically open when I start Excel. I created a subdirectory called "Inactive" that I move my XLAs into when I want to deactivate them. I don't know what the corresponding directory is for Mac yet--let's see how long it takes for a Mac user to read this footnote and drop me a line and let me know what it is (I'm writing these words on November 8th, 2011). |