Customize Cell

kcgojnur

Board Regular
Joined
Aug 13, 2014
Messages
122
Hello -

Is there a way to customize a column of cells that requires 9 digits (no more or less) and no dashes? This column will be used to enter social security numbers. I was able to customize no dashes, however, not sure how to require 9 digits in addition to no dashes.
 
Have you tried it?
Hadn't tried it when I posted as I was not near my computer. As soon as I posted it I realized that the INDIRECT is needed if the DV is to be applied to more than a single cell, but I got called away and just now returned. ;)
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
.. I realized that the INDIRECT is needed if the DV is to be applied to more than a single cell,..
INDIRECT is required anyway (at least in my opinion) otherwise, if rows are added/removed above the DV cell(s), instead of having 48:57 you could suddenly end up with, say, 50:59 which would no longer just be dealing with digit codes.
As far as I have been able to come up with the SUM(9-LEN(....))= 9 is also required.
 
Upvote 0
INDIRECT is required anyway (at least in my opinion) otherwise, if rows are added/removed above the DV cell(s), instead of having 48:57 you could suddenly end up with, say, 50:59 which would no longer just be dealing with digit codes.
As far as I have been able to come up with the SUM(9-LEN(....))= 9 is also required.
Yes, certainly seems that way after testing it a bit. That's a very creative solution!
 
Upvote 0
Thanks Peter, worked perfectly!
Sorry, I didn't mean to ignore this post earlier .. you are very welcome. :)


.. and thanks Joe, but I didn't create that all on my own - adapted an idea I saw somewhere else. :biggrin:
 
Upvote 0

Forum statistics

Threads
1,215,136
Messages
6,123,243
Members
449,093
Latest member
Vincent Khandagale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top