Hi @Pey,
Thank you for posting your question in the Microsoft Q&A forum.
According to your situation, you can use VSTACK combined with CHOOSECOLS to select the specific columns that you need. You can try using this formula:
=VSTACK(FILTER(CHOOSECOLS(A1:J10,1,6,7),F1:F10<>""))
This formula will export only if the according cell in column F of that row contains data. It will also automatically update for you when you modify (add/delete) anything in column A,F,G.
Note: these formulas are using the data range in my testing worksheet. Therefore, you will need to change the data range with your current worksheet to ensure the formulas work properly.
I hope this information is helpful. Please follow these steps and let me know if it works for you. If not, we can work together to resolve this.
Thank you for your patience and your understanding. If you have any questions or need further assistance, please feel free to share them in the comments so I can continue to support you.
I look forward to hearing from you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have any extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.