+ Reply to Thread
Results 1 to 7 of 7

I need to copy a portion of text from one cell based on a cross-reference to another cell

  1. #1
    Registered User
    Join Date
    08-21-2015
    Location
    Winnipeg, Canada
    MS-Off Ver
    2011 Office for Mac
    Posts
    3

    I need to copy a portion of text from one cell based on a cross-reference to another cell

    I have a sheet with 5000 skus. There can be a number of skus tied to the same model. Using another formula we made a column called "Also Comes In" to show the other skus in that same model. The problem we have is some of them include the initial sku for the row itself. We want all of the other skus in the model excluding the sku for that particular row.

    I have attached "sample sheet.xlsx". In this sheet you'll see column A is the particular sku in question, column B is "Also Comes In" and column C is how it should be. I need to create a new column (E) that can copy column B's contents but removing the Column A sku.

    Thank you very much for the help!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: I need to copy a portion of text from one cell based on a cross-reference to another c

    Hi,

    Further analysis might reduce this formula but for the moment

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: I need to copy a portion of text from one cell based on a cross-reference to another c

    See if it works on a Mac


    Kind regards
    Leo

    Edit: it is a UDF you call with ACI (short for also comes in) and range

    for exemple

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by LeoTaxi; 11-19-2015 at 08:26 PM. Reason: little more explication

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: I need to copy a portion of text from one cell based on a cross-reference to another c

    LeoTaxi Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Also, it looks like you have provided a VBA suggestion, but the OP may not know what that is or how to use it. Unless you have included those instruction in the file, you should alos include them in the post

    Thanks again for all your hard work here!
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: I need to copy a portion of text from one cell based on a cross-reference to another c

    Another version...
    =IF(RIGHT(C2,LEN(A2))=A2,SUBSTITUTE(C2,", "&A2,"",1),SUBSTITUTE(C2,A2&", ","",1))

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2505
    Posts
    13,760

    Re: I need to copy a portion of text from one cell based on a cross-reference to another c

    Similar to Ford's another way.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2505
    Posts
    13,760

    Re: I need to copy a portion of text from one cell based on a cross-reference to another c

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

+ 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. Get a cross reference item number based on heading text
    By Journeyman3000 in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2017, 07:39 AM
  2. Assign a value to a cell based on a portion of the content of another cell
    By smatchymo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-08-2015, 02:56 PM
  3. Data Cross Reference (validation) based on Text in a Cell
    By kwjoh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2015, 01:57 AM
  4. Formula to Replace Portion of Cell that Contains Matched Text to Cell
    By celestealexandra in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-22-2014, 03:56 PM
  5. [SOLVED] Macro to Copy the Portion of text in Cell
    By mvel_sky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2014, 01:45 PM
  6. Replies: 4
    Last Post: 09-16-2013, 03:47 PM
  7. cross reference to another cell
    By gribster in forum Excel General
    Replies: 1
    Last Post: 09-14-2010, 05:42 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