+ Reply to Thread
Results 1 to 3 of 3

Extract Information from a given cell using VBA

  1. #1
    Registered User
    Join Date
    09-16-2017
    Location
    Agra
    MS-Off Ver
    2013
    Posts
    72

    Extract Information from a given cell using VBA

    Dear All,

    I have an online selling tie up with Amazon and I receive emails from Amazon when I receive any order. The text of body is like mentioned below. I am able to download such emails in excel sheet and below text is in a single cell.

    I am looking for something in VBA where I can extract the required information from this text body into coloumns like Product code , Quantity, Shipping cost, Order value , etc .

    Text to coloumn does not help here.
    PLease suggest a way out

    Dear [email protected],
    Your Amazon.in order has been confirmed.
    This e-mail includes all steps required for shipping and confirming your order.
    Order ID: XXX-XXXXXXX-XXXXXXX
    Please ship this product using Standard Delivery.
    Item: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Condition: New
    Listing ID: xxxxxxxxxxxxx

    SKU: xxxxxxxxxxxxxxxxxxxxxxxxxxx

    Quantity: 1

    Order date: dd/Mm/yyyy
    Buyer's price: INR xxxx

    Tax: INR xx

    Shipping: INR xx

    Amazon fees: -INR xx

    Your earnings: INR xx

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Extract Information from a given cell using VBA

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-16-2017
    Location
    Agra
    MS-Off Ver
    2013
    Posts
    72

    Re: Extract Information from a given cell using VBA

    Please find the workbook containing two key sheets - Before and After. Before is the original extract without personal info. After sheet has yellow colored coloumns which I want to add with key information extract from mail body text from col 2.
    Mapping.PNG
    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] Extract certain information from a cell.
    By Anarchus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2017, 02:00 AM
  2. Replies: 2
    Last Post: 11-27-2013, 12:48 AM
  3. Extract information from a string and populate in another cell
    By shoniaml in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-22-2013, 04:29 AM
  4. [SOLVED] How Do I Extract Information From A Single Cell?
    By Dom2066 in forum Excel General
    Replies: 9
    Last Post: 01-23-2013, 09:09 PM
  5. Extract part of the information in a single cell?
    By Cidona in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 11-20-2010, 04:18 AM
  6. Please help: Extract some information from a cell
    By Bobsus5 in forum Excel General
    Replies: 2
    Last Post: 03-06-2006, 11:15 PM
  7. [SOLVED] Retrieve or extract cell formatting information using VBA
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2005, 03:05 PM

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