Modify Formula

C

carl

I am trying to modify this formula

=IF(IF(J5883="Buy";L5883-O5883;N5883-L5883)>=0;"Yes";"No")

to include this expression:

if m5883 contains "Market" return "Yes"

Thank you in advance.
 
P

Pete_UK

Try this:

=IF(ISNUMBER(SEARCH("market";M5883));"Yes";IF(IF(J5883="Buy";L5883-
O5883;N5883-L5883)>=0;"Yes";"No"))

Hope this helps.

Pete
 
S

Shane Devenshire

Hi,

What exactly do you want your formula to calculate - is J5883= "Market"
going to be tested for the > condition or is it a separate condition
altogether?

=IF(IF(OR(J1="Buy",J1="Market"),L1-O1,N1-L1)>=0,"Yes","No")
or
=IF(OR(J1="Market",IF(J1="Buy",L1-O1,N1-L1)>=0),"Yes","No")

If this helps, please click the Yes button

Cheers,
Shane Devenshire
 

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

Similar Threads

Modify a Formula 1
Modify and add extra condition 2
Modify a Formula 4
Formula Question 4
Index and Match 2
Modifying a Formula / OR Question 3
Modify Index with Match Formula 2
Modify a Formula 2

Top