• 469K Members
• 4,873 Online
• 568K Conversations
SOLVED

New Contributor

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

5 Replies

assuming that you would want to multiply A1 and the cell is B1
in cell B1: =IF(A1>35,A1*2,A1*3)
hth
Solution

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`

If you were also wanting to include 35 in the formula (e.g A1 is more than or equal to 35) then just add a = in the criteria to @Lorenzo Kim's answer:

=IF(A1>=35,A1*2,A1*3)

Cheers

Damien

tks!!

thank you!!!

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies