+ Reply to Thread
Results 1 to 22 of 22

I Need to Copy Paste One Coloum To Another Coloum With Key Words

  1. #1
    Registered User
    Join Date
    12-27-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    27

    Cool I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Hello
    I need help Please, It make me confuse. Need single Formula if can. For My Situation.

    Rule:
    1. Only Coloum With "Good", "Bad" and "Other" Word Will Pick
    2, If Theres Two or Three words in same Coloum only pick the First
    3, If in One Coloum have same words will pick the First
    4, If Theres no Word will fill with Blank

    Let's Picture Explain this.
    Excel Formula.jpg

    I don't know how to put Attachment, it's not working. So I put my sample on Google Drive.
    www*drive*google*com/open?id=1TZMNIEFiA9BWbG9yHIm1iMXP1K6YOFwz

    Change * with . (dot)
    Last edited by Blek; 01-24-2019 at 12:21 AM. Reason: Solved Problem

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    I would go with three formulas for good, bad and other:
    B2: =IF(ISNUMBER(SEARCH(" good ", " "&A2&" "))=TRUE,A2,"")
    C2: =IF(B2<>"","",IF(ISNUMBER(SEARCH(" bad ", " "&A2&" "))=TRUE,A2,""))
    D2 =IF(OR(B2<>"",C2<>""),"",IF(ISNUMBER(SEARCH(" other ", " "&A2&" "))=TRUE,A2,""))
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    12-27-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    27

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Quote Originally Posted by PaulM100 View Post
    I would go with three formulas for good, bad and other:
    B2: =IF(ISNUMBER(SEARCH(" good ", " "&A2&" "))=TRUE,A2,"")
    C2: =IF(B2<>"","",IF(ISNUMBER(SEARCH(" bad ", " "&A2&" "))=TRUE,A2,""))
    D2 =IF(OR(B2<>"",C2<>""),"",IF(ISNUMBER(SEARCH(" other ", " "&A2&" "))=TRUE,A2,""))
    Thank You for Helping ;D
    Not Working for "Other" Row. And What if i have Five or Ten Words? Not Only Good, Bad & Other.
    Screenshot_2.jpg

  4. #4
    Registered User
    Join Date
    12-27-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    27

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Quote Originally Posted by PaulM100 View Post
    I would go with three formulas for good, bad and other:
    B2: =IF(ISNUMBER(SEARCH(" good ", " "&A2&" "))=TRUE,A2,"")
    C2: =IF(B2<>"","",IF(ISNUMBER(SEARCH(" bad ", " "&A2&" "))=TRUE,A2,""))
    D2 =IF(OR(B2<>"",C2<>""),"",IF(ISNUMBER(SEARCH(" other ", " "&A2&" "))=TRUE,A2,""))
    Ahh, i think this formula not working well. I tried another shot, First at B Row. Different result if u do C Row first.
    Try it only B Row first and then C row And then D row.
    And i try C row first and then B and then D.
    They have diferent result. xD.

    Screenshot_4.jpg
    Attached Images Attached Images
    Last edited by Blek; 01-18-2019 at 05:53 AM.

  5. #5
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    ok, looks like it is also dependent on the word position. Add a sample file to figure out a solution.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    You CAN attach a file here, but you need to follow these steps:

    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.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    12-27-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    27

    Talking Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Quote Originally Posted by PaulM100 View Post
    ok, looks like it is also dependent on the word position. Add a sample file to figure out a solution.
    I did, put at Google Drive.
    Ok i follow the instructor for Attach File.
    And here we go :D
    Attached Files Attached Files

  8. #8
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Hi Blek, I managed to find a solution with the help received on the following thread: https://www.excelforum.com/excel-for...ord-occur.html
    Using the formulas below, will get you the desired results:
    Please Login or Register  to view this content.

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Please try at B2 drag across and down

    =IFERROR(IF(MATCH(AGGREGATE(15,6,FIND($B$1:$D$1,$A2),1),INDEX(FIND($B$1:$D$1,$A2),),)=COLUMNS($B2:B2),$A2,""),"")
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-27-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    27

    Thumbs up Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Quote Originally Posted by PaulM100 View Post
    Hi Blek, I managed to find a solution with the help received on the following thread:
    Using the formulas below, will get you the desired results:
    Please Login or Register  to view this content.
    This Formula need more effort but working well and perfect on Microsoft Excel & WPS Office. Thank You So Much!

    Quote Originally Posted by Bo_Ry View Post
    Please try at B2 drag across and down

    =IFERROR(IF(MATCH(AGGREGATE(15,6,FIND($B$1:$D$1,$A2),1),INDEX(FIND($B$1:$D$1,$A2),),)=COLUMNS($B2:B2),$A2,""),"")
    This Formula So Simple and Working Perfect On Mircrosoft Excel. WPS Office Not Working (Maybe if you have another Solution for this?) ;D. Thank You So Much!

    Many Many Thanks for you both. Now i can sleep well :D

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    This one needs to press Ctrl+Shift+Enter in Excel, I don't know if it works with WPS Office.
    B2
    =IFERROR(IF(MATCH(MIN(IFERROR(FIND($B$1:$D$1,$A2),"")),FIND($B$1:$D$1,$A2),)=COLUMNS($B2:B2),$A2,""),"")

  12. #12
    Registered User
    Join Date
    12-27-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    27

    Wink Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Quote Originally Posted by Bo_Ry View Post
    This one needs to press Ctrl+Shift+Enter in Excel, I don't know if it works with WPS Office.
    B2
    =IFERROR(IF(MATCH(MIN(IFERROR(FIND($B$1:$D$1,$A2),"")),FIND($B$1:$D$1,$A2),)=COLUMNS($B2:B2),$A2,""),"")
    WOW! It's Working Well and Perfect with both Microsoft Office & WPS Office. THANNKKK YOUUU SOO MUUCCCHHH!!!!

    Screenshot_8.jpg

    Screenshot_7.jpg

    Now i can deep Sleep well
    Thank you again for helping

    [Solved]

  13. #13
    Registered User
    Join Date
    12-27-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    27

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Quote Originally Posted by Bo_Ry View Post
    This one needs to press Ctrl+Shift+Enter in Excel, I don't know if it works with WPS Office.
    B2
    =IFERROR(IF(MATCH(MIN(IFERROR(FIND($B$1:$D$1,$A2),"")),FIND($B$1:$D$1,$A2),)=COLUMNS($B2:B2),$A2,""),"")
    Hi Again Bo_Ry
    Another little problem here. How to make this formula not to Case-Insensitive?

    Screenshot_9.jpg

    Is it possible to make it?

  14. #14
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Change find to Search

    =IFERROR(IF(MATCH(MIN(IFERROR(FIND($B$1:$D$1,$A2),"")),Search($B$1:$D$1,$A2),)=COLUMNS($B2:B2),$A2,""),"")

  15. #15
    Registered User
    Join Date
    12-27-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    27

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Quote Originally Posted by Bo_Ry View Post
    Change find to Search

    =IFERROR(IF(MATCH(MIN(IFERROR(FIND($B$1:$D$1,$A2),"")),Search($B$1:$D$1,$A2),)=COLUMNS($B2:B2),$A2,""),"")
    Hmm not working, did i something wrong?

    Screenshot_10.jpg
    Attached Files Attached Files
    Last edited by Blek; 01-23-2019 at 03:06 AM. Reason: Add Sample

  16. #16
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Sorry there are 2 search and need to press Ctrl+Shift+Enter

    =IFERROR(IF(MATCH(MIN(IFERROR(Search($B$1:$D$1,$A2),"")),Search($B$1:$D$1,$A2),)=COLUMNS($B2:B2),$A2,""),"")

  17. #17
    Registered User
    Join Date
    12-27-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    27

    Thumbs up Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Quote Originally Posted by Bo_Ry View Post
    Sorry there are 2 search and need to press Ctrl+Shift+Enter

    =IFERROR(IF(MATCH(MIN(IFERROR(Search($B$1:$D$1,$A2),"")),Search($B$1:$D$1,$A2),)=COLUMNS($B2:B2),$A2,""),"")
    WOW You are the best!!!! Very very Bestt! Many Thanks!

    A simple question not related to this Thread. If you don't mind.
    How to make this Formula not Case-Insensitive?

    A2= Super Mouse is DEAD
    I wan't Change Mouse with Cat and DEAD with LIFE

    I put Formula on B2 --> =SUBSTITUTE(SUBSTITUTE(A2,"DEAD","LIFE"),"Mouse","Cat")

    But when A2= Man MOUSE is dead

    My Formula not working. How to solve this?

    Screenshot_11.jpg

    Maybe if you can give another simple formula for this, it will be great. Thank you.
    Attached Files Attached Files
    Last edited by Blek; 01-23-2019 at 03:38 AM.

  18. #18
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Does this work?

    =Proper(SUBSTITUTE(SUBSTITUTE(upper(A2),"DEAD","LIFE"),"Mouse","Cat"))

  19. #19
    Registered User
    Join Date
    12-27-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    27

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Quote Originally Posted by Bo_Ry View Post
    Does this work?

    =Proper(SUBSTITUTE(SUBSTITUTE(upper(A2),"DEAD","LIFE"),"Mouse","Cat"))
    Dead Working but, Mouse not working.
    Screenshot_12.jpg

  20. #20
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Upper MOUSE

    =Proper(SUBSTITUTE(SUBSTITUTE(upper(A2),"DEAD","LIFE"),"MOUSE","Cat"))

  21. #21
    Registered User
    Join Date
    12-27-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    27

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Quote Originally Posted by Bo_Ry View Post
    Upper MOUSE

    =Proper(SUBSTITUTE(SUBSTITUTE(upper(A2),"DEAD","LIFE"),"MOUSE","Cat"))
    PERFECTO!!!! IT'S WORKING LIKE A CHARM!!! I am so excited hehe thank youuu sooo muccchhh again and again hehe
    You are my guru! :D

    Thanks we have this forum and people like you who have a time and helping newb like me ;D

    All Done! Thank you.

    Screenshot_13.jpg

  22. #22
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: I Need to Copy Paste One Coloum To Another Coloum With Key Words

    Happy to help.

+ 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] I Need to pick some word or text in one coloum to another coloum
    By Blek in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-27-2018, 09:27 AM
  2. [SOLVED] conditional formatting - how to copy rule from one coloum to next
    By Shradharani in forum Excel General
    Replies: 12
    Last Post: 08-08-2017, 10:22 AM
  3. Match Cells with coloum header and then copy the same row
    By SKVTS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2015, 12:43 PM
  4. Replies: 2
    Last Post: 08-12-2014, 11:34 AM
  5. Copy rows if specific text in coloum A
    By superking in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2014, 03:52 AM
  6. Copy rows if specific text in coloum A
    By superking in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2014, 03:10 AM
  7. [SOLVED] i want display the last coloum value in first coloum
    By sajid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2006, 11:15 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