It is unclear from your post whether you want exactly 16 digits to be
entered or a maximum of 16 digits to be entered. The formula below assumes
the maximum of 16 digits (change the <= to = for exactly 16 digits).
Select the cell, cells or entire column (as appropriate), click
Data/DataValidation on Excel's menu bar, change the Allow drop-down to
Custom and use this formula in Formula field...
=AND(LEN(A1)<=16,ISNUMBER(A1))
Change the A1 reference to the address of the first cell in the range you
have selected.
The suggestions given both work but be aware that Excel will accept 15 digit
numbers only.
The 16th will be turned to zero.
1234567812345678 will become 1234567812345670
If you need the 16 digits the cell must be formatted as Text.
Gord Dibben MS Excel MVP
On Thu, 9 Aug 2007 07:50:27 -0700, kHuRRum HumaYun <kHuRRum
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.