ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Data validation - comma (https://www.excelbanter.com/excel-programming/326301-data-validation-comma.html)

Steph[_3_]

Data validation - comma
 
Is there a way to have data validation NOT allow commas in a cell?



Jim Thomlinson[_3_]

Data validation - comma
 
Select the cell you want to validate
Select Data - Validation - Custom
Add this formula

=IF(ISERROR(FIND(",",A5)), TRUE, FALSE)

This is for Cell A5 but you can use it for whatever cell you just selected...

HTH

"Steph" wrote:

Is there a way to have data validation NOT allow commas in a cell?




Bob Phillips[_6_]

Data validation - comma
 
Steph,

Do you mean DataValidation, or just checking input?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Steph" wrote in message
...
Is there a way to have data validation NOT allow commas in a cell?





Steph[_3_]

Data validation - comma
 
Thank you!!

"Jim Thomlinson" wrote in message
...
Select the cell you want to validate
Select Data - Validation - Custom
Add this formula

=IF(ISERROR(FIND(",",A5)), TRUE, FALSE)

This is for Cell A5 but you can use it for whatever cell you just

selected...

HTH

"Steph" wrote:

Is there a way to have data validation NOT allow commas in a cell?







All times are GMT +1. The time now is 06:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com