if sheet1 columnB has matching value to sheet2 cellA(1) then copy sheet1 matched cellB to sheet2 cellH2. cycle for every cell

aqualina

New Member
Joined
Sep 29, 2023
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Hello! Sounds complicated. But I hope someone can help me. I have never worked with macros function,
and can't understand how to make it work to save myself.

So i have these two sheets.

This is Sheet1
NameComment (empty for now)
C1
C4
R71

This is Sheet2
NumberPriceComment
C1,C2,C4,C8151-12-18
L32222-14-7
R5,R15,R711711-11-8

And I need VBA to compare Name, cell by cell, find matches in Number and then insert Comment in Sheet1, if match found. Like this.
NameComment
C11-12-18
C41-12-18
R7111-11-8

And sorry, English is my second language.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi and welcome to MrExcel

Try the following formula on sheet1:

Dante Amor
AB
1NameComment
2C11-12-18
3C41-12-18
4R7111-11-8
Sheet1
Cell Formulas
RangeFormula
B2:B4B2=VLOOKUP("*"&A2&"*",Sheet2!A:C,3,0)


--------------
Let me know the result and I'll get back to you as soon as I can.
Cordially
Dante Amor
--------------
 
Upvote 0

Forum statistics

Threads
1,223,871
Messages
6,175,099
Members
452,612
Latest member
MESTeacher

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top