+ Reply to Thread
Results 1 to 8 of 8

I want replace all dash to cell in a paragraph

  1. #1
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    I want replace all dash to cell in a paragraph

    See my attached file

    a paragraph has many dash. I want a cell in every dash to make a function. I tried it myself. but it was look bad. paragraph not distributed evently
    Attached Files Attached Files
    Last edited by vengatvj; 06-27-2016 at 10:59 PM.

  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,929

    Re: I want replace all dash to cell in a paragraph

    Because of the language you are using, it is very hard for me to see what you are doing, and where you a splitting this - can you give more details please?
    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
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: I want replace all dash to cell in a paragraph

    Perhaps your "Dash" is really Char(95) ??

    Try to Substitute(Each Cell, Char(95),"") ??
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want replace all dash to cell in a paragraph

    This is summon to unpaid customers,
    Presently we are print this document and fill the dash using our handwriting. I want avoid handwriting. if a cell available instead of dash, then i can make (=) function in that cell. I have a data in another sheet. I need to do this for many customers

  5. #5
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want replace all dash to cell in a paragraph

    Sorry am not expert in excel. could you tell me clearly what is char(95)?

  6. #6
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: I want replace all dash to cell in a paragraph

    try this
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want replace all dash to cell in a paragraph

    I WANT MAKE A FUNCTION IN A PARAGRAPH. SEE THIS SAMPLE FILE.
    A PARAGRAPH GIVEN IN A1 CELL, SOME DETAILS GIVEN IN B2, B3, B4 CELLS. I WANT FILL THAT DATA IN THE PARAGRAPH. is there any formula to fill in dash?
    This is sample file.
    I have a large paragraph with many dash. i need to fill every dash.
    Attached Files Attached Files

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: I want replace all dash to cell in a paragraph

    Try this in B1 and fill across until you get blanks.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    • I was unable to do this all in a one-cell formula. It builds left to right.
    • The result you want is in the last cell that has output ... in this case D1.
    • This formula only works because the number of "_" characters in the dashes in this example are never more than 15. It would not work if there were more.
    • If this method is acceptable to you I recommend standardizing the length of each dash to the same number of "_" characters.
    • Otherwise this formula will have unpredictable results.
    Dave

+ 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. Replace Brackets ( , dash - , and & , percentage %
    By goodboy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-25-2016, 03:30 AM
  2. [SOLVED] How to replace dash signs at the end?
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-22-2015, 12:15 PM
  3. Find and replace a new sentence or paragraph in word doc
    By krazyhype19 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-03-2014, 06:06 AM
  4. [SOLVED] How to replace dash in a column of numbers with a space and add a prefix
    By HH61 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-04-2014, 02:33 PM
  5. Replace any non-alphanumeric char with dash
    By theblade24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2013, 02:40 PM
  6. VBA code-file name replace dash with space
    By vargs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2010, 03:22 PM
  7. [SOLVED] Replace Error with a Dash
    By Karen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2006, 01:40 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