Forum Discussion

excelnewbie2332's avatar
excelnewbie2332
Copper Contributor
Aug 25, 2022
Solved

Auto insert rows into worksheet from table in another worksheet

Hello,

 

I have the attached spreadsheet. The Log worksheet is our 'working' worksheet and it pulls data by selecting the (+) button then (in) or (out) arrow - folder is selected and any files or emails within the folder selected, will auto insert into the LOG worksheet.

 

I would like specific data to pull from the LOG worksheet and auto-insert into the 'Transmittal Letter' worksheet. The column headers with the data I am looking to derive, are Document Number, File Name, Rev, Document Type, Status and Date In/Out

 

I have tried pivot tables, which are great for summaries but with my lack of pivot knowledge it fell flat, I tried a simple formula (=+) <-- but that does not work since it is a table the data is coming from, and auto shifts down the formulas and then the links break.

 

I tried making the Transmittal letter into a table as well but that did not work. So I have tapped my well of knowledge and am kindly asking for any and all help if possible.

 

Ok... I cannot attach any files apparently. Every file type I try to attach I'm being told is not supported - if you can also tell me how to fix this...

Thank you in advance!

  • HansVogelaar's avatar
    HansVogelaar
    Aug 25, 2022

    excelnewbie2332 

    Thanks. If you have Excel 2021 or 365, enter the following formula in C13:

    =INDEX(Trans,SEQUENCE(ROWS(Trans)),{3,4,6,7,8,9})

    Excel will do the rest for you.

    If you have an older version, select C13:H13, enter the following formula and confirm it with Ctrl+Shift+Enter, then fill down as far as you want:

    =IFERROR(INDEX(Trans,ROWS($C$13:$C13),{3,4,6,7,8,9}),"")

    I have included both in the attached version, in two different sheets.

     

Resources