Solved

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

Posted on 2014-10-30
7
91 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
  • 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:mabehr
ID: 40414178
0
 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

790 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