Add extra function to formula

E

enquirer2

=IF(E3="ZEMO",U3,0)

I need to add reference to a value in another cell also and cannot
find how to do this.

The above looks at cell E3 and if it contains ZEMO returns the value
of cell U3. I wish to modify the above formula to only show U3 value
if cell M3="ZM" If it doesn't then 0 is shown in U3.

Can anybody help?
 
P

Pete_UK

Try this:

=IF(AND(E3="ZEMO",M3="ZM"),U3,0)

Will only return U3 if both E3 and M3 contain the specified values.

Hope this helps.

Pete
 
M

Mike H

Hi,

This isn't clear. You can't have a formula that says

if(M3="ZM",U3=0)

formula can't push values they can only pull. Perhaps you could explain a
bit more clearly.

Mike
 
E

enquirer2

Try this:

=IF(AND(E3="ZEMO",M3="ZM"),U3,0)

Will only return U3 if both E3 and M3 contain the specified values.

Hope this helps.

Pete






- Show quoted text -

Hi Pete

Thanks for your reply. I've tried this but can't get it to work.
I've also seen my mistake, which is I actually require U3 if E3=ZEMO
is true, but only if M3=ZM is false.
so if E3=ZEMO and M3 is a blank cell, U3 is Displayed. If not, 0.

Thanks Simon
 
D

David Biddulph

Change
=IF(AND(E3="ZEMO",M3="ZM"),U3,0) to
=IF(AND(E3="ZEMO",M3<>"ZM"),U3,0)
--
David Biddulph

Thanks for your reply. I've tried this but can't get it to work.
I've also seen my mistake, which is I actually require U3 if E3=ZEMO
is true, but only if M3=ZM is false.
so if E3=ZEMO and M3 is a blank cell, U3 is Displayed. If not, 0.
....
 
E

enquirer2

Change
=IF(AND(E3="ZEMO",M3="ZM"),U3,0) to
=IF(AND(E3="ZEMO",M3<>"ZM"),U3,0)
--
David Biddulph




...

Thanks ever so much for all your help chaps. All works fine now.
Simon =IF(AND(E3="ZEMO",M3<>"ZM"),U3,0)
 

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