Skip to main content
Solved

Calculating values in excel

  • February 5, 2025
  • 4 replies
  • 87 views

teresa_ro
Contributor
Forum|alt.badge.img+3

Hello,

I have an excel files with values in it. I read the excel file, want to use the value from column E (value is 45), use it in a math formular and calculate a new value. At the end the result should be written in to a Feature class in a FGDB. The transformer I want to use is expression value. But the calculation doesn’t work. 

Has anyone an idea? 

Thank you!

Teresa 

 

Best answer by jobvdnoort

Hi, 

I use this expression: 

Th result is this:

The text of the expression instead of the calculated value. 

Do I have change the datatype of the input field? 

Thank you!

Teresa 

 

Hee you have to make sure to use @evaluate around the full expression:

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

jobvdnoort
Supporter
Forum|alt.badge.img+11
  • Supporter
  • February 5, 2025

Hi Teresa,

 

I use a featurereader for this, where in this example I read this Excel file with some numbers:

 

In the inspector it looks like this: (no headers)

 

 

In an attribute creator you can also do some mathmatical formulas

 

And the result:

 

 

Edit: 

You can also do the same thing with the expression evaluator:

 

 

Result:

 

Is this what you are looking for?

You can write the result to a GDB using the featurewriter :)


teresa_ro
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • February 5, 2025

Hi, 

I use this expression: 

Th result is this:

The text of the expression instead of the calculated value. 

Do I have change the datatype of the input field? 

Thank you!

Teresa 


jobvdnoort
Supporter
Forum|alt.badge.img+11
  • Supporter
  • Best Answer
  • February 5, 2025

Hi, 

I use this expression: 

Th result is this:

The text of the expression instead of the calculated value. 

Do I have change the datatype of the input field? 

Thank you!

Teresa 

 

Hee you have to make sure to use @evaluate around the full expression:

 


teresa_ro
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • February 5, 2025

Thank you, jobvdnoort, it works!