Skip to main content
Question

How to write the data into specific cells in excel file


spiderman
Contributor
Forum|alt.badge.img+7

I would like to write attributes name including data for each attribute at specific cells in excel file .

how could I achieve that

Fme 2021

2 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • May 9, 2023

Hi @spiderman​,

In the Excel output Feature Type Properties, set the parameter 'Row Number Attribute' to the attribute that will control the row you want the data written to. Also Set 'Use Attribute Names As Column Positions' as Yes. Then add an AttributeRenamer before the output feature type to rename your existing attributes to the desired column names (ie. A,B,C ... AA,BB,CC etc.).

Instead of the method above, a simpler way might be use the Start Position parameter in the Feature Type Properties to set the start column and row for the table.


spiderman
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • May 10, 2023
daveatsafe wrote:

Hi @spiderman​,

In the Excel output Feature Type Properties, set the parameter 'Row Number Attribute' to the attribute that will control the row you want the data written to. Also Set 'Use Attribute Names As Column Positions' as Yes. Then add an AttributeRenamer before the output feature type to rename your existing attributes to the desired column names (ie. A,B,C ... AA,BB,CC etc.).

Instead of the method above, a simpler way might be use the Start Position parameter in the Feature Type Properties to set the start column and row for the table.

thanks for reply ,

but I am still confused .i have succeeded to rename the attribute name to >>A and change excel writer properties as u explained

and write it to specific cell in third row as example but how could I write the data that was inside the column down the specific cell .

 

do u have sample workspace for writing different columns data into specific cells

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings