ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using IF statement to make conditional formulas? (https://www.excelbanter.com/excel-programming/369342-using-if-statement-make-conditional-formulas.html)

Natalie[_4_]

Using IF statement to make conditional formulas?
 
How do I type it in Excel without using macros to achieve the following
function?

If A1<5, then B1 = A1*(A1-5)
If A1=5, then B1 = A1*(A1+5)

Any help is much appreciated!! :)


Dominic[_4_]

Using IF statement to make conditional formulas?
 
Hi,

type this in cell B1:

=IF(A1<5,A1*(A1-5),A1*(A1+5))

Regs,

Dominic

Natalie wrote:
How do I type it in Excel without using macros to achieve the following
function?

If A1<5, then B1 = A1*(A1-5)
If A1=5, then B1 = A1*(A1+5)

Any help is much appreciated!! :)



J. Leadbeater

Using IF statement to make conditional formulas?
 
Natalie,

Select Cell B1 then type =IF(A1<5,A1*(A1-5),A1*(A1+5)).

This should work.






Jon L.

*** Sent via Developersdex http://www.developersdex.com ***

Natalie[_4_]

Using IF statement to make conditional formulas?
 
Thank you!! It works :)

J. Leadbeater wrote:
Natalie,

Select Cell B1 then type =IF(A1<5,A1*(A1-5),A1*(A1+5)).

This should work.






Jon L.

*** Sent via Developersdex http://www.developersdex.com ***




All times are GMT +1. The time now is 02:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com