Results 1 to 7 of 7

truncate?

Threaded View

  1. #7
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,477

    Re: truncate?

    @XOR LX,

    I don't think I have seen that construction for the MATCH function (match plus 1 in a resulting array of negative numbers and errors) before... I like it! However, I would point out that if the OP has blank cells within his data or if he wants to copy the formula down past the end of his data in anticipation of future additions to the data, you would need to add a trap those blank cells as your formula will generate a #N/A error for them whereas my formula natively outputs the empty text string ("") for blank cells. With that said, if the OP has a sense of some maximum length for the resulting output from the formula, say 99 characters maximum, then your match formula can be shortened to this (again possibly requiring a blank cell trap if the OP's data or usage so needs)...

    Formula: copy to clipboard
    =LEFT(A1,MATCH(1,-MID(A1,ROW($1:$99),1)))
    Last edited by Rick Rothstein; 09-16-2020 at 10:28 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Truncate Name
    By ernestgoh in forum Excel General
    Replies: 3
    Last Post: 03-31-2006, 05:41 AM
  2. [SOLVED] truncate
    By Matt Lunn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 03:05 PM
  3. [SOLVED] truncate
    By tamar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] truncate
    By tamar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. [SOLVED] truncate
    By Matt Lunn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  6. truncate
    By tamar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] truncate
    By tamar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  8. [SOLVED] truncate
    By tamar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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