+ Reply to Thread
Results 1 to 4 of 4

combining 2 substitute formulas

  1. #1
    Registered User
    Join Date
    08-24-2010
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    7

    combining 2 substitute formulas

    I need to combine these two substitute formulas.

    =SUBSTITUTE(B16,"-","")
    =SUBSTITUTE(B16," ","")

    Basically B16 has an item number in it (example 14-22 R) Sometimes it might not have a "-" and other times it might not have a " ".

    I thought it should look like this
    =SUBSTITUTE(SUBSTITUTE(B16,"-","")B16," ","") but it gives an error and want to try to multiply them together

    what am i doing wrong??

    thank you,
    Eric

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: combining 2 substitute formulas

    Hi Eric, you were close.

    Try:

    =SUBSTITUTE(SUBSTITUTE(B16,"-","")," ","")

  3. #3
    Registered User
    Join Date
    08-24-2010
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: combining 2 substitute formulas

    I got it finally..
    =SUBSTITUTE(SUBSTITUTE(B16,"-","")," ","")

    It seems to work..

  4. #4
    Registered User
    Join Date
    08-24-2010
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: combining 2 substitute formulas

    haha.. Thanks Paul.. I didn't see your post until I made the post. I appreciate your help!

+ 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