+ Reply to Thread
Results 1 to 6 of 6

Custom formatting to show only a few of the text characters in a cell with a string

  1. #1
    Registered User
    Join Date
    05-14-2009
    Location
    Bay Area, CA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Custom formatting to show only a few of the text characters in a cell with a string

    Is there a custom format that will only show, say, 5 characters of a cell that contains text? The way it is set up, I can't really do it with formula like LEFT. Thanks!

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

    Re: Custom formatting to show only a few of the text characters in a cell with a string

    Format Cells and Custom Format can only affect the way that numbers are displayed - it does not affect text values (other than font/colour etc.). Perhaps you can narrow the column and use a fixed-width font like Courier so that you can only see the first 5 characters.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-14-2009
    Location
    Bay Area, CA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Custom formatting to show only a few of the text characters in a cell with a string

    Thanks. I don't need to change the values of the cells. Some of the cell contain long text and bleed over into the adjacent (empty) cells making it visually unappealing. I was hoping I could just show the first few characters.

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

    Re: Custom formatting to show only a few of the text characters in a cell with a string

    If the adjacent column is empty, then why not have a formula that uses LEFT(cell,5) and then hide the column with the long text? Or just put a single space in the adjacent cell and copy this down to prevent the long text spilling into that column.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    05-14-2009
    Location
    Bay Area, CA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Custom formatting to show only a few of the text characters in a cell with a string

    Thanks. Those would work, just looking for something a little more elegant that doesn't use a helper column. Thanks again.

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

    Re: Custom formatting to show only a few of the text characters in a cell with a string

    You're welcome.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Extract text string of a cell with many text characters
    By TINHAMMER in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-13-2023, 10:33 AM
  2. How to delete the first 13 characters of a text string in a cell
    By PeteMac1961 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-23-2020, 10:18 AM
  3. [SOLVED] Extract cell text string between 2 different characters
    By Shallabee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-18-2019, 08:09 AM
  4. Add dots to text string using custom cell formatting
    By norits021 in forum Excel General
    Replies: 8
    Last Post: 08-05-2017, 02:50 PM
  5. [SOLVED] Show The Value AFTER Custom Formatting in another Cell?..
    By Ourkid123uk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2017, 10:25 AM
  6. [SOLVED] Backspace event text box string formatting not able to delete characters
    By Code Flunkie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2014, 04:30 PM
  7. [SOLVED] text / number string custom formatting
    By nastech in forum Excel General
    Replies: 0
    Last Post: 04-27-2006, 02:35 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