+ Reply to Thread
Results 1 to 6 of 6

Limiting number of characters in a cell without using data validation or macros.

  1. #1
    Registered User
    Join Date
    03-29-2019
    Location
    Tokyo
    MS-Off Ver
    Office 365
    Posts
    2

    Limiting number of characters in a cell without using data validation or macros.

    Hi Everyone,
    I have a template which a user populates but there are certain rules for each column. For example, one column contains text that cannot exceed 60 characters in length. Is there a way to limit the number of characters in a cell without using data validation? The problem with data validation is if the text is copied from another worksheet to the template, the data validation becomes useless. Macros cannot be used as well since the file is a basic workbook that will be converted to a csv file by a separate program that cannot do the same if the file is macro-enabled.

    Thank you,
    Kristine

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Limiting number of characters in a cell without using data validation or macros.

    Sadly, I believe the answer is "No" You could have a separate cell(s) checking the text length and returning a warning within that cell(s). Once you convert to CSV, you will lose those formulas also (although the warning will remain as text).
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Limiting number of characters in a cell without using data validation or macros.

    Dunno if this is correct or not, havent read it in depth.
    From another website



    "Problem: There is no good solution to prevent users from bypassing (or removing) the Data Validation process (both intentionally and unintentionally). Users are able to paste over cells that contain Data Validation and completely remove it from the worksheet. Some users have no idea when this occurs and others do this intentionally because they want to use their own data and formatting. Users are also able to paste their data as values directly into the cell with Data Validation and bypass the entire process. Protecting the worksheet doesn’t work because you still need to allow the user to input data into the cell.

    The majority of Excel users are not technical in nature and most corporations no longer allow macros or Visual Basic, we must rely on the skills of the author and the capabilities of the software to reduce improper use and notify the user when "invalid data" is entered.

    Simple Solution: In the Settings Tab, there are 2 checkboxes: Ignore blank and In-cell dropdown. Adding the following options gives the author more control over the data being entered by the user.

    ☑ Prevent overwrite – This should probably be included by default. If the author took the time to manually create Data Validation on a worksheet, users shouldn’t be able to just paste over it or delete it from the worksheet.

    ☑ Allow paste values/Circle invalid data – There is value in allowing users to paste values into cells containing Data Validation. This option allows users to paste their data as values into cells with Data Validation but it also circles each cell that does not meet the Data Validation criteria. If this box is not checked, users must be restricted from pasting values into the cell but not restricted from pasting into the formula bar, double clicking inside the cell, or by selecting the cell and pressing the F2 key."
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Limiting number of characters in a cell without using data validation or macros.

    I don't remember ever seeing a “Prevent overwrite” option. Where is this?

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Limiting number of characters in a cell without using data validation or macros.

    Sounds more like something from the MS Excel Uservoice site.

  6. #6
    Registered User
    Join Date
    03-29-2019
    Location
    Tokyo
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Limiting number of characters in a cell without using data validation or macros.

    Thank you for taking the time to answer my question. I guess it's a no go on adding that checking on my template.

+ 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. Limiting Number of Characters in a Cell
    By bseymore in forum Excel General
    Replies: 3
    Last Post: 10-24-2017, 03:38 PM
  2. Limiting the number of characters per cell
    By CharterJP in forum Excel General
    Replies: 6
    Last Post: 11-18-2010, 05:57 PM
  3. Excel 2007 : Limiting The Number Of Characters In A Cell
    By The_Snook in forum Excel General
    Replies: 2
    Last Post: 06-30-2010, 08:41 AM
  4. Limiting Number of Characters in a Cell
    By David785 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-22-2009, 04:35 PM
  5. Limiting number of characters in a cell
    By Art Faye in forum Excel General
    Replies: 6
    Last Post: 11-13-2007, 09:37 PM
  6. limiting number of characters in a cell
    By jack du lin in forum Excel General
    Replies: 2
    Last Post: 05-30-2006, 10:55 AM
  7. Limiting the number of characters in a cell. How?
    By caliskier in forum Excel General
    Replies: 3
    Last Post: 01-12-2006, 12:50 PM

Bookmarks

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