If Statement

T

tss

Need help with this formula?
Need to calculate a formula for CELL A based upon the following
IF CELL B = STOCK and CELL C >= 1.0, <25.0 THAN CELL D * 4
 
G

Glenn

tss said:
Need help with this formula?
Need to calculate a formula for CELL A based upon the following
IF CELL B = STOCK and CELL C >= 1.0, <25.0 THAN CELL D * 4

=IF(AND(B1="STOCK",C1>=1,C1<25),D1*4,"**No idea what you want here**")

IF( AND( logical1, logical2, logical3 ), value_if_true, **value_if_false** )
 
P

Pete_UK

Put this in A1:

=IF(AND(B1="Stock",C1>=1,C1<=25),D1*4,0)

You didn't say what you wanted to return if those conditions are not
met - I've assumed zero.

Hope this helps.

Pete
 
T

tss

Thanks, I did not explain what I wanted to do very well, You got me very
close, what I finally wanted to get, was IF B3 was Stock, and C3 was >=1, <25
Then Multiply D3 by 2,

A B C D
Stock $11.14 1.00 A should be 2


Hopefully this is explained better.
 
P

Pete_UK

Okay, slight amendment:

=IF(AND(B3="Stock",C3>=1,C3<25),D3*2,0)

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top