Formula Help

mikesal57

Board Regular
Joined
Jul 6, 2011
Messages
193
Office Version
  1. 2016
Platform
  1. Windows
Hello ......

I have Cells A B C

A & B will have numbers 1 thru 20......no zero's or negative numbers

I need C to be 1 if criterias are met .......0 if not met

Criteria:

if A is 1........B can be anything.............C gets a 1

if A is 2........B must be >=7.................C gets a 1

if A is 3........B must be >= 11..............C gets a 1

all other scenarios get a .....0 in C


Thx
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Give this a try. In C1, drag down as you wish...

Code:
=IF(OR(AND(A1=1,B1<>""),AND(A1=2,B1>6),AND(A1=3,B1>10)),1,0)
 
Upvote 0
:) There are those that know me that would argue that lol. I'm glad it worked for you.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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
Back
Top