Get other workbook names matching cell values from main workbook

rcmistri

New Member
Joined
Aug 17, 2023
Messages
2
Office Version
  1. 365
  2. 2021
  3. 2016
  4. 2013
Platform
  1. Windows
I have file (e.g. MainList.xlsm) having list of names (in column C) and other excel files (e.g. AreaList_1.xlsx, AreaList_2.xlsx, AreaList_3.xlsx . . . AreaList_n.xlsx) which also have names in column C and some other details (many or all names may not be in MainList.xlsm). I want to find out which AreaList_x.xlsx file(s) have matching names from MainList.xlsm file. This finding can be listed against each names in MainList file column D. below are the structure of files :
MainList.xlsm
Sr No.AreaNameFiles Matching (expected with VBA)other details . . .
1Area1Name1AreaList_1
AreaList_3
(file extension is not a problem if added with file names)
details1
2Area2Name2nonedetails2
3Area3Name3AreaList3details3
4Area4Name4AreaList_7
AreaList_10
AreaList_16
AreaList_22
details4

AreaList_n.xlsx (Names column may have different names or few matching names in some of the files)
Sr No.AreaNameother details . . .
1Area1Name3details3
2AreaXName22details22
3AreaNName46details46
4AreaAName4details4
5AreaDName1details1
6AreaCName78details78
7AreaFName34details34

Note :
1) All files will be in same folder
2) names may be added or removed from Name column in MainList.xlsm file

I am totally new to VBA but but not new in programing, I have done some coding in Python, JS and ASM (microcontrollers) languages and have been using excel and built-in functions since many years (without vba macros).
Can someone have idea on this ?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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