Dec 05, 2022 09:11 AM - edited Dec 05, 2022 09:13 AM
Hi
I would appreciate any assistance with my formula.
The end goal is that my Cost field should automatically calculate a cost based on a combination of options selected from the Frequency, Activity, and Complex fields.
The dropdown options for Frequency are:
"Daily" is equal to 22 days.
"1 X Week" is equal to 4 days.
"2 X Week" is equal to 8 days.
"3 X Week" is equal to 12 days.
"1 X Month" is equal to 1 day.
The dropdown options for Activity are:
"1" is equal to 30 min.
"2" is equal to 1 hour.
"3" is equal to 2 hours.
"4" is equal to 3 hours.
"5" is equal to 4 hours.
The dropdown options for Complexity are:
"1 (Standard)" is equal to €15.
"2 (Medium)" is equal to €16.
"3 (Difficult)" is equal to €17.
"4 (Very Difficult)" is equal to €18.
Now in my Cost field, I want whatever I've selected in Frequency, Activity, and Complex to calculate as an amount.
For example, if I select "Daily" in the Frequency field, "2" in the Activity field, and "3 (Difficult)" in the Complexity field, the amount should be €374 (22*1*17).
I hope I make sense. 😎
Again, your help is appreciated.
Thanks
Solved! Go to Solution.
Dec 05, 2022 09:54 AM
I would use a series of SWITCH() statements (which asks "If FIELD = A output 1, If FIELD = B output 2, etc.) and then multiply the result of those SWITCHs together
SWITCH({Frequency},
"Daily", 22,
"1 X Week", 4,
"2 X Week", 8,
"3 X Week", 12,
"1 X Month", 1
) *
SWITCH({Activity},
"1", .5,
"2", 1,
"3", 2,
"4", 3,
"5", 4
) *
SWITCH({Complexity},
"1(Standard), 15,
"2(Medium), 16,
"3(Difficult), 17,
"4(Very Difficult), 18
)
Dec 05, 2022 02:40 PM
Once you have the Formula set, you can use the Formatting tab to specify Currency to correctly display the result, too.
Dec 05, 2022 09:54 AM
I would use a series of SWITCH() statements (which asks "If FIELD = A output 1, If FIELD = B output 2, etc.) and then multiply the result of those SWITCHs together
SWITCH({Frequency},
"Daily", 22,
"1 X Week", 4,
"2 X Week", 8,
"3 X Week", 12,
"1 X Month", 1
) *
SWITCH({Activity},
"1", .5,
"2", 1,
"3", 2,
"4", 3,
"5", 4
) *
SWITCH({Complexity},
"1(Standard), 15,
"2(Medium), 16,
"3(Difficult), 17,
"4(Very Difficult), 18
)
Dec 05, 2022 02:40 PM
Once you have the Formula set, you can use the Formatting tab to specify Currency to correctly display the result, too.
Dec 06, 2022 02:21 AM
Thank you so much for your help!