Solved

continuation and modification of previous question: match values from two different spreadsheets and insert

Posted on 2014-10-30
7
93 Views
Last Modified: 2014-11-04
So now, getting back to the previous question:
http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_28546889.html

I now have USZipOnly.xls, (instead of US_2.xls) and when I replace
US_2.xls with USZipOnly.xls in the above function I do get results but I should be getting multiple results for almost all cities as almost all cities have more than one zip code.  Some have tons!

Can this solution/function be updated so what it will return multiple zip codes per city in this format?

94597|94598|94599 and so on? (Or it can have another separator if needed.)
0
Comment
Question by:mabehr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 40413971
please see the attached example. it the UDF will do the job for you.
EE.xlsm
0
 

Author Comment

by:mabehr
ID: 40414025
hmmm.... thank you, but how do I use this? I have two spreadsheets. I don't see how this accesses the USZipOnly.xls to populate the K column in Maptitude_FMG_AllGoodEmails.xlsm. Am I missing something?
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 40414109
if you attach your files then i will embed them for you.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 26

Accepted Solution

by:
ProfessorJimJam earned 500 total points
ID: 40415393
mabehr


your file Maptitude was a mess, you had numerous whole column conditional formatting in it. which makes the workbook complete dead slow. i had to remove the conditional formatting,

the formula to work is the following.  when both workbooks are open.

because of your file is too big and the Aconcat UDF is not a builtin function, it would calculate slow in huge data.
currently, as a test in the attached file, i have copied the formula up to row number 2872 .

for this to work, you need to allocate approx 30 minute of your time. i did not have 30 minutes that is why i only did it for 2872 rows.

so here you need to do.  in order for the formula not to get frozen with too much recalculation of cells.

then you do it as follows.

take each couple of hundreds of rows and paste the formula, it would take few seconds for the formula to calculate and return the values and once done, then copy same cells and paste over as values, so that when next time you do it for the next batch of cells the previous cells would not recalculate.

even right now when you open the Maptidue file it will take about 30 seconds for the file to open and recalculate cells, so then to start copy all those rows and then paste them as values before you move on to the next batch of copy and paste.

also when you paste as values, make sure that you do not take the last row that has formula, so that for the next batch you have a cell with formula that you can copy.

this is the formula on the begining of cell

=SUBSTITUTE(AConcat(IF([USZipOnly.xls]Query1!B$2:B$43630=I2,IF([USZipOnly.xls]Query1!C$2:C$43630=J2," I "&[USZipOnly.xls]Query1!A$2:A$43630,""),""))," I ","",1)
Maptitude-FMG-AllGoodEmails-scrubbed.xls
USZipOnly.xls
0
 

Author Closing Comment

by:mabehr
ID: 40416104
That worked (and is still processing away). Thank you.

The next and final thing I need to do is do another finding and matching. I will post the link to the question here if you are interested.
0
 

Author Comment

by:mabehr
ID: 40421836
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question