+ Reply to Thread
Results 1 to 5 of 5

Compare Non Exact value from 2column and copy value

  1. #1
    Registered User
    Join Date
    02-07-2019
    Location
    Malaysia
    MS-Off Ver
    0365
    Posts
    2

    Compare Non Exact value from 2column and copy value

    Hi All

    I need help. How should i compare value from 2 column and copy value from another column to new column.

    For example.
    excel forum.PNG


    Okay so now, i need to compare value between Column A and Column D. If the ID match, i will need to copy value from Column B to Coumn E.

    I tried to use =INDEX(B2:B5,MATCH(D2,A2:A5,1)) but i receive #N/A

    Kindly advice
    Last edited by Noren Tumaisuri; 02-07-2019 at 06:55 PM.

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Compare Non Exact value from 2column and copy value

    Put into E2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and drag it down.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    02-07-2019
    Location
    Malaysia
    MS-Off Ver
    0365
    Posts
    2

    Re: Compare Non Exact value from 2column and copy value

    Quote Originally Posted by KOKOSEK View Post
    Put into E2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and drag it down.
    Thank you so much ! you helped me to solve it!! BTW, what does this "*" mean?

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

    Re: Compare Non Exact value from 2column and copy value

    In Column G, I placed the following =MID(A2,4,4)*1 as a helper column
    Then in Column D, I placed the following =INDEX($B$2:$B$5,MATCH(D2,$G$2:$G$5,0))

    and copy down each.
    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

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Compare Non Exact value from 2column and copy value

    Quote Originally Posted by Noren Tumaisuri View Post
    BTW, what does this "*" mean?
    It calls 'wildcards' * means any string like *celFor* for ExcelForum, because you got ID placed in the middle of string in col. A, you have to use that, but remember that KUL1234-David at this moment is the same as ABCE1234-Pamela because *1234* is the same for both of them.

    You welcome.
    If you happy with solution, please use thread tools and mark thread as SOLVED.

    p.s and do not hesitate click * to add rep :-)

+ 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. Exact Date and Time compare within a range of exact date and times Lookup and Flag
    By john2001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2015, 06:01 PM
  2. Using EXACT to compare text.
    By ExcelM9 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 07-09-2015, 06:14 AM
  3. [SOLVED] split 1cell that is consist of date and time to 2column
    By sr_88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-28-2013, 05:46 AM
  4. Compare list for Exact Match
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-04-2013, 01:59 PM
  5. Compare Two Columns (Exact and Wildcard)
    By Xavier in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2006, 01:35 PM
  6. Best compare technique, exact, vlookup? What do I need?
    By firestart in forum Excel General
    Replies: 10
    Last Post: 05-10-2005, 10:04 AM
  7. Best compare technique, exact, vlookup? What do I need?
    By firestart in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2005, 08:59 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