Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How could write a formula to only allow certain words or phrases in a
cell. I'm using the VLOOKUP function, and if a user enters a value that is not in my table, the function returns #N/A. When I try to test a cell with #N/A, I get a debug in VB, or another #N/A with Excel formulas. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Use data validation for this. See Debra's page http://www.contextures.com/xlDataVal02.html HTH. best wishes Harald "Slick Willie" skrev i melding om... How could write a formula to only allow certain words or phrases in a cell. I'm using the VLOOKUP function, and if a user enters a value that is not in my table, the function returns #N/A. When I try to test a cell with #N/A, I get a debug in VB, or another #N/A with Excel formulas. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Also, to Check for an error
set cell = Range("B9") ' checks for any error if iserror(Cell.Value) then or ' checks specifically for #N/A if Cell.Text = "#N/A" then or ' checks specifically for #N/A if cell.Value = cvErr(xlErrNA) then -- Regards, Tom Ogilvy "Slick Willie" wrote in message om... How could write a formula to only allow certain words or phrases in a cell. I'm using the VLOOKUP function, and if a user enters a value that is not in my table, the function returns #N/A. When I try to test a cell with #N/A, I get a debug in VB, or another #N/A with Excel formulas. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
List Disctinct Strings from Range of Cells | Excel Worksheet Functions | |||
Convert a 8X3 table to a vertical range of the Unique strings only | Excel Worksheet Functions | |||
Detect strings in a range | Excel Worksheet Functions | |||
strings in a range | Excel Worksheet Functions | |||
Concatenate a strings range. | Excel Programming |