If/or/and

kizzie37

Well-known Member
Joined
Oct 23, 2007
Messages
575
Office Version
  1. 365
Ok, so i have a slightly complex If/OR/AND that I cant get to work

If the value in g3 is = to 1 OR G3 between 2 and 10), then yes, or No

=IF(AND(G3="20700",(IF(OR(AH8>=60200,AH8<=70855),"yes","no")),"yes","no")

I think this is close, but it is missing ",

can anyone help with the correct formula string?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
sorry, that should read

=IF(OR(G3="20700",(IF(OR(G38>=60200,G3<=70855)),"yes","no")))
 
Upvote 0
Hi,

Try,

=IF(OR(G3="20700",G38>=60200,G3<=70855),"yes","no")

I think the "20700" should be 20700.

Also, in first post you said

If the value in g3 is = to 1 OR G3 between 2 and 10), then yes, or No

The actual formula says totally different thing.

Jai
 
Upvote 0
OK, so what is correct bascically I have to match a cell to either single numbers, or in a range of numbers, eg:

G3 is equal to 1 and h3 between 2 and 10, then Yes
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,794
Members
449,048
Latest member
greyangel23

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