How to copy data from Excel sheet to Data table


The task is to copy data from one excel to another excel based on a condition.
I’m trying to first copy into a data table. But I’m unable to do this operation.
Is there a way to directly copy into excel in the same process.
Can someone please help me with this.