+ Reply to Thread
Results 1 to 19 of 19

Adding to the End of a Character

  1. #1
    Registered User
    Join Date
    03-04-2010
    Location
    South Florida
    MS-Off Ver
    Excel 2007
    Posts
    72

    Adding to the End of a Character

    Hi,

    I'm trying to add some text to the end of a character. I'm using find/replace, but can't figure
    out the code to put into the find box.

    I have a column of text and am trying to add what's listed below at the end of each character
    in each cell.

    _Add Text

    Thanks!

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Adding to the End of a Character

    Hi Orangeworker

    An example file would be helpful.

    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    03-04-2010
    Location
    South Florida
    MS-Off Ver
    Excel 2007
    Posts
    72

    Re: Adding to the End of a Character

    Thanks for responding; I've attached a sample.

    H
    Attached Files Attached Files

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Adding to the End of a Character

    Hi Orangeworker

    I suspect your issue is not as simple as your example. However, if it is, place this code in column B of your example and copy down
    Please Login or Register  to view this content.
    and you will end up with this in column B of your example.

    blue_SampleText
    magenta and yellow_SampleText

    If your issue is more complicated (you said you were doing a find/replace), then post an example of what you're trying to find and what you'd like it replaced with. Include your existing code as this may give me a clue as to what you're lookig for (or not).

    Be glad to help with a bit more direction.

    John

  5. #5
    Registered User
    Join Date
    03-04-2010
    Location
    South Florida
    MS-Off Ver
    Excel 2007
    Posts
    72

    Re: Adding to the End of a Character

    Thanks for the help John, that worked perfect! It was as simple as what I had listed
    in the sample.

    How about adding to the beginning, or changing any of the characters in between with
    something else? That would help me out greatly.

    H

  6. #6
    Registered User
    Join Date
    02-04-2010
    Location
    North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Adding to the End of a Character

    just swap "_SampleText" and A1 and now it is in the beginning. Not sure what you are looking for with respect to changing characters in between.

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Adding to the End of a Character

    Hi H
    To add at the beginning, expand the Concatenate like this
    Please Login or Register  to view this content.
    To do this
    changing any of the characters in between with something else
    I'd need to see examples of what you have in mind.
    John

  8. #8
    Registered User
    Join Date
    03-04-2010
    Location
    South Florida
    MS-Off Ver
    Excel 2007
    Posts
    72

    Re: Adding to the End of a Character

    Thanks for the tip, that worked well also. Just trying to figure out some "general" types of code that I could experiment with. Is their anything on this site or somewhere else that lists some different examples?

    H

  9. #9
    Registered User
    Join Date
    03-04-2010
    Location
    South Florida
    MS-Off Ver
    Excel 2007
    Posts
    72

    Re: Adding to the End of a Character

    John,

    If you have time, I've attached another example called "Sample 2"

    Thanks for all your help!

    H
    Attached Files Attached Files

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Adding to the End of a Character

    Hi H

    Google is your best friend. Try this on Google "Adding to the End of a Character Excel" or this "Adding to the End of a Character Excel VBA" and you'll get more hits than you can deal with. However, if you're persistent, you'll eventually find an approach you can use. If not, come back to this forum and ask the question. That's my approach; it's worked wonderfully well for me.
    John

  11. #11
    Registered User
    Join Date
    02-04-2010
    Location
    North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Adding to the End of a Character

    H
    For your example use
    Please Login or Register  to view this content.
    as for the other functions
    try http://office.microsoft.com/en-us/ex...791861033.aspx

  12. #12
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Adding to the End of a Character

    Hi H

    In your last example file, you listed one sample. What are the constants in your data? If there are constants, then formulas or code can be written to deal with them. If there are no constants, then all anomalies will need to be dealt with.

    I need more information.

    John

  13. #13
    Registered User
    Join Date
    03-04-2010
    Location
    South Florida
    MS-Off Ver
    Excel 2007
    Posts
    72

    Re: Adding to the End of a Character

    Thanks again John!

  14. #14
    Registered User
    Join Date
    03-04-2010
    Location
    South Florida
    MS-Off Ver
    Excel 2007
    Posts
    72

    Re: Adding to the End of a Character

    HTML Code: 
    Last question, what if the text in B2 wasn't there and I wanted to list the text in the code?
    Then I can experiment with different areas in between the beginning and end. Thanks for your time and patience.

  15. #15
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Adding to the End of a Character

    Hi H
    In my experience there's never a
    Last question
    If that were so, then one has stopped learning and I suspect that you and I have only begun to learn.

    Yes, this can be done (I think)
    what if the text in B2 wasn't there and I wanted to list the text in the code?
    I'll work up some examples for you (probably not tonight) and post them. You can then play with the examples and adapt them to your needs.

    With the Easter Holiday, I may or may not get back to you tomorrow.

    John

  16. #16
    Registered User
    Join Date
    03-04-2010
    Location
    South Florida
    MS-Off Ver
    Excel 2007
    Posts
    72

    Re: Adding to the End of a Character

    Ha, I totally agree with you regarding the questions, they never stop. Just didn't want to bug you too much.

    Take your time and enjoy the weekend; I'll check back on Monday. Happy Easter!

  17. #17
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Adding to the End of a Character

    Happy Easter

    John

  18. #18
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Adding to the End of a Character

    Hi H
    I think this code addresses your question
    what if the text in B2 wasn't there and I wanted to list the text in the code?
    Please Login or Register  to view this content.
    Play with it and see the results.
    John

  19. #19
    Registered User
    Join Date
    03-04-2010
    Location
    South Florida
    MS-Off Ver
    Excel 2007
    Posts
    72

    Re: Adding to the End of a Character

    Thanks John, I will experiment with that.

    H

+ 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