condittional formatting

Muhammad Asif 121 Reputation points
2022-11-16T16:21:44.31+00:00

my data in excel is like that,

  cell A  

0000000000000 (13 Digits)
after entering data its shows like that
00000-0000000-0 (15 Digits)

I want that when someone enters data in cell A with more than 13 digits it restricts (data validation) to enter data and if data enter more than 13 digits or less than 13 digits it automatically colors this cell.

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2022-11-16T16:48:16.267+00:00

    Hi @Muhammad Asif

    You can do this by setting a rule:

    261027-image.png

    261016-image.png

    You can do this with data validation:

    261028-image.png

    What it should look like:

    261035-image.png

    ----------------------------------

    If this is helpful please accept answer.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.