Excel Multiple Column Lookups: Which Method is Best?

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 32

  • @spy-py
    @spy-py 10 годин тому +2

    please don't stop creating this content!

  • @mrpage221
    @mrpage221 16 годин тому +4

    I truly appreciate your teaching methods. You are easy to follow and give superb examples.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  15 годин тому

      Thank you, I'm glad you get so much from it. 😁

  • @Excelambda
    @Excelambda 15 годин тому +4

    Great video!! Alternative with entire arrays:
    =XLOOKUP(BYROW(G4:H7&CHAR(7),CONCAT),BYROW(B4:C19&CHAR(7),CONCAT),E4:E19)
    - never found a CHAR(7) in any data => no risk to use it as join char ( there are other rare UNICHARs)
    - byrow has versatility to work with "n" columns arrays. (if not next to each other HSTACk will do)

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  14 годин тому +1

      Very nice BYROW ✅
      As you say, there are loads of characters which I've never seen in the wild either. Also, those character don't just have to exist in the dataset, they also have to exist in the exactly the right positions within a dataset which could then lead to duplicate values.

  • @LaloinLondon
    @LaloinLondon 17 годин тому +2

    You deserve more subscribers and we deserve more videos from your channel!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  15 годин тому

      Thank you that is very kind of you to say. Go tell all your colleagues, friends and family to subscribe too 😁

  • @calvinsweet3400
    @calvinsweet3400 6 годин тому

    Brilliant! Im all for simplicity!

  • @josh_excel
    @josh_excel 10 годин тому +2

    For the XLOOKUP Spacer solution, each range will be recopied into memory for each lookup and that will slow things down for large ranges. In those cases, I make a helper column with the combined values.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 годин тому +1

      That is true, they can become slower for large range.

  • @alamiralshafay
    @alamiralshafay 13 годин тому +1

    Thank you for this great lecture and your Excellent teaching.

  • @IvanCortinas_ES
    @IvanCortinas_ES 16 годин тому +1

    Excellent analysis. Many possibilities for doing the same thing. In the end, each person decides which solution is best for them. Thanks for the presentation.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  15 годин тому

      Very true, there are lots of ways to achieve this that I didn't even cover.

  • @chrism9037
    @chrism9037 16 годин тому +1

    Excellent Mark!

  • @GeertDelmulle
    @GeertDelmulle 16 годин тому +4

    Mark, sumproduct is still the most direct way for doing ‘dot product’ calculations (aka. inner product). I wouldn’t call it obsolete.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  15 годин тому +1

      Using SUMPRODUCT for it's original purpose ... you are right, it would still be the easiest.

  • @mohammedelsakally540
    @mohammedelsakally540 16 годин тому +1

    Thank you Mark for your always valuable content you are always providing to your followers, but by practicing Xlookup (Spacer) with a huge range of data will be slower in calculation and the user will need helper column to concate both lookup value and lookup array so I think Xlookup (Boolean) will be more effecient.. finally, the comparisons are awesome, and learning us the differences between each method...

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  15 годин тому

      Have you done any testing on the spacer version vs the boolean version? I've never tested it. I've always assumed it would be similar, but happy to learn more.

  • @TP014563
    @TP014563 6 годин тому

    Excellent! Yes! Please tell the people man!!
    What people fail to understand is that in many cases you will end up tweaking/adjusting your formula based on your use case. Meaning; in some scenarios FILTER works better than an XLookup and vise versa. It all depends one what type of search & result you are looking for. Sometimes I end up using both functions and others in the same sheet to display different types of information.
    One question though, I am interested in the Custom Formats that you have there in the ribbon. looks very neat!. How did you create this? Is it an add-in or used excel to do it?

  • @adin6429
    @adin6429 11 годин тому +2

    Why do you left legendary index match or index xmatch ?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 годин тому

      XMATCH (spacer) and XMATCH (boolean) techniques would work almost exactly the same as XLOOKUP. Therefore, I didn't think it was worth a separate mention.
      MATCH would be similar to XMATCH, but with the already known differences.

  • @JJ_TheGreat
    @JJ_TheGreat 7 годин тому

    Mark, what about the INDEX() (and MATCH()) function? Could we use that to do the lookup, too? You had a video about this!

  • @JJ_TheGreat
    @JJ_TheGreat 8 годин тому

    1:48 I am a little lost… Which video are you referring to? I probably watched it, but I don’t remember. Thanks!

  • @JJ_TheGreat
    @JJ_TheGreat 7 годин тому

    10:16 What does the MAP() function do - and why is it needed? If you have a video on this, could you please refer me to it?! Thanks!

    • @tinhoyhu
      @tinhoyhu 6 годин тому

      Map takes one or more ranges and applies them cell by cell to the function in the last argument. The ranges all have to be the same dimension (n x m), and the output will return with the same dimensions.
      Note that the function doesn't have to be lambda.
      =map(a1:a5, b11:b15, {1;3;5;7;9} , average)
      Would return a 5x1 array of the average of each of the 5 values in the three ranges.

  • @Al-Ahdal
    @Al-Ahdal 17 годин тому +1

    Great! First comment.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  14 годин тому

      First out of the block again. 😁

    • @Al-Ahdal
      @Al-Ahdal 5 годин тому

      @@ExcelOffTheGrid , your videos are very informative and great content indeed. Is your plan for python in excel and complex array formulas, and Power BI in future for EOTG?