+ Reply to Thread
Results 1 to 5 of 5

Unique Trimming of cell

  1. #1
    Registered User
    Join Date
    07-12-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    49

    Unique Trimming of cell

    Have about 5000 cells in the following format:

    Vol / Avg. 15,372.00/7,000.00

    What I need is a function to trim everything, except for the figure on the right of the second ( / ) .....I can't trim say 5 numbers from the right as this figure will always have a different amount of characters.

    Thx

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Unique Trimming of cell

    One way, if your string is in A1 then

    B1: =0+REPLACE(A1,1,FIND("#",SUBSTITUTE(A1,"/","#",2)),"")

  3. #3
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Unique Trimming of cell

    Vow DK i was working on a long formula but before sending i just refresh and your exceptional formula was there. So my formula is with me now
    If this post helps, Please don't 4get to click the star icon located at the bottom left of my Post.

  4. #4
    Registered User
    Join Date
    07-12-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Unique Trimming of cell

    Quote Originally Posted by DonkeyOte View Post
    One way, if your string is in A1 then

    B1: =0+REPLACE(A1,1,FIND("#",SUBSTITUTE(A1,"/","#",2)),"")
    GENIUS!!

    I have one problem

    Just to be difficult, some of the cells are format like this:

    Vol / Avg. 932,752.00/1.46M

    So i'm getting the #VALUE for amounts that are in the millions..

    Is there another function to combat this? I could open two columns on the right of the cell and run each next to eachother then somehow combine.

    Again really appreciate the help.

    Cheers

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Unique Trimming of cell

    remove the 0+ ... the results will obviously not be numbers but you should not get any errors.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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