+ Reply to Thread
Results 1 to 6 of 6

How to limit character count between commas?

  1. #1
    Registered User
    Join Date
    03-20-2014
    Location
    La
    MS-Off Ver
    Excel 2003
    Posts
    3

    How to limit character count between commas?

    Hello,
    I need to bulk upload to a site that limits a tag to a 20 character count including spaces.
    I need a simple formula that can help put this into a cell and make sure each tag doesn't go over that limit. It will look like this.
    Dog, cat, mouse, etc...
    It doesn't count the comma as a character.
    Thanks in advance .

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: How to limit character count between commas?

    Do you mean like this:

    =LEFT(A1,20)&","&LEFT(B1,20)&","&LEFT(C1,20)&"," ...

    and so on?

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-20-2014
    Location
    La
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to limit character count between commas?

    Thanks for the reply Pete!
    But I need all tags in one cell together separated by commas.

    Quote Originally Posted by Pete_UK View Post
    Do you mean like this:

    =LEFT(A1,20)&","&LEFT(B1,20)&","&LEFT(C1,20)&"," ...

    and so on?

    Hope this helps.

    Pete

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: How to limit character count between commas?

    Yes, I was assuming your individual tags were in cells A1, B1, C1 etc., and that formula (which could be in Z1 for example) will then give you what you wanted.

    Hope this helps.

    Pete

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,399

    Re: How to limit character count between commas?

    If the data is in cell B1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    = 18


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Registered User
    Join Date
    03-20-2014
    Location
    La
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to limit character count between commas?

    Thank you both so much. I've used Petes formula and it works like a charm.
    Thanks again

    Quote Originally Posted by Pete_UK View Post
    Yes, I was assuming your individual tags were in cells A1, B1, C1 etc., and that formula (which could be in Z1 for example) will then give you what you wanted.

    Hope this helps.

    Pete
    Quote Originally Posted by TMS View Post
    If the data is in cell B1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    = 18


    Regards, TMS

+ 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. [SOLVED] Conditional formatting of a cell in a column if character count reaches a limit
    By Pavan Renjal in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 01-13-2013, 03:16 PM
  2. Display Active Character Count + Limit Character Per Cell
    By euronail in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2011, 04:59 AM
  3. Replies: 1
    Last Post: 01-13-2011, 02:29 PM
  4. Limit character count in cell from left
    By BMF in forum Excel General
    Replies: 5
    Last Post: 07-12-2006, 01:11 PM
  5. 255 Character Limit
    By Colin in forum Excel General
    Replies: 2
    Last Post: 03-02-2006, 04:00 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