Better than XLOOKUP? Try SUPERXLOOKUP!

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 174

  • @vida1719
    @vida1719 Місяць тому +14

    What a creative name - SUPERXLOOKUP and great functionality! I think Microsoft should buy this function from you!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +2

      Maybe one day they will give is an array-of-arrays compatible version.

  • @thomasgormanable
    @thomasgormanable Місяць тому +3

    Recently discovered how Lambda functions work, and this is a great example, did not know that copying and pasting the formula would carry the formula over, great tip!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +2

      Copy/Paste is the easiest way I've found without using anything advanced. You can also copy and sheet, and it will move all your LAMBDAs at once.

  • @GiovanniGirelli-w3z
    @GiovanniGirelli-w3z День тому

    This really is off the grid 💪🏼

  • @balintbatonyi6546
    @balintbatonyi6546 Місяць тому +5

    Hello Mark, thank you for the inspiration to think further factory functions. Also mentioning Sandor Debreceni due to our meaningful conversations. My version 1) needs no table format source, 2) only takes one argument, which is the full source range and 3) shows missing lookup values with two different error handling icons (missing row lookup 🔙 and missing column lookup 🔝). For adding as own formula, paste this: =LAMBDA(fullsource;LET(r;ROW();c;COLUMN(); FirstRow;ADDRESS(r;c-1;4;1); FirstCol;ADDRESS(r-1;c;4;1); LastRow;XMATCH(FALSE;ISTEXT(INDIRECT(FirstRow&":"&ADDRESS(999999;c-1;4;1)));0)-1; LastCol;XMATCH(FALSE;ISTEXT(INDIRECT(FirstCol&":"&ADDRESS(r-1;15999;4;1)));0)-1; VerticalHeader;INDIRECT(FirstRow&":"&ADDRESS(r+LastRow-1;c-1;4;1)); HorizontHeader;INDIRECT(FirstCol&":"&ADDRESS(r-1;c+LastCol-1;4;1)); MatchRows;IFERROR(XMATCH(VerticalHeader;CHOOSECOLS(fullsource;1);0);1/0); MatchCols;XMATCH(HorizontHeader;CHOOSEROWS(fullsource;1);0); MAP(INDEX(fullsource;MatchRows;MatchCols);LAMBDA(x;IFERROR(SWITCH(ERROR.TYPE(x);2;"🔙";7;"🔝");x)))))

  • @weslleyhenrique2989
    @weslleyhenrique2989 Місяць тому +3

    Incredible!
    I love videos that use formulas.

  • @Martinrd72
    @Martinrd72 Місяць тому +1

    Just sent the link to this video to my work email. Will be trying this out tomorrow. Great work, exceptional!

  • @IvanCortinas_ES
    @IvanCortinas_ES Місяць тому +1

    Tons of talent, Mark. Excellent resolution, which also controls errors. Awesome. Thanks for sharing.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      My pleasure! I'm glad you liked it Ivan. 😁

  • @ziggle314
    @ziggle314 Місяць тому +2

    I have immediate use for this function. Thanks a bunch!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      Awesome, I'm glad you can put it to good use.

  • @waitplanwp4129
    @waitplanwp4129 Місяць тому +6

    Mark, you are an angel, you have helped me so much in my professional life and thanks to you I have progressed in the workplace.
    God bless you, thank you always for all the help, amazing man and so much fun that you share your genius with us!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +3

      Thank you for those kind words. I really appreciate that. 😁

  • @silvanodemetrio407
    @silvanodemetrio407 Місяць тому +1

    As usual, you are always EXCELLing yourself

  • @umarhassan1807
    @umarhassan1807 Місяць тому +1

    Can't wait for your next formula. Superb! Thanks a lot.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      I might call it NEXTLEVELSUPERXLOOKUP()... or maybe that's a step to far 😂

  • @stevereed5776
    @stevereed5776 Місяць тому +1

    Outstanding Mark, what a great solution. Thank you

  • @thebesttechnical3608
    @thebesttechnical3608 11 днів тому

    Thank you so much for this. I have this urge to learn more about Excel!

  • @martyc5674
    @martyc5674 Місяць тому +1

    Nice one Mark- this really would be a great built in function.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      Maybe one day Microsoft will add something similar.

  • @kdfarmery
    @kdfarmery Місяць тому +2

    Mark - this is superb - thank you.

  • @Quidisi
    @Quidisi Місяць тому +37

    Can't wait for the SuperDuperXLOOKUP video coming out where Mark builds a formula that spills not only on the X and Y axis, but also the Z axis! 😁

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +6

      That would be amazing to spill 3 dimensionally... we can dream.

  • @franzzzis
    @franzzzis Місяць тому +2

    incredible.. very impressive, thank you for your work

  • @teoxengineer
    @teoxengineer Місяць тому +1

    So EXCELlent presentation....It contains everything (XLOOKUP function evaluation from excel team 😉)

  • @renatovianello874
    @renatovianello874 Місяць тому +1

    Mark, u are not human!
    👏👏👏👏👏

  • @mohammedelsakally540
    @mohammedelsakally540 Місяць тому +1

    Brilliant Mark, Thank you so much 🎉

  • @JoseAntonioMorato
    @JoseAntonioMorato Місяць тому +6

    Dear Mark.
    Its SUPERXLOOKUP function is very good, but it needs to be named in the workbook.
    With the INDEX and XMATCH functions, existing in any Excel, you can obtain the same results:
    =IFERROR(INDEX(Data,XMATCH(H6:H9,Data[Item]),XMATCH(I5:L5,Data[#Headers])),0)
    =IFERROR(INDEX(Data,XMATCH(H13:H20,Data[Item]),XMATCH(I12:K12,Data[#Headers])),0) 🤗

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +4

      INDEX/MATCH/MATCH is a 2-way lookup.
      The solution in the video is a 1-way lookup which spills into 2 dimension.
      So they are different and will serve different use cases.

    • @JoseAntonioMorato
      @JoseAntonioMorato Місяць тому +2

      @@ExcelOffTheGrid I was referring to the difficulty of always having the SUPERXLOOKUP function available, while the INDEX and XMATCH functions are always available and you get the same spilled results. 🤗

  • @iankr
    @iankr Місяць тому +1

    Gor-blimey, this is a bit good! Many thanks, Mark.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      Thanks Ian. Loads of advanced techniques in there to keep you happy.

  • @deepakmirchandani1348
    @deepakmirchandani1348 Місяць тому +1

    great job, sir, thanks for such an excellent formula.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      You are most welcome - I'm glad you liked it.

  • @MounaSammoud-t8d
    @MounaSammoud-t8d Місяць тому +1

    this is awesome thanks for sharing Mark 😊☘

  • @fongfattchee282
    @fongfattchee282 Місяць тому +1

    OMG. Stellar tip! Very nice.

  • @ToanNguyen-q8l6d
    @ToanNguyen-q8l6d Місяць тому +1

    Really amazing!!!
    Thanks Mark

  • @flaviogarlatticosta
    @flaviogarlatticosta Місяць тому +1

    Mark sei stratosferico ! grazie.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      Google translate came to my rescue. Thank you. 😁

  • @mouhammadwasseemshaabani47
    @mouhammadwasseemshaabani47 Місяць тому +2

    Brilliant, just brilliant!

  • @vinothkumarmanoharan2317
    @vinothkumarmanoharan2317 Місяць тому +1

    Awesome Explanation

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      Thanks, that’s very kind of you to say. 😁

  • @nazarkamal8831
    @nazarkamal8831 Місяць тому +1

    Superb spreadsheet ❤❤❤ Excel

  • @shri_420
    @shri_420 26 днів тому

    Mark,
    This is awesome ❤
    In your next video, please do it using Power Query.
    Thanks in advance 😅

  • @DataVisualisation
    @DataVisualisation Місяць тому +2

    ... once again, well explained. You should work as a motivational trainer for LAMBDA and LET. The way you explain should get even the last one out of the couch and into the learning mode.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      I'm still learning all this stuff myself, and it's certainly a lot of fun.

    • @DataVisualisation
      @DataVisualisation Місяць тому

      @ExcelOffTheGrid ... we can do this together from the next week 😉 ... I sign up for a membership 🏁 ... my way to support you

  • @entrustedhub
    @entrustedhub Місяць тому +2

    😢 Respect!! This is great

  • @madlarch
    @madlarch 27 днів тому

    Wow - simply amazing !!!

  • @stefankirst3234
    @stefankirst3234 Місяць тому +1

    Incredible!!! Thanks a lot!

  • @chrism9037
    @chrism9037 Місяць тому

    Awesome Mark, love it

  • @mikeparker3865
    @mikeparker3865 Місяць тому +1

    Brilliant!💡

  • @gandhisunil3
    @gandhisunil3 Місяць тому +1

    Mark, I am the 300th person in the que of persons who liked it 😅
    Great formula of let and lambda use

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      Awesome! Thank you for clicking the "like" button. I appreciate it.

  • @zzota
    @zzota Місяць тому

    Amazing! Thanks Mark.

  • @rajeshmajumdar4999
    @rajeshmajumdar4999 Місяць тому +1

    Superb! SUPERXLOOKUP. Thank you so much.

  • @texmexdragon2160
    @texmexdragon2160 Місяць тому

    Mark - Love your videos - they are an incredible learning tool. Recently got laid off and thinking of starting up a YT channel (at over 50 it is daunting). I love your video setup/quality. Could you possibly share your equipment/editing/setup? Your lighting is great, and I really like the warm lighting the lamp in the background offers. Sorry for the non-Excel question!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      Can you go to exceloffthegrid.com/customer-support
      Put your email address in there and then we can continue the conversation on email.
      As UA-cam doesn’t provide the best format for longer text. 👍

  • @JoeMeyer8998
    @JoeMeyer8998 Місяць тому +1

    That's really cool!

  • @martinargimon730
    @martinargimon730 Місяць тому +1

    Thx. Excellent tip !

  • @johnhackwood1568
    @johnhackwood1568 Місяць тому +1

    Hats off Mark that is pure awesomeness. The LET was fantastic but then the LAMBDA, too good. But what about poor FILTER function, is your custom formula walking its side of the street? I am wondering what are the pros and cons to a FILTER based formula alternative. ISOMITTED as well when did that come in, nice.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      FILTER is based on data order and not the order of the values you've requested, it also includes all values (not just the first / or last), it does not return anything for values that don't exist and it also doesn't fully support wildcard characters.
      So, it could be partially possible with FILTER but would be significantly more complex and only part of the solution.

  • @NerVento1224
    @NerVento1224 13 днів тому

    Genius 🤯

  • @mrprakashraobs
    @mrprakashraobs Місяць тому

    Hats off to Mark, excellent formula that i use it to lot extent.
    I request you to enhance with one more way where
    It lookups h2:h9 in a:a and returns value based on column headder line in hotizantal (q1, q3, q5) lookup.
    Hope you get this.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      A full column lookup... 🤔
      Sounds like you might need the new TRIMRANGE function to become generally available.

  • @henryg5735
    @henryg5735 Місяць тому +1

    Mind blowing 🤯🤯🤯

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      Lots of advanced techniques in there - hopefully some of them are applicable to other scenarios.

  • @cjkleynhans
    @cjkleynhans Місяць тому +1

    Brilliant!

  • @Alban.Bytyqi
    @Alban.Bytyqi 29 днів тому

    Love it. Love. Love it.

  • @GeertDelmulle
    @GeertDelmulle Місяць тому +1

    Super-great video that is action-packed and up-to-speed. Great stuff, Mark!
    For those for whom this went too fast: you can always play back the video on half speed… ;-)
    FYI: I would’ve added a conceptual line where you explain “why” this works, avoiding the array-within-an-array conundrum.
    But maybe I just missed it in the fast-paced action of the video. ;-)

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      I partly covered that in the last video, so didn't want to go back over that. But definitely anybody who didn't see that might wonder what it was all about.

  • @BobUmlas
    @BobUmlas 16 днів тому +1

    Mark -- in the Lambda version, 2nd example (with headers of Q1, Q2, Q5, it is an error if the items contains an invalid one, like ZZZZ instead of Charlie. It seems to ignore the categories and instead assumes all is OK! As a matter of fact, if you completely clear the items, the array returned doesn't change!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  16 днів тому

      The function is solving the array of arrays problem. It performs a 1 way lookup and returns a 2-day array.
      So, yes it is working as it’s meant to.
      The additional values are only to help people understand the values returned by the function.

    • @BobUmlas
      @BobUmlas 16 днів тому

      @ but it’s wrong I’d I change the item values in b the left column. They’re not even referenced.

  • @wendylockhart8947
    @wendylockhart8947 Місяць тому +1

    a fellow excel nerd friend just sent me this with a text that said “Looks like Christmas came early this year!”

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      🎁 Happy Christmas.
      In which case, I try to deliver a bit of Christmas every week on my channel.
      Excel geeks unite!!!

  • @geoffsmile
    @geoffsmile Місяць тому +1

    Thanks a bunch. This will help me a ton. with this method, I hope you could also help replicate the PIVOTBY and GROUPBY functions as they are still not available to old versions of excel.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      I'm glad you can use it. In terms of alternatives to GROUPBY/PIVOTBY there are some simple scenarios which can be replicated in other ways. But those formulas are so complex that I wouldn't even try.

  • @db_mb_69
    @db_mb_69 Місяць тому +1

    Is it not possible to use nested filters to do the same?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +2

      FILTER has other quirks which make it great from some scenarios but not others.
      FILTER is based on data order and not the order of the values you've requested, it also includes all values (not just the first / or last), it does not return anything for values that don't exist and it also doesn't fully support wildcard characters.
      So, would be a challenge to make it work in this scenario.

    • @db_mb_69
      @db_mb_69 Місяць тому

      @@ExcelOffTheGrid 👍👍

  • @DinoDelight
    @DinoDelight Місяць тому

    Thats amazing, thank you, would this be saveable in a personal workbook so you dont have to copy it from a previous workbook?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      You could save it in a personal workbook. No issues there. You could easily write a macro to add it to the name manager.

  • @SholaDsdg
    @SholaDsdg Місяць тому +1

    Ohhhh ohhhkay! Sweet!

  • @dirkstaszak4838
    @dirkstaszak4838 Місяць тому +1

    Great work, I have one question though. How would avoid the user error? Your assumption is that the list in H12 : H20 is in the exact the same order as in the table. What if a user changes this say the order, then the entire data is not displayed in an orderly manner and gives wrong results. Could on include also the item column to be on the safe side.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      Use a HSTACK in the return_array to select specific columns. Or use a formula which gives you a 2-way lookup.
      Though, if column order could change it sounds like you’ve got a data issue rather than a formula issue.

    • @balintbatonyi6546
      @balintbatonyi6546 Місяць тому +1

      pls see my version (5 hours after your comment) it handles that

    • @dirkstaszak4838
      @dirkstaszak4838 29 днів тому

      @@balintbatonyi6546 Thanks nice one, I will analyse it further

  • @johnallen3555
    @johnallen3555 21 день тому +1

    how do these defined functions work when a workbook is shared and used on another computer?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  21 день тому +1

      The function is in the name manager and works like a names range, so it travels with the workbook.

  • @factsoflife4
    @factsoflife4 Місяць тому +1

    Superxlookup not visible in excel 365. Please guide

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      In the video, we create a custom function called SUPERXLOOKUP. So, it won't be in you workbook, until you create it.

  • @RonDavidowicz
    @RonDavidowicz Місяць тому +1

    Genius (or too much time on your hands)!

  • @zohrabalimanov009
    @zohrabalimanov009 Місяць тому +1

    Wow super

  • @sepideheftekhari333
    @sepideheftekhari333 Місяць тому +1

    In which version is it? 2024 or 365؟

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      I’m on 365. But should work in 2024 too.

  • @poposhkov
    @poposhkov Місяць тому +1

    Why not use xlookup with & looking for the two arguments?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      Because a 1-way lookup spilling across two dimensions is different to a 2-way lookup spilling across two dimensions.
      A 2-way lookup is scalar lifting in both directions, while the one-way lookup is scalar lifting in one direction and an array in the other.
      So, the use cases are different.

  • @realvatican
    @realvatican Місяць тому +1

    I think the Index function is volatile which could lead to poor performance. I have been using drop(Reduce("", keys, lambda(key, acc, vstack(acc, xloolup(key, in,return)))) ,1) which i think is probably slower but so l at least not volatile
    Edit: Index isn't volatile I was thinking of offset

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      INDEX isn't volatile (you might be thinking of OFFSET), so it should be faster.

    • @realvatican
      @realvatican Місяць тому

      @@ExcelOffTheGrid I was getting mixed up with offset! I'll leave the comment since it's a useful alternative technique to this sort of problem (e.g. works with jagged arrays in 2d filter) but I like your formula more for this scenario

  • @aljones4719
    @aljones4719 9 днів тому

    Really good but the 8th letter of thealphabet appears under A in the dictionary because its name is Aitch and does noy have an aspirated start. Aitch is the name of H.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  9 днів тому

      I know, it’s impressive isn’t it. I can barely string a sentence together, but I can still use Excel like a Ninja. 😁

  • @JesperDyreholt
    @JesperDyreholt 7 днів тому

    I do not really see the point. In my XLOOKUP, it returns the number of columns I choose in return matrix?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  7 днів тому

      But then it doesn’t return multiple lookup values at the same time - it triggers the array of arrays problem.
      This solution solves that . That is the point.

    • @JesperDyreholt
      @JesperDyreholt 7 днів тому

      @@ExcelOffTheGrid maybe I am misunderstanding you, maybe my English is a little challenged when it comes to Excel (I am from Denmark). I can make a lookup in excel when searching for a particular name, and it can return his salary, address and other columns within a normal XLOOKUP. But this is not what you mean? In the beginning of the video, you show that XLOOKUP only returns one of these values, but mine can return several. I am not trying to criticize your video, I just do not get the same result.

  • @Al-Ahdal
    @Al-Ahdal Місяць тому +1

    1st like 1st comment

  • @RakkanxMaqan
    @RakkanxMaqan 18 днів тому

    Waiting for Xlookup Pro Max

  • @GusCaravalho
    @GusCaravalho Місяць тому +1

    As an old person who still uses VLOOKUP, is the appeal of writing so many functions that you don’t want to use absolute references and just copy the formulas down and right? Like, this stuff is certainly neat, but it’s also a lot more work. I’m sure I’m missing something here.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      Yes, the maintenance element.
      When data increases/decreases you have to keep copying your ranges down/right. With dynamic arrays, you don't have to do anything; it all updates itself.

  • @grandhebi
    @grandhebi Місяць тому +1

    I have a subscription to MS 365, but I don't see the SuperXLOOKUP function, yet :(

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      In the video we create a custom function which we have called SUPERXLOOKUP. So you won't ever have it in your Excel, you have to create it.

  • @JJ_TheGreat
    @JJ_TheGreat Місяць тому

    7:07 Not really… The output of the intersection of Alpha and Q3 should be 77, but is returning 82…

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      Exactly. The horizontal lookup fails. Which is why we then to adjust the formula to handle it.

  • @nikolajonovic1172
    @nikolajonovic1172 Місяць тому +6

    please dont make EXTRASUPERXLOOKUP

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому

      If I were to, I think I would call it SUPERXLOOKUP_PART2_THEREVENGE

  • @marcodimaio1126
    @marcodimaio1126 Місяць тому

    tactical comment

  • @johntrolle8935
    @johntrolle8935 27 днів тому

    Heitz 😂😂😂

  • @Matt-pt3vq
    @Matt-pt3vq Місяць тому

    I’m missing something, why not just use an xlookup within the xlookup.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      We’re not building a 2 way lookup.
      It’s one lookup that spills multiple columns.
      The example might look like a 2-way lookup, but that is just to illustrate horizontal & vertical calculation.

  • @mathijs9365
    @mathijs9365 25 днів тому

    Complicated solution.
    Why not xloopup per column and lookup value.

  • @RichardJones73
    @RichardJones73 Місяць тому +2

    You lost me at superXlookup lol

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      Lots and lots of advanced techniques packed into this one.

    • @RichardJones73
      @RichardJones73 Місяць тому

      @ExcelOffTheGrid I did actually learn more about using lambda than super lookup so it wasn't a total waste lol. Helped me save a bit of time working out employers NI costs

  • @johank4361
    @johank4361 Місяць тому +1

    Pls get me a Formula to count meals (breakfasts, lunches & Diners) between 2 dates in different columns
    i.e
    20/11/2024 Diner to 24/11/24 Breakfast
    BF (Column)
    4nos
    Lunch (Column)
    3nos
    Diner (Column)
    4nos
    If you give me a solution i will be very greatful.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      That's solveable - I can think of a few ways. I'll add it to the list, maybe I'll do a video one day.

    • @johank4361
      @johank4361 Місяць тому

      @@ExcelOffTheGrid Thanks ❤️

  • @peltiertech1879
    @peltiertech1879 Місяць тому +4

    Nice. But is it better than something like this, which can be converted into a nice Lambda function: IFERROR(INDEX(range),XMATCH(),XMATCH()),if_not found)
    This doesn't assume you want all columns if you're looking up rows and vice versa.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      It’s a slightly different use case.
      If you want a 2-way lookup, then INDEX/XMATCH/XMATCH is better.
      But, if you want a 1-way lookup that spills in both directions, then I still stand by my solution.

    • @peltiertech1879
      @peltiertech1879 Місяць тому +2

      @@ExcelOffTheGrid As an engineer, most of the lookups I've ever had to do require a 2-way lookup; that's why I never even learned VLOOKUP.
      I get that you've solved the 2-way spill for a 1-way lookup. I got bogged down trying to use BYROW and REDUCE, and it got ugly.
      But if you have both sets of headers anyway (items and quarters), the 2-way lookup gives the same results.

  • @Excelambda
    @Excelambda Місяць тому +6

    Great video!! ✌
    For fun: SXLKP
    =LAMBDA(lv, la, ra, [nf], [mm], [sm],
    LET(
    x, XMATCH(lv, la, mm, sm),
    i, ROWS(lv) > 1,
    IFNA(INDEX(ra, IF(i, x, SEQUENCE(ROWS(ra))), IF(i, SEQUENCE(, COLUMNS(ra)), x)), nf)
    )
    )
    Nested is also possible:
    =SXLKP(I5:K5,C5:F5,SXLKP(H6:H9,B6:B13,C6:F13,""),"")

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Місяць тому +1

      Very nice. That's similar to my first version. But decided to go with a longer version in an attempt to make it understandable.

    • @DongkiKim-m8u
      @DongkiKim-m8u Місяць тому

      You have to deal with the case of just 1 lookup value. How about another switch parameter (aka ColumnLookup)?

  • @thebeginnerartist127
    @thebeginnerartist127 22 дні тому +1

    These formulas may be a better alternative -
    CHOOSECOLS(Table23,XMATCH(J1:M1,Table23[#Headers],0,1))
    CHOOSEROWS(Table23,XMATCH(P11:P19,Table23[SalesMan],0,1))

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  21 день тому +1

      if XMATCH can’t find a value, it returns #N/A, which causes the entire formula to fail.
      So your method only works if all the lookup values exist.