ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   help create a formula using the IF command with AND (https://www.excelbanter.com/excel-discussion-misc-queries/65401-help-create-formula-using-if-command.html)

[email protected]

help create a formula using the IF command with AND
 
I need to create a formula for below:

IF A2 is greater than A1 AND A4A3 then A4 should be multiplied by .04,
if not then A4 should be multiplied by .03. Can someone turn that into
a formula for me?


[email protected]

help create a formula using the IF command with AND
 
I'm sorry I should clarify the "if not", if A2 is not greater than A1.


Dave Peterson

help create a formula using the IF command with AND
 
=if(and(a2a1,a4a3),a4*.04,a4*.03)

or
=a4*(if(and(a2a1,a4a3),.04,.03))

or
=a4*(.03+.01*(and(a2a1,a4a3)))

They'll all evaluate the same, so you can use the one that is easiest to
understand.




wrote:

I need to create a formula for below:

IF A2 is greater than A1 AND A4A3 then A4 should be multiplied by .04,
if not then A4 should be multiplied by .03. Can someone turn that into
a formula for me?


--

Dave Peterson


All times are GMT +1. The time now is 03:25 PM.

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