Question

Writing attributes into specfic cells in an Excel template

  • 16 August 2022
  • 3 replies
  • 2 views

Badge +3

Hello,

 

I have a lot of attributes that need to be input into specfic cells in an excel template. Some of these cells are merged and some are not.

 

How would i write each individual attribute into seperate cells based on the template?

 

Many thanks,

@Takashi Iijima​ @Mark Stoakes​ @nielsgerrits​  @ebygomm​  @jkr_da​ @mark2atsafe​ @jdh​ 


3 replies

Userlevel 1
Badge +21

I think when i've done this in the past, I've created namedranges in the templates and written to the named range.

Badge +3

I think when i've done this in the past, I've created namedranges in the templates and written to the named range.

Hello,

 

Many thanks for the reply, do you have an example of how you did this? Would be good if i could see an excel template file and the workspace?

 

Thanks

Userlevel 3
Badge +18

Merged cells in your template are not much of an issue I think. Excel counts the left top corner of the merged cells as the cell the value should be in.

 

The Excel writer has the option to write based on ColumnPosition and xlsx_row_id. This way you can write values in specific cells.

image 

Reply