![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 1
|
I want to enter a validation on a cells, the data can only be "A B or C" so how can I do that, I'm a Newb to i'm a bit confused! thank u mike
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
Try this:
On a separate sheet to where you want the validation to occur, type in A B and C in separate cells. Select those cells, click on Insert-Name- Define and enter a name in the top box (say myList) and click on 'Add'. Go onto the sheet where you want the data to be validated, select the cells and click on Data-Validation, change the 'Allow' to List and in the Source box enter =myList. HTH. |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
In addition to what Mudface suggested, you could also use a formula for validation ... 1) Click on A1 then highlite the cells you want to validate 2)DATA|VALIDATION|SETTINGS|Allow|Custom|Formula 3) enter the following formula in the formula box =or(A1="A",A1="B",A1="C") HTH |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|