ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Validation numeric and text (https://www.excelbanter.com/excel-discussion-misc-queries/154019-validation-numeric-text.html)

BNT1 via OfficeKB.com

Validation numeric and text
 
Hi

Is it possible to validate a cell that will only except numeric values, and
only the letter "H"? My idea, is that when the guy is on holiday, "H" can be
entered instead of the numeric value "0"

Thanks in advance

Regards

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200708/1


JE McGimpsey

Validation numeric and text
 
One way:

Allow: Custom
Formula: =OR(ISNUMBER(A1),A1="H")


In article <76a66fe54efa3@uwe, "BNT1 via OfficeKB.com" <u19326@uwe
wrote:

Hi

Is it possible to validate a cell that will only except numeric values, and
only the letter "H"? My idea, is that when the guy is on holiday, "H" can be
entered instead of the numeric value "0"

Thanks in advance

Regards


T. Valko

Validation numeric and text
 
So you want the cell to accept *either* a number or the letter H?

Try this:

DataValidation
AllowCustom
Formula: =OR(ISNUMBER(A1),A1="H")


--
Biff
Microsoft Excel MVP


"BNT1 via OfficeKB.com" <u19326@uwe wrote in message
news:76a66fe54efa3@uwe...
Hi

Is it possible to validate a cell that will only except numeric values,
and
only the letter "H"? My idea, is that when the guy is on holiday, "H" can
be
entered instead of the numeric value "0"

Thanks in advance

Regards

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200708/1




BNT1 via OfficeKB.com

Validation numeric and text
 
thanks guys

T. Valko wrote:
So you want the cell to accept *either* a number or the letter H?

Try this:

DataValidation
AllowCustom
Formula: =OR(ISNUMBER(A1),A1="H")

Hi

[quoted text clipped - 7 lines]

Regards


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200708/1


T. Valko

Validation numeric and text
 
You're welcome!

--
Biff
Microsoft Excel MVP


"BNT1 via OfficeKB.com" <u19326@uwe wrote in message
news:76afb532db1be@uwe...
thanks guys

T. Valko wrote:
So you want the cell to accept *either* a number or the letter H?

Try this:

DataValidation
AllowCustom
Formula: =OR(ISNUMBER(A1),A1="H")

Hi

[quoted text clipped - 7 lines]

Regards


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200708/1





All times are GMT +1. The time now is 05:25 AM.

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