Skip to main content
Question

How to compare two columns. If it is matched, change to the new value

  • September 15, 2023
  • 1 reply
  • 35 views

Forum|alt.badge.img

Dear Sir / Madam,

 

So I have two excel tables. Mother name.xlsx is the original data and waterbody.xlsx is another table.

 

So I would like to compare two excels. If both excels' column "ModelName" are matched. The mother name excel's model name column should change to newmodelname column. If not, just keep the original modelname.

 

I try to use tester transformer but I am not sure why nothing can be matched.

 

I hope someone can give me a hand.

 

The output that I want is in the Output.xlsx

 

Thank you very much.

 

1 reply

nielsgerrits
VIP

Before you can compare two values in one row, you must merge them. One way to do this is to use a FeatureMerger. Is this the pointer you needed?


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