how to generate XLSX attachment file template that has Start: or If expression outside the table

I have the below attachment template in google docs (both in docs and sheets as below photos)

I use Bot to send email with attachment as xlsx file

But when I download the attachment file sent by Bot, I could not open it, it said wrong format

Could you advise my how to correct construct the attachment template in google docs as below ? 

- Template in doc :

kvngo94_0-1651033358420.png

- Template in sheet : ( I got error when putting expressions like this, but I have no idea how to put it within 1 table )

kvngo94_0-1651040038799.png

- I tried to put in Excel template in Doc template structure, but it shall not work 

kvngo94_0-1651040577778.png

 

 

******Below is what I want to generate in excel file :  

kvngo94_0-1651039747882.png

 

 

0 5 1,289
5 REPLIES 5
Top Labels in this Space