Jump to content

# fields to add up based on data in text field


This topic is 7611 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi

I have 4 number fields "cost of repair 1, cost of repair2 , cost of repair 3 and cost of repair 4". I also have 4 text fields "type of repair cost 1, type of repair cost 2, type of repair cost 3, type of repair cost 4" I want to add the values of all the cost of repair for which there is a value "other accessories" entered into any of the text fields named above. Is it possible to do these conditionnal additions in filemaker?

Link to comment
Share on other sites

Hi LUC.ROBITAILLE,

Case(type of repair cost 1 = "other accessories" , cost of repair 1) +

Case(type of repair cost 2 = "other accessories" , cost of repair 2) +

Case(type of repair cost 3 = "other accessories" , cost of repair 3)+

Case(type of repair cost 4 = "other accessories" , cost of repair 4)

See if this does what you want.

HTH

Lee

smile.gif

Link to comment
Share on other sites

Thanks, it works! I had to add "0" ,in the syntax.

Case(type of repair cost 1 = "other accessories" , "0" ,cost of repair 1) +

Case(type of repair cost 2 = "other accessories" , "0" ,cost of repair 2) +

Case(type of repair cost 3 = "other accessories" , "0" ,cost of repair 3)+

Case(type of repair cost 4 = "other accessories" , "0" ,cost of repair 4)

If I may refine my problem, I find it rather tedious to do so for not the 4 number fieds but the 26 I have...not to mention that there are other choices that "other accessories" to add up but also "remote starters" and 3 other choices...is there any other ways of doing it that you might know of?

thanks again

;-)

Luc

Link to comment
Share on other sites

This topic is 7611 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.