Formula to identify a specific criteria

bobgrand

Board Regular
Joined
Apr 14, 2008
Messages
220
Hello all,

COL: G Has a range of values in multiples of 10 and ranges from 10 through 90.
COL: H Has a dollar value which shows negative and positive values.

COL: AD >> IF G2 = 10 or 20 and AD2 is < 0.00 put a 1 in the cell otherwise 0

This is the formula I put together but, the overall result is identifying information outside of this criteria.

=IF(OR(G2=10,G2=20,AND(AD2<0)),1,0)

Any help would be greatly appreciated
Bob
 

Some videos you may like

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,479
Office Version
  1. 365
Platform
  1. Windows
You were very close, you had the right idea, but just got a couple of bits the wrong way around

=IF(AND(OR(G2=10,G2=20),AD2<0),1,0)
 

bobgrand

Board Regular
Joined
Apr 14, 2008
Messages
220
I knew what kind of day it was going to be when I put my left shoe on my right foot.

Thank you so much :)
 

Watch MrExcel Video

Forum statistics

Threads
1,127,768
Messages
5,626,761
Members
416,202
Latest member
donya ba

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