Matching 2 Tables and Pasting it on another Column

TeckTeck

New Member
Joined
Sep 28, 2023
Messages
15
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi all, i am new to Excel and would like to know what is the code for VBA for this to happen.
1695894002971.png

I would need to match the reference list to master list,

Condition 1: IF column A matches Column C then paste Column C on Column E
Condition 2: IF column B matches 50% or 60% of Column D (text) then paste column C on Column E

Please advice on how to do this. Appreciated very much
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Why not to use formula? E3:
Excel Formula:
=IF($A3=$C3,$C3,IF("*"&$B3&"*"=$D3,$D3,"NO MATCH"))
It is hard to specify something like %50 or %60. Please, check if this works.
Maybe:
Excel Formula:
=IF($A3=$C3,$C3,IF(AND("*"&$B3&"*"=$D3,LEN($B3)/LEN($D3>0.50),$D3,"NO MATCH"))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,705
Messages
6,173,989
Members
452,541
Latest member
haasro02

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