+ Reply to Thread
Results 1 to 4 of 4

Replace underscore with a space in formatting

  1. #1
    Registered User
    Join Date
    06-20-2015
    Location
    Mandurah
    MS-Off Ver
    2013
    Posts
    48

    Replace underscore with a space in formatting

    Is it possible to replace the Underscore in INVOICE B10 and D33 with a Space?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: Replace underscore with a space in formatting

    Try these...
    B10=SUBSTITUTE(VLOOKUP($K$5,Customers,4,FALSE),"_"," ")
    D33=LEFT(B10,LEN(B10)-5)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Replace underscore with a space in formatting

    Encase the formula in B10 with a SUBSTITUTE function.
    I.e.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    However, in doing so, the formula in D33 will have to be adjusted. Using the same logic, change D33 to...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-20-2015
    Location
    Mandurah
    MS-Off Ver
    2013
    Posts
    48

    Re: Replace underscore with a space in formatting

    Many thanks Gentlemen. My first introduction to SUBSTITUTE. I have much to learn, thank you for helping me.

+ 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] Separated first string which is separated by dash (-) or underscore (_) or space ( )
    By nur2544 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-03-2014, 10:32 AM
  2. [SOLVED] To find the Special charcter and space of the file names and replace with the underscore
    By laxmanann in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-14-2014, 09:31 AM
  3. Replace space with Underscore in cell within a table.
    By dj2229 in forum Access Tables & Databases
    Replies: 1
    Last Post: 08-15-2012, 04:37 PM
  4. Replies: 1
    Last Post: 05-05-2010, 09:10 PM
  5. Replace underscore with hyphen
    By RobynC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2007, 05:29 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