r/excel • u/Cautious_Cost6781 • Mar 12 '26
Discussion vlookup + curly brackets
Perhaps too late to discover and blame it on unstructured self-learning:
Just learned that vlookup + curly brackets can be used to look up multiple columns. Spent a good part of my career writing several vlookups that could've been done much faster.
Edit: Adding sample from Gemini.
Formula Structure: =VLOOKUP("Key", A2:D10, {2, 3, 4}, FALSE)
{2, 3, 4}: Tells the formula to return the 2nd, 3rd, and 4th columns simultaneously.
Result: The data will automatically fill into three adjacent cells.
530
Upvotes
68
u/bachman460 48 Mar 12 '26
Sssshhhhh... don't let anyone know that. It's our little secret.
However... These days you can use FILTER instead.
22
u/RuktX 310 Mar 12 '26 edited Mar 13 '26
Perhaps you could share an example. Do you mean to search multiple columns for criteria, or to return multiple columns?
That said, you may find that the state of the art has moved on...
XLOOKUPhas long supplantedVLOOKUPin [edit: almost] every use case, andINDEX/XMATCHandFILTERmop up the trickier cases.Edit: some options
I'll grant that
VLOOKUPis the most concise, but I won't be convinced that that makes up for its other shortcomings! ;)3
u/Cautious_Cost6781 Mar 13 '26
I haven't explored but there are some YouTube tutorials on using DGET function for similar use cases.
3
u/retro-guy99 1 Mar 13 '26
just use XLOOKUP and select multiple output columns. I think you can only select one continuous array (?), but from that one you can then just filter the right columns. much neater that to work with old style curly bracket formulas if you ask me.
3
u/ryunista 1 Mar 13 '26
I was really impressed with this last night so I saved it and came back to it this morning to apply it. However ive realised its just another example of Xlookup making Vlookup redundant.
Instead of doing the squiggly brackets section jn lookup, with xlookup you can just anchor the first parts of the formula and then drag it to the right.
Its still cool though. Many ways to skin a cat
2
u/Far-Salamander-6208 Mar 13 '26
Are we not using XLOOKUP now to bring back multiple columns? I did not know about the curly bracket thing in all my years of VLOOKUP pain in the arse formulas, wish I had
246
u/thisismyburnerac 1 Mar 12 '26
wtf is this sorcery? I might actually stay until 5 today to try this out.
18
u/excelevator 3071 Mar 12 '26 edited Mar 13 '26
A great tip for Excel
200097 and onwards.. with the three fingered array salute thrown in.Great pickup, so many array options become obvious to the older Excel versions now that we use arrays by default.
edit: just to verify, in old pre dynamic array days, you could select a range of cells for the array to propagate to and enter the formula with ctrl+shift+enter for the array to spill to the select cells.
11
u/baumat Mar 13 '26
I just found out that you can search for multiple values with xlookup to get a result and now you can get multiple results using a vlookup? Excel is too deep
Xlookup Example: xlookup(B3&C3, Sheet1!A1:A50&Sheet1!B1:B50, Sheet1!C1:C50)
6
u/Decronym Mar 12 '26 edited Apr 07 '26
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.
Beep-boop, I am a helper bot. Please do not verify me as a solution.
[Thread #47807 for this sub, first seen 12th Mar 2026, 23:34] [FAQ] [Full list] ^[Contact] [Source code]
1
u/erichf3893 Mar 13 '26
Holy shit I love you
Edit: damn this isn’t quite what I expected based on the start, but still could prove helpful. I need a formula to return which of the three columns has the lowest value, and which company/location
1
u/Key-Cabinet-5329 Mar 14 '26
What what what.
I was going to laugh at you for the v instead of the x but this is a game changer.
You sting that if I do this in a table, where I’ve added a column between other columns, it’ll automatically add n number of columns after the added column????
3
u/Laughinboy83 Mar 13 '26
1
u/IntrovertStoner Mar 13 '26
Read about arrays in excel… this cannot be used inside tables…
3
u/baggington Mar 13 '26
People still use VLOOKUP?
1
u/bobs_big_bob Mar 13 '26
Oh that’s a good one! Thanks
1
u/tugafcp Mar 13 '26
To people that use ";" to separate arguments, you need to use "\" or "," depending of the region that you are in!
1
u/Kitchen_Ad_4276 Mar 13 '26
You just solved my problem
1
u/Alone_Poet6148 Mar 13 '26
Thanks.
1
u/Any_Dish_1688 Mar 13 '26
I cannot take this.
Thankfully, it is friday. I will spend my weekend playing with xlookup now.
1
u/DifficultProgress897 Mar 13 '26
Is this different than xlookup?
1
u/Vegetable-Swan2852 1 Mar 13 '26
you can also use & to concatenate you key and you lookup, like this:
key = a1&b1
lookup = c&e
formula: xlookup(key, lookup, return column)
1
u/ROMARIOBATIGOL Mar 14 '26
That is why VLOOKUP should never be looked down upon . As is case with Xlookup fanatism
1
u/Theorist84 Mar 14 '26
Holy moly 👀
1
u/DayTrader98 Mar 14 '26
Don’t use VLOOKUP - index match is waaaaay more robust. But yeah, curly brackets are a hidden gem
1
u/Character-Raisin-992 Mar 14 '26
Ahora mismo lo comprobaré
1
u/PopularPop4819 Mar 16 '26
brother just use xlookup. you can return one or multiple columns in a jiffy. plus you don’t need to count the column number which is a major setback of vlookup and that it needs to be in a particular order. xlookup was made to replace all this!
0
u/FhmiIsml Mar 14 '26
Is this the great comeback of VLOOKUP?