ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   need HELP with simple excel formula! (https://www.excelbanter.com/new-users-excel/171251-need-help-simple-excel-formula.html)

Danni2008

need HELP with simple excel formula!
 
I'm trying to come up with a basic formula today!

I want to find how to write a formula where I want to basically find out:
if A1 is 1, then multiply by cell B2 - otherwise (if not true), multiple by
cell B1)

Any help?
Thanks in advance

Mike H

need HELP with simple excel formula!
 
Try

=IF(A11,A1*B2,A1*B1)

Mike

"Danni2008" wrote:

I'm trying to come up with a basic formula today!

I want to find how to write a formula where I want to basically find out:
if A1 is 1, then multiply by cell B2 - otherwise (if not true), multiple by
cell B1)

Any help?
Thanks in advance


Gord Dibben

need HELP with simple excel formula!
 
Basic formula with no error trapping..............

=IF(A11,A1*B2,A1*B1)


Gord Dibben MS Excel MVP

On Tue, 1 Jan 2008 11:46:00 -0800, Danni2008
wrote:

I'm trying to come up with a basic formula today!

I want to find how to write a formula where I want to basically find out:
if A1 is 1, then multiply by cell B2 - otherwise (if not true), multiple by
cell B1)

Any help?
Thanks in advance



Danni2008

need HELP with simple excel formula!
 
THANK YOU SO MUCH, IT WORKED!



"Mike H" wrote:

Try

=IF(A11,A1*B2,A1*B1)

Mike

"Danni2008" wrote:

I'm trying to come up with a basic formula today!

I want to find how to write a formula where I want to basically find out:
if A1 is 1, then multiply by cell B2 - otherwise (if not true), multiple by
cell B1)

Any help?
Thanks in advance


Danni2008

need HELP with simple excel formula!
 
THANKS, THAT WORKS!! D

"Gord Dibben" wrote:

Basic formula with no error trapping..............

=IF(A11,A1*B2,A1*B1)


Gord Dibben MS Excel MVP

On Tue, 1 Jan 2008 11:46:00 -0800, Danni2008
wrote:

I'm trying to come up with a basic formula today!

I want to find how to write a formula where I want to basically find out:
if A1 is 1, then multiply by cell B2 - otherwise (if not true), multiple by
cell B1)

Any help?
Thanks in advance




Rick Rothstein \(MVP - VB\)

need HELP with simple excel formula!
 
Interesting... both Mike and Gord opted to perform the multiplication inside
the true and false conditions of the IF function. Since the value being
multiplied is the same (A1), my preference would be to multiple it by the
result of the IF statement...

=A1*IF(A11,B2,B1)

Rick


"Danni2008" wrote in message
...
I'm trying to come up with a basic formula today!

I want to find how to write a formula where I want to basically find out:
if A1 is 1, then multiply by cell B2 - otherwise (if not true), multiple
by
cell B1)

Any help?
Thanks in advance




All times are GMT +1. The time now is 02:45 PM.

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