Forum Discussion
Barbara Pansa
Nov 18, 2018Copper Contributor
doubt about Excel
how can I insert a function of this type: if the value of cell A1 is more than 35, multiplies x 2, and if it is less than 35, multiplies x 3? Thanks to those who can help me
- Nov 18, 2018
Hi
If you want a function you have to program a UDF in VBA.
If you can settle with a formula:
=IFS(A1>35,A1*2,A1<35,A1*3,A1=35,"not defined")
or
=IFS(A1>35,2,A1<35,3,A1=35,1)*A1
Detlef_Lewin
Nov 18, 2018Silver Contributor
Hi
If you want a function you have to program a UDF in VBA.
If you can settle with a formula:
=IFS(A1>35,A1*2,A1<35,A1*3,A1=35,"not defined")
or
=IFS(A1>35,2,A1<35,3,A1=35,1)*A1
- Barbara PansaNov 18, 2018Copper Contributor
thank you!!!