Nov 11 2023 01:46 PM
I need to explain the situation. The is a dog application. I have two files. One is 57,000 records and the other is 500 records. The larger file has been reduced to a record ID and the name of the dog. The smaller file has a blank for the record ID, the name of the dog, and a number of health related pieces of data. The goal is to capture the record ID form the larger file and paste it into the corresponding record of the small file. Once done, the small file will be shipped elsewhere to go through a migration process to upload the health data into the complete larger file which is available online.
I was working with the two files and manually copying the name o a dog in the small file, going to the larger file to find the record and then copy the record ID and then move back to the smaller file and paste the record ID into the appropriate record. I was doing this manually and got about 50 records done. Then I had the idea that maybe a macro could work. Am I on the right path?
Nov 11 2023 02:02 PM
=INDEX($A$3:$A$24,MATCH(F3,$B$3:$B$24,0))
An alternative could be INDEX and MATCH. VBA isn't required if i correctly understand you want to do. Of course you can adapt the formula according to the actual size of the data e.g.
=INDEX($A$3:$A$57000,MATCH(F3,$B$3:$B$57000,0))
Nov 11 2023 02:06 PM
SolutionWhy not do the following:
Nov 12 2023 06:55 AM
I'll need to study both responses. I have no docs except the Excel help file (MS Office 365). I'll see if I understand the proposals and then get back to you both. Thanks for your assistance.
Eric
Nov 12 2023 11:59 AM