TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

XLOOKUP for Excel

229 pointsby kbumsikover 5 years ago

25 comments

steve19over 5 years ago
Finally! Every. Single. Time. I have been forced to use VLOOKUPs or INDEX/MATCH I wonder why nobody on the Excel team had still not built a new easier interface. I wish I could only use Pandas but excel is the lingua franca of business.
评论 #20846500 未加载
评论 #20846589 未加载
评论 #20847148 未加载
评论 #20847019 未加载
b_tterc_pover 5 years ago
It’s basically just index match with a sensible default for match’s matching argument.<p>Good stuff. Took too long to make an official implementation of this but glad it’s here
评论 #20847637 未加载
smitty1eover 5 years ago
I, for one, await YLOOKUP, so that we can go vertically, horizontally, <i>and</i> tab-wise through our workbooks, for that true 3D feel.
评论 #20846947 未加载
prokesover 5 years ago
The new function behaves very similar to =SUMIF(), with two additional optional parameters for how to search and match.<p>Easier to understand and solves some issues with =VLOOKUP().
评论 #20846829 未加载
评论 #20847031 未加载
milesover 5 years ago
Bill Jelen (&quot;Mr. Excel&quot;) has posted an in-depth look at XLOOKUP with more examples:<p><a href="https:&#x2F;&#x2F;www.mrexcel.com&#x2F;excel-tips&#x2F;the-vlookup-slayer-xlookup-debuts-excel&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.mrexcel.com&#x2F;excel-tips&#x2F;the-vlookup-slayer-xlooku...</a><p>and a video:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=E5JxX_3Qb7A" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=E5JxX_3Qb7A</a>
评论 #20847656 未加载
anonuover 5 years ago
My thought abstraction on this: Joins are what make database technologies... If you can call Excel a database technology... So powerful.
评论 #20847172 未加载
评论 #20847622 未加载
评论 #20847197 未加载
ttulover 5 years ago
Anyone here on the GSuite team who can get this into Sheets stat?
评论 #20847079 未加载
评论 #20846716 未加载
robomartinover 5 years ago
So...no patch for older versions of Excel? Or did I miss that part of the announcement?<p>If this isn&#x27;t available as a patch for older versions of Excel, good luck popularizing the function.
ekingrover 5 years ago
It’s a breakthrough for the consulting world!<p>Joke appart, it’s been long overdue to have such a lookup functions - even more so with sensible parameters as default!
Someoneover 5 years ago
I know the IDE has tooltips, but why don’t they ‘invent’ enums instead of those magic constants for match_mode and search_mode? Does that complicate the parser that much?<p>For VLOOKUP and HLOOKUP, they can’t for backwards compatibility, but this breaks new ground.
评论 #20849269 未加载
arthurcolleover 5 years ago
Oh man, I would have killed for this when I was in structured products trading at Goldman, the spreadsheets that we were using to keep tabs of positions were beautiful and insane in their complexity and in their raw, insane abuse of VLOOKUP&#x2F;INDEX&#x2F;MATCH.<p>I moved from Technology into Trading and all my code access was cut off, and the switch from coding in Slang&#x2F;SecDb to only being able to use Excel was absolutely brutal. If someone can figure out how to break the Microsoft stranglehold on &quot;business&quot; then there will be a boom in productivity unseen since... Microsoft&#x27;s suite of business software.
Ivesover 5 years ago
I wonder when we can start using this function without running the risk that our bosses&#x2F;clients Excel doesn&#x27;t support this function. Lots of people still use Office 2007 and 2010, so It&#x27;ll be a while I guess.
评论 #20847598 未加载
nashashmiover 5 years ago
I almost cried when I saw the word return_array. Then I realized my mistake. Return_array is the name of an input parameter.<p>How I long for the day I can return multiple values from an excel lookup function. Few users know of such a thing. But it is amazing. So far I have gotten it to work using the most complex formula string I ever made.<p>Link: <a href="https:&#x2F;&#x2F;www.get-digital-help.com&#x2F;2009&#x2F;10&#x2F;25&#x2F;how-to-return-multiple-values-using-vlookup-in-excel&#x2F;#vertically" rel="nofollow">https:&#x2F;&#x2F;www.get-digital-help.com&#x2F;2009&#x2F;10&#x2F;25&#x2F;how-to-return-mu...</a>
评论 #20847756 未加载
评论 #20848628 未加载
评论 #20847654 未加载
评论 #20847473 未加载
OzCrimsonover 5 years ago
I saw a preview of XLOOKUP at the MVP Summit in March and was excited about it (but couldn&#x27;t say anything about it until it was released).<p>Here&#x27;s my brief video on XLOOKUP along with a Peace Summit where a staunch INDEX&#x2F;MATCH user and I formally buried the hatchet n Perth, Australia.<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;0KEhR66btUs" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;0KEhR66btUs</a>
kerngover 5 years ago
This is one of the features that I was wondering why it wasn&#x27;t there from the beginning (according to article Excel 1 with VLOOKUP shipped 1985).
noahmbarrover 5 years ago
Killing most reasons for the index() + match() combo!
评论 #20846603 未加载
评论 #20852361 未加载
ggcdnover 5 years ago
It doesn&#x27;t look like either xmatch or xlookup can lookup based on multiple search criteria? That&#x27;s my main use case for index(match()).
citrusxover 5 years ago
So, is this on the roadmap for LibreOffice yet?
eyeballover 5 years ago
Now give me count distinct in pivot tables, and limit rows in a book only by the ram in my machine.
评论 #20847112 未加载
mikorymover 5 years ago
TL;DR:<p><i>vlookup</i>: (value to lookup, column to search, numbered column from the left, yes&#x2F;no use range)<p><i>xlookup</i>: (value to lookup, array to search, value to return array)<p>You can also replace <i>hlookup</i> with <i>xlookup</i>. Two optional arguments are 4) exact match or not and 5) go up or down or use binary search. I guess binary search would require a sorted array and improve speed?<p><i>xlookup</i> seems obviously better in retrospect. I wonder if they had any reason not to implement it earlier.
Deutscherover 5 years ago
Will this show up in Office 2019?
评论 #20847397 未加载
评论 #20848000 未加载
virgulinoover 5 years ago
<a href="https:&#x2F;&#x2F;m.xkcd.com&#x2F;2180&#x2F;" rel="nofollow">https:&#x2F;&#x2F;m.xkcd.com&#x2F;2180&#x2F;</a>
kyberiasover 5 years ago
Have you asked Joel Spolsky about this?
hanniabuover 5 years ago
Curious why it wasn&#x27;t named HLOOKUP since v=vertical and h=horizontal
评论 #20847802 未加载
评论 #20847783 未加载
AdmiralAsshatover 5 years ago
No joke: I spent the better part of an hour a few weeks ago trying to remember how to use VLOOKUP properly to join two lists in Excel before a coworker chatted me that he had done it in 10 seconds by running the Linux `join` command.
评论 #20858391 未加载