+ Reply to Thread
Results 1 to 9 of 9

Help with comparing 2 columns and pasting the results

  1. #1
    Registered User
    Join Date
    07-11-2017
    Location
    newcastle, england
    MS-Off Ver
    2013
    Posts
    10

    Help with comparing 2 columns and pasting the results

    Hi guys, I hope you can help me.

    I need a formula to look in row A, which is a list of numbers and letters and then look in row S, which is a a description of what the numbers and letters in row A mean, but also contains the code at the beginning of the description, and paste the corresponding description next to the corresponding code. (hope that makes sense.)

    So basically IF any of the contents in row D match whats in row A, then paste it in row C

    See image of how it currently looks and look from row 10 in column C and thats how I want it to show...

    Capture.PNG

    Any help that can match it I would really appreciate it.

    Thanks
    Last edited by craig1ell; 07-11-2017 at 12:47 PM.

  2. #2
    Registered User
    Join Date
    07-11-2017
    Location
    newcastle, england
    MS-Off Ver
    2013
    Posts
    10

    Re: Help with comparing 2 columns and pasting the results

    Thanks, changed it now

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,208

    Re: Help with comparing 2 columns and pasting the results

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    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 solution is 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.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    07-11-2017
    Location
    newcastle, england
    MS-Off Ver
    2013
    Posts
    10

    Re: Help with comparing 2 columns and pasting the results

    yeah, no worries, see attached.

    (Think that worked)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-11-2017
    Location
    newcastle, england
    MS-Off Ver
    2013
    Posts
    10

    Re: Help with comparing 2 columns and pasting the results

    ... So basically if the content in column A exists in column D then paste the whole content of column D in column C

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

    Re: Help with comparing 2 columns and pasting the results

    So why are C2:C9 empty? Your description of what you want and the sample file do not seem to match.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,208

    Re: Help with comparing 2 columns and pasting the results

    Anyway, try this in C2 copied down:

    =IFNA(VLOOKUP(A2&"*",$D$2:$D$1664,1,0),"")

  8. #8
    Registered User
    Join Date
    07-11-2017
    Location
    newcastle, england
    MS-Off Ver
    2013
    Posts
    10

    Re: Help with comparing 2 columns and pasting the results

    OMG thank you that worked perfectly!! Thank you so much. I have spent hours trying to get this formula to work and you done in in seconds. thanks again!

    ok, now in column B it also contains part of the code. can I remove the code at the start of the text - the same code that is showing in column A?

    So i'm ended up with BKR30 rather than 2085BKR30?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,208

    Re: Help with comparing 2 columns and pasting the results

    In E2 copied down:

    =SUBSTITUTE(B2,A2,"")

+ 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. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  2. Replies: 0
    Last Post: 02-16-2016, 11:24 AM
  3. Replies: 10
    Last Post: 12-16-2015, 03:16 PM
  4. Replies: 2
    Last Post: 03-21-2014, 11:43 AM
  5. Macro: Applying formula to multiple cells in excel (formula editing)
    By city in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 06:41 AM
  6. Replies: 0
    Last Post: 03-19-2012, 07:32 PM
  7. Replies: 1
    Last Post: 03-04-2012, 12:03 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