Formulas based on cell content

Taz1pop

New Member
Joined
Mar 5, 2014
Messages
43
Hi all

I hope someone can help, ill try and explain the best I can,

I have at the moment 2 IF formulas, to decide which formula to use depends on the content of another cell. I have tried many different versions of an IF formula but nothing seems to work. Does anyone know of a way to do this.

Example

If A2 = "test" then I want to use this formula IF(J11="E",1,0)
If A2 = "test1" then I want to use this formula IF(J11="1.1.2",1,0)

at the moment its just 2 but may need to have 3 or 4 options please can anyone help with this, its driving me insane

Thank you in advanced
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

bbott

Well-known Member
Joined
Feb 5, 2010
Messages
2,350
Try:

=IF(OR(AND(A2="test",J11="E"),AND(A2="test1",J11="1.1.2")),1,0)
 

Taz1pop

New Member
Joined
Mar 5, 2014
Messages
43
Fantastic that works amazingly thank you so much its really appreciated
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,602
Messages
5,838,321
Members
430,538
Latest member
PedroOliveira

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top