+ Reply to Thread
Results 1 to 6 of 6

Extract Text Found in a Cell That Appears After Text That is Found in a Separate Cell

  1. #1
    Registered User
    Join Date
    07-28-2020
    Location
    Vancouver, BC
    MS-Off Ver
    Office 365
    Posts
    4

    Extract Text Found in a Cell That Appears After Text That is Found in a Separate Cell

    Hello,

    More confusing coming up with a title than anything.

    So I am looking to extract where each item is shipping from, which is found in Column B, using the product details found in column D. Unfortunately, if the order has multiple items, they are all listed in one cell. I can pull the first item, but never any beyond that.

    Tried a variety of REPLACE, SUBSTITUTE, LEFT, RIGHT and MID formulas but can't quite figure it out.

    Any suggestions would be greatly appreciated.

    Thanks!
    Attached Files Attached Files

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

    Re: Extract Text Found in a Cell That Appears After Text That is Found in a Separate Cell

    Is this what you are looking to do? Your explanation was a bit vague on what your expectation was.

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    1
    Shipped From Notes Order
    2
    DS FLAT SHOELACES 54" / RED - 54 shipping from DS; Qty 1.0
    215675
    3
    DS SCARF / GREY PLAID - ONE SIZE shipping from DS; Qty 1.0
    215675
    4
    DS Premium Poster Calendar Issue 42 - The No Doubt Issue - One Size shipping from Toronto; Qty 1.0
    215675
    5
    DS CALCULATOR WATCH / GOLD - ONE SIZE shipping from DS; Qty 1.0
    215675
    6
    DS FLAT SHOELACES 54" / RED - 54 shipping from DS; Qty 1.0
    215675
    7
    DS SCARF / GREY PLAID - ONE SIZE shipping from DS; Qty 1.0
    215675
    8
    DS Premium Poster Calendar Issue 42 - The No Doubt Issue - One Size shipping from Toronto; Qty 1.0
    215675
    9
    DS CALCULATOR WATCH / GOLD - ONE SIZE shipping from DS; Qty 1.0
    215675
    10
    DS FLAT SHOELACES 54" / RED - 54 shipping from DS; Qty 1.0
    215675
    11
    DS SCARF / GREY PLAID - ONE SIZE shipping from DS; Qty 1.0
    215675
    12
    DS Premium Poster Calendar Issue 42 - The No Doubt Issue - One Size shipping from Toronto; Qty 1.0
    215675
    13
    DS CALCULATOR WATCH / GOLD - ONE SIZE shipping from DS; Qty 1.0
    215675
    14
    DS FLAT SHOELACES 54" / RED - 54 shipping from DS; Qty 1.0
    215675
    15
    DS SCARF / GREY PLAID - ONE SIZE shipping from DS; Qty 1.0
    215675
    16
    DS Premium Poster Calendar Issue 42 - The No Doubt Issue - One Size shipping from Toronto; Qty 1.0
    215675
    17
    DS CALCULATOR WATCH / GOLD - ONE SIZE shipping from DS; Qty 1.0
    215675
    Sheet: Sheet1

    Achieved with Power Query/Get and Transform

    See attached.
    Attached Files Attached Files
    Last edited by alansidman; 07-28-2020 at 09:08 PM.
    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
    07-28-2020
    Location
    Vancouver, BC
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Extract Text Found in a Cell That Appears After Text That is Found in a Separate Cell

    Thanks for the response Alan.

    What I am trying to do is lookup the item found in column D within the text string in column B, and return where it says that item was shipped from.

    For example in row 4, I would like to lookup "Premium Poster Calendar....", found in cell D4, within cell B4 and return the "shipping from" value. For this example, it would return Toronto.

    Thank you,

    Dan

  4. #4
    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,882

    Re: Extract Text Found in a Cell That Appears After Text That is Found in a Separate Cell

    Here is new Mcode

    Please Login or Register  to view this content.
    Data now looks like the following

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    1
    Shipped From Notes Notes - Copy Order
    2
    DS DS FLAT SHOELACES 54" / RED - 54 shipping from DS; Qty 1.0
    215675
    3
    DS DS SCARF / GREY PLAID - ONE SIZE shipping from DS; Qty 1.0
    215675
    4
    DS Toronto Premium Poster Calendar Issue 42 - The No Doubt Issue - One Size shipping from Toronto; Qty 1.0
    215675
    5
    DS DS CALCULATOR WATCH / GOLD - ONE SIZE shipping from DS; Qty 1.0
    215675
    6
    DS DS FLAT SHOELACES 54" / RED - 54 shipping from DS; Qty 1.0
    215675
    7
    DS DS SCARF / GREY PLAID - ONE SIZE shipping from DS; Qty 1.0
    215675
    8
    DS Toronto Premium Poster Calendar Issue 42 - The No Doubt Issue - One Size shipping from Toronto; Qty 1.0
    215675
    9
    DS DS CALCULATOR WATCH / GOLD - ONE SIZE shipping from DS; Qty 1.0
    215675
    10
    DS DS FLAT SHOELACES 54" / RED - 54 shipping from DS; Qty 1.0
    215675
    11
    DS DS SCARF / GREY PLAID - ONE SIZE shipping from DS; Qty 1.0
    215675
    12
    DS Toronto Premium Poster Calendar Issue 42 - The No Doubt Issue - One Size shipping from Toronto; Qty 1.0
    215675
    13
    DS DS CALCULATOR WATCH / GOLD - ONE SIZE shipping from DS; Qty 1.0
    215675
    14
    DS DS FLAT SHOELACES 54" / RED - 54 shipping from DS; Qty 1.0
    215675
    15
    DS DS SCARF / GREY PLAID - ONE SIZE shipping from DS; Qty 1.0
    215675
    16
    DS Toronto Premium Poster Calendar Issue 42 - The No Doubt Issue - One Size shipping from Toronto; Qty 1.0
    215675
    17
    DS DS CALCULATOR WATCH / GOLD - ONE SIZE shipping from DS; Qty 1.0
    215675
    Sheet: Sheet1

  5. #5
    Registered User
    Join Date
    07-28-2020
    Location
    Vancouver, BC
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Extract Text Found in a Cell That Appears After Text That is Found in a Separate Cell

    How would the query look if I only wanted the solutions to appear in column A without creating the additional rows? Can that be done?

    This is exactly what I'm looking for though in terms of result.

  6. #6
    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,882

    Re: Extract Text Found in a Cell That Appears After Text That is Found in a Separate Cell

    I don't understand what you want. Please mock up a solution based upon the information you have already provided.

+ 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] From Cell A2, remove text that is found in Cell B2, and display any remaining text in C2
    By lespaulfan#1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-13-2019, 12:42 PM
  2. search text string in cell and if found place a text in other cel
    By wildy1600 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-30-2015, 12:41 PM
  3. Search cell for multiple text , return comma separated text in separate cell if found
    By dangerdoug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 01:52 PM
  4. [SOLVED] If Or statement to check cell text and delete entire row if text is found
    By VBA FTW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-08-2013, 11:46 AM
  5. Extract multiple data from a text found in a cell
    By nagsharan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2013, 03:36 PM
  6. Replies: 1
    Last Post: 11-05-2012, 09:23 PM
  7. Replies: 3
    Last Post: 10-25-2012, 12:49 AM

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