+ Reply to Thread
Results 1 to 3 of 3

Match data in one column with data in another column

Hybrid View

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    Miami, Florida
    MS-Off Ver
    Excel 2007
    Posts
    12

    Match data in one column with data in another column

    I have product references in column "A" described with 3 letters, a dash and 2 or 3 numbers after (ie.: ROB-52 or ROB-792, etc.). In column "C" I have, in a different order, the same references but do not have the dash, therefore I have a problem matching them (ie.: ROB 52 or ROB 792). Then in column "D" I have quantities assigned to the references in column "C". I need the formula to take each reference in column "A" look it up in the references in column "C" and place in column "B" the quantity that matches the reference in column "C". See example below. Thanks in advance for your help.

    A B C D
    Reference Match Reference Quantity
    ROB-52 6,300 ROB 77 1,000
    ROB-792 2,500 ROB 231 5,200
    ROB-77 1,000 ROB 52 6,300
    ROB-32 ROB 792 2,500
    ROB-231 5,200 ROB 49 150

    regards,

    Lalosan
    Last edited by lalosan; 12-22-2011 at 11:03 AM.

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,240

    Re: Match data in one column with data in another column

    Hello Lalosan, welcome to the forum.

    If col_A reference has a "-" and col_C reference has a space instead of "-", you can use SUBSTITUTE "-" to a space. So try this in B2 & copy down.

    =IFERROR(VLOOKUP(SUBSTITUTE(A2,"-"," "),C:D,2,0),"")
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    12-21-2011
    Location
    Miami, Florida
    MS-Off Ver
    Excel 2007
    Posts
    12

    Thumbs up Re: Match data in one column with data in another column

    Haseeb A

    Thank you so much for your response. Your solution was accurate and helpful.

    Lalosan

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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