+ Reply to Thread
Results 1 to 8 of 8

Limit Text length in cell with formula by Data Validation Question

  1. #1
    Forum Contributor
    Join Date
    09-19-2003
    Posts
    226

    Limit Text length in cell with formula by Data Validation Question

    Hi

    Can I limit the text length in a cell that contains a formula? You may say "Limit the text length in the input cell". That can't be done because the formula in the resultant cell takes text from two other cells in addition to the input cell. I need to limit the overall text length to, let say, 50 characters.

    Does that make sense??

    Thanks.
    Patish

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,084

    Re: Limit Text length in cell with formula by Data Validation Question

    you mean like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    assuming that your input cells are A1 and A2

  3. #3
    Forum Contributor
    Join Date
    09-19-2003
    Posts
    226

    Re: Limit Text length in cell with formula by Data Validation Question

    Hi Glenn

    Thanks for your quick response. I am afraid that that is way off. Probably due to my explanation. Can't add a file here so I'll try as below.

    ColumnA ColumnB ColumnC

    Enter Txt Text ="enter txt"&" "&"Text"

    Let say, the Text cell contains the text "O'Riley" and in the "Enter Txt" cell I want to enter text so the result in ColumnC cannot go over 50 characters. I'd like to know whether I can use Data Validation to limit the number of characters in ColumnC to 50?

    Better?

  4. #4
    Forum Contributor
    Join Date
    09-19-2003
    Posts
    226

    Re: Limit Text length in cell with formula by Data Validation Question

    Now I can add a file. So, here it is explained.

    Thanks
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,294

    Re: Limit Text length in cell with formula by Data Validation Question

    Try it this way.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  6. #6
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: Limit Text length in cell with formula by Data Validation Question

    Use this formula in D2:


    =LEFT(A2&" "&B2&" "&C2,50)

  7. #7
    Forum Contributor
    Join Date
    09-19-2003
    Posts
    226

    Re: Limit Text length in cell with formula by Data Validation Question

    Quote Originally Posted by popipipo View Post
    Try it this way.
    Hi There

    That is good.

    Can you show me on which cell you have place the Data Validation? How does one copy it down the column? Copy>paste?

    Thanks

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,294

    Re: Limit Text length in cell with formula by Data Validation Question

    The datavalidation are in Cells A2:C2
    The most logic way is:
    copy
    paste special
    datavalidation

+ 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. Data VAlidation - Text Length & Character Type
    By Jim28 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-09-2013, 04:16 AM
  2. How to do data validation to limit the length of the data?
    By shahirslmn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2012, 11:36 AM
  3. custom data validation formula to limit cell value to maximum of 4 decimal places
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2009, 04:42 PM
  4. limit text length after importing data
    By Jean N. in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-07-2006, 04:35 PM
  5. [SOLVED] Text Length Data Validation, without error message.
    By mark in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-18-2006, 10:25 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