+ Reply to Thread
Results 1 to 9 of 9

How do i add parts of strings if the rest of the sting matches a certain given string?

  1. #1
    Registered User
    Join Date
    08-31-2023
    Location
    Leipzig, Germany
    MS-Off Ver
    360
    Posts
    3

    How do i add parts of strings if the rest of the sting matches a certain given string?

    Example:

    A B C D Result if only numbers between "Hello" and "GoodMorning" are added:
    Hello54GoodMorning Hello7GoodMorning GoodMorning9GoodMorning Hello8Hello 61 (How do i get this automated?)
    Last edited by Terminator555; 08-31-2023 at 04:40 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,205

    Re: How do i add parts of strings if the rest of the sting matches a certain given string?

    Please post a workbook with a more realistic sample of your data WITH expected results.

    See yellow banner at top of page on how to attach a workbook,
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: How do i add parts of strings if the rest of the sting matches a certain given string?

    Post a sample workbook
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  4. #4
    Registered User
    Join Date
    08-31-2023
    Location
    Leipzig, Germany
    MS-Off Ver
    360
    Posts
    3

    Re: How do i add parts of strings if the rest of the sting matches a certain given string?

    After minutes of trying i wasnt able to attach a workbook. However I think the given example is understandable. It does not matter if my example is realistic since i just want to know how i solve such a problem.

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: How do i add parts of strings if the rest of the sting matches a certain given string?

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

    Replace text with cellreferences as needed.

  6. #6
    Registered User
    Join Date
    08-31-2023
    Location
    Leipzig, Germany
    MS-Off Ver
    360
    Posts
    3

    Re: How do i add parts of strings if the rest of the sting matches a certain given string?

    Well i want to add all the numbers between hello and good morning

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,205

    Re: How do i add parts of strings if the rest of the sting matches a certain given string?

    Try

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

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: How do i add parts of strings if the rest of the sting matches a certain given string?

    Please Login or Register  to view this content.
    A1= Hello Goodmorning
    B1=61
    Result= Hello 61 Goodmorning
    Try this
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  9. #9
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: How do i add parts of strings if the rest of the sting matches a certain given string?

    Here is some instructions of how to upload a workbook.
    Attached Files Attached Files

+ 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] Get strings between two strings in text file and remove the rest
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 10-15-2018, 10:18 AM
  2. [SOLVED] Locking specific parts of a worksheet while the rest remains unprotected
    By gko_87 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2017, 10:27 AM
  3. [SOLVED] Locking specific parts of a worksheet while the rest remains unprotected
    By gko_87 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2017, 08:30 PM
  4. Replies: 3
    Last Post: 07-09-2014, 02:19 PM
  5. [SOLVED] search for parts of strings in another list of strings
    By marioroter in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-17-2013, 12:28 PM
  6. Value manipulation, String to Int, Int to Sting
    By bluechip in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2007, 02:10 AM

Tags for this Thread

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