Como restringir tipo de celdas

JOJAFO1234

New Member
Joined
Apr 24, 2014
Messages
2
Buenas deseo crear celdas que solo me permitan ingresar ciertos tipos de datos por ejemplo:
Fecha ===> aaaa-mm-dd
una j con tres numeros cualquiera fijos ni mas ni menos ===> j###
20 digitos ==> ################20.
Le agradezco de antemano a quien me pueda ayudar
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Para fecha, define propiedades de celda por clic derecho y eligir...

Format Cells... > Number (hoja) > Custom

cambio "Type" a "yyyy-mm-dd"

Para otro dos problema que tiene, cambio propiedades de celda a "Text" en (Format Cells... > Number (hoja))

Para mas informcion, lee red Formato de celdas en Excel 2013 - Excel Total
 
Upvote 0
En cuanto a como restringir como pide en su segundo ejemplo – “J” y 3 dígitos, se puede hacerlo así:

DataValidationBeginsJ.jpg

La fórmula que se usa es:
=AND(LEFT(A1,1) = "J",LEN(A1)=4,NOT(ISERROR(RIGHT(A1,3)+0)))

Para eso de texto de largo de 20, se hace así:

DataValidationLen20.jpg
 
Upvote 0

Forum statistics

Threads
1,214,419
Messages
6,119,389
Members
448,891
Latest member
tpierce

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