# Data validation possibility

#### mdileep

##### New Member
In cell range L6 to L12 I want to fill value between 220 to 250 or wrote text as NA.
is it possible by data validation in excel-2007.
Thanks!

### Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

#### etaf

##### Well-known Member
i dont know 2007 that well, any longer, been a while since used

Select L6 to L12 in data validation
Custom
Put this formula
=OR(L6="NA",AND(L6>=220,L6<=250))
I have put for view the formula also in column N
Book15
KLMN
5
6220TRUE
7250TRUE
8NATRUE
9FALSE
10FALSE
11FALSE
12FALSE
13
14
Sheet1
Cell Formulas
RangeFormula
N6:N12N6=OR(L6="NA",AND(L6>=220,L6<=250))
Cells with Data Validation
CellAllowCriteria
L6:L12Custom=OR(L6="NA",AND(L6>=220,L6<=250))

#### mdileep

##### New Member
i dont know 2007 that well, any longer, been a while since used

Select L6 to L12 in data validation
Custom
Put this formula
=OR(L6="NA",AND(L6>=220,L6<=250))
I have put for view the formula also in column N
Book15
KLMN
5
6220TRUE
7250TRUE
8NATRUE
9FALSE
10FALSE
11FALSE
12FALSE
13
14
Sheet1
Cell Formulas
RangeFormula
N6:N12N6=OR(L6="NA",AND(L6>=220,L6<=250))
Cells with Data Validation
CellAllowCriteria
L6:L12Custom=OR(L6="NA",AND(L6>=220,L6<=250))
how is it possible to allow any text instead of NA, in same range
Thanks again.

#### etaf

##### Well-known Member
Again, not looked into 2007
ISTEXT()
=OR(ISTEXT(L6),AND(L6>=220,L6<=250))

#### mdileep

##### New Member
Again, not looked into the 2007
ISTEXT()
=OR(ISTEXT(L6),AND(L6>=220,L6<=250))
Thanks, you have saved my much more time.

you are welcome

Replies
5
Views
76
Replies
1
Views
123
Replies
3
Views
93
Replies
1
Views
19
Replies
3
Views
72

1,126,998
Messages
5,622,097
Members
415,876
Latest member
csibonga2k17

### 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.

### Which adblocker are you using?

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

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