+ Reply to Thread
Results 1 to 2 of 2

Cell Number formatting

  1. #1
    Registered User
    Join Date
    Solihull, England
    MS-Off Ver
    Excel 2010

    Cell Number formatting

    Hi all,

    I would like to introduce a custom format to a range of cells in my work sheet. Basically, I want users to enter a part number as opposed to an item description, so effectively forcing users to enter a part number only. However, I am struggling with using the 'custom' number format option to obtain what I want in terms of number formatting. The problem I have is that my part numbers contain Text and Numbers which can can change, for example, I want to enter a part number in the following format: NPLA-14N276-AA all of the characters in this part number can change but the format will remain the same so for example the next part number may be: MPLA-14290-YA

    Is it possible to restrict cells to the number format i require and if possible can the cell be restricted to only accept this format?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    Wittering, West Sussex, UK
    MS-Off Ver
    365 for Mac OSX, 365 for windows, Windows 10 Insider

    Re: Cell Number formatting

    have you thought of data validation
    If the - is always the 5th character and the 2nd - is always 3rd from last - ie always 2 characters at end
    assuming entry is C1

    as a data validation format

    Also its useful to have a spreadsheet sample with data layout and expected results - see yellow banner at top of thread
    Attached Files Attached Files
    Last edited by etaf; 02-24-2021 at 05:36 AM.

    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Applying number formatting to a cell, dependent upon contents of another cell.
    By IAPharmGirl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2016, 04:08 PM
  2. Formatting Cell to number after IF formula
    By KHann1 in forum Excel General
    Replies: 3
    Last Post: 05-30-2016, 03:57 PM
  3. Replies: 4
    Last Post: 07-11-2014, 12:37 PM
  4. Replies: 4
    Last Post: 04-18-2013, 03:07 PM
  5. Replies: 1
    Last Post: 04-18-2013, 02:51 PM
  6. cell formatting to keep zero at end of number
    By kriminaal in forum Excel General
    Replies: 5
    Last Post: 05-09-2009, 11:28 AM
  7. formatting cell number based on previous cell number
    By Pasquini in forum Excel General
    Replies: 3
    Last Post: 06-20-2006, 01:40 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1