+ Reply to Thread
Results 1 to 5 of 5

Triming the Name

  1. #1
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    Triming the Name

    Hi Excel Gurus,

    I 1000 odd long name appearing and I want to trim it through excel formula. Please help

    Example: Like this I have a name set like

    Row1 - Marcas du felo, rodriges -
    Row2 - dosedat ju foris, anjelo -
    Row3 - gosentti di, maria -

    Need a formula just to show Marcas, dosedat, gosentti
    Thanks

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Triming the Name

    Assuming your name is in A1, put this in B1. Drag down as required.

    =LEFT(A1,FIND(" ",A1)-1)
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    Re: Triming the Name

    It worked. thanks a lot

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Triming the Name

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    Please Login or Register  to view this content.
    Use GetText() function in excel cell by passing the input range like the below

    =GetText(A1:A3)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Triming the Name

    Glad it helped!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Triming row
    By lovinguy in forum Excel General
    Replies: 1
    Last Post: 09-11-2013, 09:44 PM
  2. [SOLVED] Getting error to vba code for triming the document.
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-01-2013, 09:34 AM
  3. Replies: 2
    Last Post: 12-12-2012, 03:23 AM
  4. [SOLVED] Triming space after name
    By Redtrac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-27-2012, 10:58 AM
  5. Replies: 3
    Last Post: 03-29-2011, 11:03 AM
  6. how can one show zeros after triming the text in excel
    By shekar goud in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-28-2009, 06:04 AM
  7. Triming data in a cell?
    By SandyUK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2006, 12:11 PM
  8. Triming twice in a cell
    By SandyUK in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2005, 09:09 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