Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2014, 02:22 PM
balbas662 balbas662 is offline Restricting Cell Entry to "N12345678" Windows 7 64bit Restricting Cell Entry to "N12345678" Office 2013
Novice
Restricting Cell Entry to "N12345678"
 
Join Date: Nov 2014
Posts: 2
balbas662 is on a distinguished road
Default Restricting Cell Entry to "N12345678"

Hi,

I am trying to restrict certain cells to have to start with "N" followed by 8 digits.

For example N12345678

The N has to remain constant but the 8 numbers can change as entered by the user.

Any help will be apprceciated. Thank you for your time in advance.
Reply With Quote
  #2  
Old 11-25-2014, 05:03 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Restricting Cell Entry to "N12345678" Windows 7 64bit Restricting Cell Entry to "N12345678" Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,919
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Hi
in A2,try Data - Data Validation - Select " Custom" and enter following formula =AND(LEN(A2)=9,CODE(A2)=78,ISNUMBER(RIGHT(A2,8)*1) )

Adapt the cell to your needs
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 11-27-2014, 10:03 AM
balbas662 balbas662 is offline Restricting Cell Entry to "N12345678" Windows 7 64bit Restricting Cell Entry to "N12345678" Office 2013
Novice
Restricting Cell Entry to "N12345678"
 
Join Date: Nov 2014
Posts: 2
balbas662 is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
Hi
in A2,try Data - Data Validation - Select " Custom" and enter following formula =AND(LEN(A2)=9,CODE(A2)=78,ISNUMBER(RIGHT(A2,8)*1) )

Adapt the cell to your needs

I'm not that great with Excel so this may be a noob question, but I wan the "N" to be constant but it can be lower case or upper case is that possible?

Thanks. Also I assume I hit the rep button to say thanks on this forum?
Reply With Quote
  #4  
Old 11-27-2014, 12:46 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Restricting Cell Entry to "N12345678" Windows 7 64bit Restricting Cell Entry to "N12345678" Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,919
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Perhaps
Code:
=AND(LEN(A2)=9,or((CODE(A2)=78,(code(a2)=110)),ISNUMBER(RIGHT(A2,8)*1)  )
To add rep click on the scale in the upper right corner of the post you want to rep.
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Selected cell is "copied" whenever I use scroll bar CrabApple Excel 5 09-07-2012 03:45 PM
'Linking' entered information to other "cells" from an original "cell" in MS Word Wade Word 6 09-03-2012 05:22 PM
Outlook 2003, Modify default "entry type" for new journal entries narichardson Outlook 5 03-14-2012 08:34 AM
Restricting Cell Entry to "N12345678" How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM
Restricting Cell Entry to "N12345678" How can I paste cell "A1" contents to cell "B1" if cell "A1" is not blank? Learner7 Excel 1 04-25-2011 04:39 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft