Gajendran Yadhav
Board Regular
- Joined
- Sep 8, 2023
- Messages
- 51
- Office Version
- 2010
- 2007
- Platform
- Windows
Friends,
I'm working on a worksheet where I've a plenty of data to be validated.
I'm having the column N for entering the monetary value ranging from "0" to actual value.
If column P is equal to "FIR" or "Criminal", then column N should accept only "0" as its value.
if column P is not equal to "FIR" or "Criminal", then it can accept any value greater than "0"
As of now I'm using the Conditional Formatting to highlight in Red (as error) if the condition is satisfied.
=IF(OR(P5="FIR",P5="CRIMINAL")*AND(N5<>0),TRUE,FALSE)
Row 5 is the first row of the worksheet. Rows 1 - 4 has some headers and table heads.
A simple Data Validation formula would suffice my need. I'm not much of a techie to use VBA Codes...
Any help is much appreciated. TIA
I'm working on a worksheet where I've a plenty of data to be validated.
I'm having the column N for entering the monetary value ranging from "0" to actual value.
If column P is equal to "FIR" or "Criminal", then column N should accept only "0" as its value.
if column P is not equal to "FIR" or "Criminal", then it can accept any value greater than "0"
As of now I'm using the Conditional Formatting to highlight in Red (as error) if the condition is satisfied.
=IF(OR(P5="FIR",P5="CRIMINAL")*AND(N5<>0),TRUE,FALSE)
Row 5 is the first row of the worksheet. Rows 1 - 4 has some headers and table heads.
A simple Data Validation formula would suffice my need. I'm not much of a techie to use VBA Codes...
Any help is much appreciated. TIA