Skip to main content
Question

Mimic Excel Formulas in FME


aashnaparikh
Contributor
Forum|alt.badge.img+2

Hi, 

I am trying to replicate the V-Lookup formulas in FME that I currently have in my excel. 

Also the current excel formulas refers to a different sheet named Limits and I am looking to create the same sheet in the FME and finally when the writer generates the output the file should have 2 sheets - 1st one where the data is written and the 2nd will be Limits.

 

Writing to the existing template is not an option due to complexities involved

 

 

3 replies

crutledge
Influencer
Forum|alt.badge.img+32
  • Influencer
  • May 8, 2025

Hi ​@aashnaparikh Are you looking to recreate the vlookup formula so it is written in the output spreadsheet?

Also for writing multiple sheets to one excel file the FeatureWriter works well using multiple data streams as input. 


aashnaparikh
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • May 8, 2025

Hi ​@crutledge

The context is I have a reader file with 7 attributes and 400 features. Now these features needs to be mapped straight to the 7 attributes in my writer. However there are other attributes in the writer that have a static value ( which I have defined using the attribute manager) and then there are attributes where the calculation is based on 2 different instances. The 1st instance is where the formula is calculated based on the attributes sitting in the same sheet i.e Standard Sheet and the 2nd instance is where the formula is calculated based on the data from the limits sheet. 

 

My initial approach was to overwrite an existing template using the feature writer but it did not seem to populate the data correctly. 

 

Now I am approaching the 2nd route where I manually define the formulas within FME and generate the excel file which is exactly similar to my template without overwriting it. 

 

The output should have 2 sheets Standard and Limits with data being written to Standard Sheet. 


crutledge
Influencer
Forum|alt.badge.img+32
  • Influencer
  • May 8, 2025

Hi again ​@aashnaparikh 

Yup. I think the FeatureWriter is definitely where you will get the two sheets output you want. To get there, however, you could simulate the vlookup for the “in sheet” value matches using a conditional statement.
 


While for the comparison between sheets you might have success using a Matcher transformer and the fme_feature_type will allow tell you the source of the matched records.
 

Let me know if I am following. I know there is a better way to do this but this is all I can come up with or now. Gears are turning. I hope that helps.


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