JPhotonics
New Member
- Joined
- May 18, 2017
- Messages
- 14
I am trying to set the character limit of my cells to 28 and force the characters to be uppercase using Data Validation so the user receives an error if either condition is not met.
I have the uppercase portion working fine, but cannot seem to get the length to function correctly. It seems Excel just ignores the length portion of my formula.
I know this can be done with VBA/Macro, but want to avoid if possible as there is other important VBA/Macro code part of the document which is owned by someone else.
Current situation:
Data Validation
Allow: Custom
Ignore Blank: Yes
Formula: =AND(EXACT(A2:A35,UPPER(A2:A35)),LEN(A2:A35)<=28)
AND(EXACT(A2:A35,UPPER(A2:A35)) - this portion appears to be functioning properly
Why can't I get the length to work? I have tried 28, <28, >28, <=28 nothing matters/works.
I tried LEFT and I also tried CONCATENATE. No dice.
I have the uppercase portion working fine, but cannot seem to get the length to function correctly. It seems Excel just ignores the length portion of my formula.
I know this can be done with VBA/Macro, but want to avoid if possible as there is other important VBA/Macro code part of the document which is owned by someone else.
Current situation:
Data Validation
Allow: Custom
Ignore Blank: Yes
Formula: =AND(EXACT(A2:A35,UPPER(A2:A35)),LEN(A2:A35)<=28)
AND(EXACT(A2:A35,UPPER(A2:A35)) - this portion appears to be functioning properly
Why can't I get the length to work? I have tried 28, <28, >28, <=28 nothing matters/works.
I tried LEFT and I also tried CONCATENATE. No dice.