Macro Help

Dith2228

New Member
Joined
Jul 1, 2022
Messages
9
Office Version
  1. 365
Platform
  1. Windows
I have two worksheets, Ws1 is my data worksheet and Ws2 is my reference worksheet. I need macro to search for all the names in Ws1 A and match if it is listed in my reference worksheet (ws2 column A) and will return the corresponding value of membership status from Ws2 Col B to Ws1 Col B. In below example, Ws1 under Membership Status, B2 must have a value "Not a member" and B3 as "Member" Please help as I am not good in macro and have thousand of members to run the macro through. I have been using excel with Index, Match and search in excel [=INDEX(Membership,Found,MATCH(TRUE,ISNUMBER(SEARCH(Name,M9)),0))] and it takes so much time considering the amount of data. Thank you in advance.



Ws1.jpg
Ws2.jpg
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,213,497
Messages
6,113,998
Members
448,539
Latest member
alex78

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