+ Reply to Thread
Results 1 to 5 of 5

Extract lines of text from an e-mail chain and paste them in Excel

  1. #1
    Registered User
    Join Date
    07-27-2018
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2013
    Posts
    13

    Extract lines of text from an e-mail chain and paste them in Excel

    Hello all,

    I'm a new member of the forum and I could not find an answer to my problem yet. Here it is:

    There is a mailchain containing a questionnaire and answers like this:
    __________________________________________
    text
    text

    Hello,

    please find the filled in questionnaire below.

    What caused the issue?
    There was a power outage.
    How was the issue resolved?
    The supplier restored it.
    Is the issue permanently solved?
    yes
    What could be done to avoid the issue from reoccurring?
    Add additional protection
    Category
    Technical failure

    text
    text
    text
    _________________________________________

    I want to extract the answers to cells in Excel automatically.

    Is it possible to create a formula or VBA code to do this? Hope you can help.

    Greetings

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract lines of text from an e-mail chain and paste them in Excel

    Maybe something like this?
    Enter in B2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 Answer
    2 What caused the issue? There was a power outage.
    3 There was a power outage.
    4 How was the issue resolved? The supplier restored it.
    5 The supplier restored it.
    6 Is the issue permanently solved? yes
    7 yes
    8 What could be done to avoid the issue from reoccurring? Add additional protection
    9 Add additional protection
    10 Category
    11 Technical failure*
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    07-27-2018
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2013
    Posts
    13

    Re: Extract lines of text from an e-mail chain and paste them in Excel

    Hello AIKey,
    thank you for the reply. What about the Category line? It does not have "?" and was not extracted. What would happen if the answer is on 2 or more lines?

    Kind regards,

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract lines of text from an e-mail chain and paste them in Excel

    Quote Originally Posted by bnevena View Post
    Hello AIKey,
    thank you for the reply. What about the Category line? It does not have "?" and was not extracted. What would happen if the answer is on 2 or more lines?

    Kind regards,
    If I could read your mind I would do better. Unfortunately, I can only work with what I have.
    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 Answer
    2 What caused the issue? There was a power outage.
    3 There was a power outage.
    4 How was the issue resolved? The supplier restored it.
    5 The supplier restored it.
    6 Is the issue permanently solved? yes
    7 yes
    8 What could be done to avoid the issue from reoccurring? Add additional protection
    9 Add additional protection
    10 Category Technical failure
    11 Technical failure
    12

  5. #5
    Registered User
    Join Date
    07-27-2018
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2013
    Posts
    13
    Hello AIKey, thank you and sorry for not making my sample data as representative as possible!

+ 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. Need to Read Text file and Paste required lines in different excel sheet based on Text
    By frazzlesole in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-05-2018, 08:34 PM
  2. Extract multiple lines of text from Outlook email body into Excel
    By Ranger75 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-07-2018, 03:47 PM
  3. [SOLVED] How to extract mail ids from text string
    By shukla.ankur281190 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-02-2017, 01:51 AM
  4. How to extract outlook mail full body context and not just the text?
    By vbahelppls in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-18-2015, 02:29 AM
  5. [SOLVED] screenshot text file and embed in outlook mail through excel with mail info
    By bmbalamurali in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 01-11-2015, 08:21 PM
  6. [SOLVED] Formula to extract text before the first dot in an E-mail adress
    By Rambo4711 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-02-2013, 05:18 AM
  7. Loop thru lines of text in a cell and extract specific values: please help?
    By Mslady in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2006, 10:22 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