Datatable - excel - formula

In write cell, you can just need to write the formula. Please check the below post.