Forum Discussion

PaLaz355's avatar
PaLaz355
Copper Contributor
May 14, 2024
Solved

Three columns of a database in another sheet and always updated

HI. I'm new to this forum and I have the following need. I have a database where I collect student data when they enroll. I would like three of these data (surname, name and tax code respectively) ...
  • HansVogelaar's avatar
    HansVogelaar
    May 14, 2024

    PaLaz355 

    OK, so I'll assume that you have converted the entire data range to a table. By default, Excel names it Table1, but you can change this if you like. I'll use Table1 in the following.

    When you want to add new rows, add them to (or directly below) the table.

     

    Copy the headings Surname, Name and Tax Code to A1:C1 on the other sheet.

    Enter the following formula in A2:

     

    =LET(r, Table1[[Surname]:[Tax Code]], IF(r="", "", r))

     

    If necessary, change Surname and Tax Code to the real column headings in your table.

    The formula will spill to 3 columns and as many rows as needed.

Resources