ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF function in Data Validation- XL03 (https://www.excelbanter.com/excel-discussion-misc-queries/147903-if-function-data-validation-xl03.html)

Conker10382

IF function in Data Validation- XL03
 
I want to make a cell only validate an entry if another cell equals a value.
I'm using DATAVALIDATION and selecting CUSTOM. This is my formula:

=IF(NOT(C5="R"),"X","")

I want this cell to recognize if Cell C5 contains ONLY the letter "R" it is
to accept ONLY the letter "X" as an entry. If cell C5 doesn't contain ONLY
the letter "R" it is to accept ANY entry.

bpeltzer

IF function in Data Validation- XL03
 
You need a formula that returns TRUE when either C5 is not R or the given
cell is set to X. If this is to apply to A1, then the custom validation
formula would be
=or(C5<"R",A1="X")


"Conker10382" wrote:

I want to make a cell only validate an entry if another cell equals a value.
I'm using DATAVALIDATION and selecting CUSTOM. This is my formula:

=IF(NOT(C5="R"),"X","")

I want this cell to recognize if Cell C5 contains ONLY the letter "R" it is
to accept ONLY the letter "X" as an entry. If cell C5 doesn't contain ONLY
the letter "R" it is to accept ANY entry.



All times are GMT +1. The time now is 08:19 PM.

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