Forum Discussion

LifeSupportAlliance's avatar
LifeSupportAlliance
Copper Contributor
Mar 02, 2024

Autofill select rows from one sheet to another

I have a spreadsheet with 800 recipients served by 40 volunteer mailers, (sample attached) I wish to auto fill multiple columns from the master spreadsheet to subsequent sheets. But only selected r...
  • rachel's avatar
    rachel
    Mar 16, 2024

    LifeSupportAlliance 

    Hi,

    You can type below formula in Cell A1 in each secondary sheet:

    =VSTACK(Table3[[#Headers],[Full Address]:[MAILER]], FILTER(Table3[[Full Address]:[MAILER]],Table3[MAILER]=TEXTAFTER(CELL("filename",A1),"]"),""))

     

     

     

    Breakdown of the formula:

    TEXTAFTER(CELL("filename",A1),"]") -> gets the secondary sheet name, such as "1-Dannenberg".

    FILTER(Table3[[Full Address]:[MAILER]],Table3[MAILER]=TEXTAFTER(CELL("filename",A1),"]"),"") -> filter out column I and column J with column J = sheetName.

    VSTACK -> stack table headers and data vertically.

     

    In case you want to check the formula step by step by yourself, here is how to open the "formula builder":

    Put your cursor at cell A1, select the function you want to check (e.g VSTACK, or FILTER), then click the "fx" icon (highlighted in red rectangle).

     

    Then the formula builder will open in the right:

     

Resources