Forum Discussion

R-Z_S's avatar
R-Z_S
Copper Contributor
Oct 06, 2021
Solved

XLOOKUP columns

I am using the latest version of Excel Office 365 on mac. When using xlookup, Excel does not allow me to add a whole column to the formula. Adding cells works just fine. Why is that?

  • R-Z_S 

    If an error like this

    something is wrong with syntaxes. Perhaps you shall use semicolons instead of commas - depends on your regional settings.

6 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    R-Z_S 

    Could you please give bit more details, what exactly do you mean under adding column to the formula. Better with some sample.

    Thank you.

    • R-Z_S's avatar
      R-Z_S
      Copper Contributor

      SergeiBaklan I understand that XLOOKUP is a formula in Excel used for pulling together related information. Now I am taking a course in LinkedIn and in this part I am learning about formulas and XLOOKUP which is one the most used formulas replacing VLOOKUP and HLOOKUP. In the tutorial, the teacher is using an example: associating employee ID-numbers (column G) with employee names (column H). He shows how to add a whole column containing names into the function. For this he writes "=xlookup(" and then to add the desired value which is the ID# he wants to match with an employee he clicks in the cell where the ID# resides. This makes the formula looking like "=xlookup(G2" after which he adds a comma. Then he looks for the lookup array and in this case the ID# are in a column called C. To add the whole column into the formula he clicks on the C which is the name of that column. When ge does this the formula looks like "=xlookup(G2,C:C". Now, when I click on C I get a pop up message instead reading "There is a problem with the formula. Not trying to type a formula? ..." going on explaining what to do if you are not typing a formula, which I am. So for some reason Excel 365 for Mac does not acknowledge my typing on the column C as part of writing a formula. Why is that? 

      Thanks in advance!

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        R-Z_S 

        Not sure. Do you click on entire column like here

        after that type comma and click on another column value from which shall be returned?

Resources