Solved

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

Posted on 2014-10-30
7
94 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
Industry Leaders: 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

636 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