Solved

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

Posted on 2014-10-30
7
86 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 25

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 25

Expert Comment

by:ProfessorJimJam
ID: 40414109
if you attach your files then i will embed them for you.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:mabehr
ID: 40414178
0
 
LVL 25

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now