+ Reply to Thread
Results 1 to 10 of 10

Move text from cells based on unique reference

  1. #1
    Registered User
    Join Date
    10-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Move text from cells based on unique reference

    Morning All,
    Ok, so not 100% sure how to describe this but I will do my best.
    I have a spreadsheet with unique values (some of which are duplicated) followed a column which lists text as below. What I want to do, if possible is say where the reference is the same, move variable1 into column variable2 etc. so rather than having my information in columns, it's displayed in rows. In the example, I would like reference 17lol 'chuckle' to remain under variable1 but move 'grin' to variable2 and 'smile' to column variable3.

    I hope this makes sense! Hope someone out there can assist.
    Thank you!
    Prit
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by pritstick; 10-09-2019 at 03:09 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Move text from cells based on unique reference

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Move text from cells based on unique reference

    Better try to upload your excel file with example of your desired results, click on "Go Advanced" button then scroll down to find Manage Attachments" text button to attach the file


    regards

  4. #4
    Registered User
    Join Date
    10-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Move text from cells based on unique reference

    Thank you...I think I've done this now

  5. #5
    Registered User
    Join Date
    10-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Move text from cells based on unique reference

    Thank you for the advice.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Move text from cells based on unique reference

    This proposal employs a helper column (F) which may be moved and/or hidden for aesthetic purposes.
    The helper column is populated using: =IF(B3=B4,C3&", "&F4,C3)
    The Output table is populated using: =IF($I3<>$I2,TRIM(MID(SUBSTITUTE($F3,",",REPT(" ",LEN($F3))),(COLUMNS($A1:A1)-1)*LEN($F3)+1,LEN($F3))),"")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    10-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Move text from cells based on unique reference

    Thank you so much for the taking the time to respond and for the useful information provided. It's greatly appreciated

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,015

    Re: Move text from cells based on unique reference

    Pritstick. Please amend your profile to show the Excel version you are using. Clearly it's not 2003 any more, as you have attached an .xlsx. More recent versions may offer more efficient soltutions.
    Last edited by Glenn Kennedy; 10-15-2019 at 07:26 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,015

    Re: Move text from cells based on unique reference

    Also. Do you really want those blank rows in your desired output??

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Move text from cells based on unique reference

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Moving data only based on text content in reference cells
    By ordietel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2017, 07:40 AM
  2. Move or delete cell information based on reference table
    By JW90 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2016, 02:06 AM
  3. Replies: 16
    Last Post: 04-30-2016, 07:34 AM
  4. [SOLVED] Color cells in a row based on unique text that matches text on a different worksheet
    By rn_ in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-11-2016, 10:46 AM
  5. [SOLVED] Countif code that counts cells based on text string specified in a reference cell
    By john quinn in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-08-2015, 06:30 PM
  6. Move data in rows to columns based on unique ID in column A
    By ssdsibes in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-04-2013, 07:04 AM
  7. have reference cells move in rows while I move in columns
    By gryffin13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2011, 09:33 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