+ Reply to Thread
Results 1 to 8 of 8

assistance to merge 2 formula trim, substitute, len as one formula

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    assistance to merge 2 formula trim, substitute, len as one formula

    In column A2 trying to remove trailing spaces , commas, the word USD and convert cell to number

    How to merge the formulas below as one.

    I have to do it in different cells

    USD 11,269.44

    expected RESULTS 11269.44


    =SUBSTITUTE(TRIM(SUBSTITUTE(A2,",",""))," "," ")


    =RIGHT(A2,LEN(A2)-3)
    Last edited by JEAN1972; 09-06-2017 at 03:40 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: assistance to merge 2 formula trim, substitute, len as one formula

    hi JEAN1972. you don't have to remove the comma if you convert it to a number format. this is how you can do that
    =--MID(A2,FIND(" ",A2)+1,LEN(A1))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: assistance to merge 2 formula trim, substitute, len as one formula

    OR,

    try the following:

    =1*SUBSTITUTE(A1,"USD","")

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: assistance to merge 2 formula trim, substitute, len as one formula

    Just in case there are NOT always 3 letters at the start of the string, use this more generic solution:

    =ABS(LOOKUP(10^10,--RIGHT(A2,ROW($1:$10))))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: assistance to merge 2 formula trim, substitute, len as one formula

    Removed By AS
    Last edited by shukla.ankur281190; 09-06-2017 at 04:25 AM.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: assistance to merge 2 formula trim, substitute, len as one formula

    benishiryo,cbatrody,Glenn thank for the solutions , worked as requested .

    shukla.some issues with formula , does not remove usd, spaces, commas , but convert to pounds sterling currency


    USD 9,555.84 £9,555.84
    USD 11,269.44 £11,269.44

    Please Login or Register  to view this content.


  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: assistance to merge 2 formula trim, substitute, len as one formula

    Removed By AS
    Last edited by shukla.ankur281190; 09-06-2017 at 04:25 AM.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: assistance to merge 2 formula trim, substitute, len as one formula

    You're welcome and thanks for the rep

+ 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] assistance to merged SUBSTITUTE as single formula
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2017, 02:44 PM
  2. Can I use =trim(substitute formula with another?
    By jasmcduffie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2017, 04:20 PM
  3. [SOLVED] Complex ??Need to adjust formula giving unexpected results with trim & substitute
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2015, 03:48 AM
  4. Replies: 2
    Last Post: 07-17-2014, 03:45 AM
  5. Using TRIM, SUBSTITUTE & CLEAN
    By scarames in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-18-2014, 03:13 PM
  6. TRIM then LOWER then SUBSTITUTE formula needed
    By theblade24 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2013, 11:23 AM
  7. 2 formulas in one cell Substitute and Trim
    By jimstrongy in forum Excel General
    Replies: 3
    Last Post: 12-29-2011, 01:16 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