Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Mr Smith=phone number (xxx) xxx-xxxx AND email xxx@yyy.com when Mr Smith appears 5 times in a spreadsheet

Latest post Tue, Apr 15 2008 3:58 PM by Nick Hodge. 3 replies.
  • Tue, Apr 15 2008 1:04 PM

    • veradusit
    • Top 75 Contributor
    • Joined on Mon, Mar 17 2008
    • Posts 4
    • Points 99

    Mr Smith=phone number (xxx) xxx-xxxx AND email xxx@yyy.com when Mr Smith appears 5 times in a spreadsheet

    My example doesn't deal with a phone/email list, however it very well could be.  Specifically I have a county provided list of real estate parcels that include a column for Longitude and a column for Latitude.  For example:

    A1 (parcel#) - 999999999

    B1 (Longitude) --110.036278

    C1 (Latitude) 32.149728

     

    The county parcel lists that I'm dealing with sometimes include upwards of 450,000 parcel numbers, so my current process is daunting.

     My task is to take a list of foreclosed parcel numbers and use the county provided list as a "KEY" to find the corresponding Longitude and Latitude.  It would be quite simple if the foreclosure lists did not repeat, however due to the nature of foreclosures, a piece of real estate can show up five to six times with unique auction dates, but the same parcel #.  I do not want to discard the duplicates, because knowing a foreclosed parcel's auction has been rescheduled five times is an importnat piece of information. 

     My current process is laborious.  I sort both columns of parcel numbers by smallest to largest and then with them side by side I can identify duplicates, if there are 5 foreclosed parcel number 999999999's for instance I insert four rows and copy the number, lat, and long columns  and paste it after the on instance of  the county provided "999999999=lat 32.149728, long -110.036278" 

    It might be confusing to picture so here is an example:

    http://spreadsheets.google.com/pub?key=pmGHBzfUvyOXna8qPmV3SZw

     You will notice that there are two blank columns after the foreclosure parcel numbers, that is where I need Latitude/Longitude values provided by the county to be pasted in. 

     My "Subject Line" of this post is in hopes that someone else has come accross this problem, maybe an address book that list mr smith once, yet a corresponding list that needs Mr Smith's equivalency pasted several times..It might be a bad comparrison, I was hoping that an answer to my post would be an answer to other scenarios as well.

    • Post Points: 21
  • Tue, Apr 15 2008 1:30 PM In reply to

    • Nick Hodge
    • Top 10 Contributor
    • Joined on Sun, Dec 23 2007
    • Southampton
    • Posts 304
    • Points 5,058
    • MVP

    Re: Mr Smith=phone number (xxx) xxx-xxxx AND email xxx@yyy.com when Mr Smith appears 5 times in a spreadsheet

    I suspect I'm being thick here, but are you simply looking for a VLOOKUP?

    Just enter in B1

    =VLOOKUP(A1,$D$1:$F$14,2,FALSE)

    and just change the ,2, to ,3, for the other column of longitudes

    and copy down.

    As I say, probably not want you want at all

    Regards
    Nick Hodge
    Microsoft MVP, Excel
    Southampton, UK

    Filed under:
    • Post Points: 21
  • Tue, Apr 15 2008 1:37 PM In reply to

    Re: Mr Smith=phone number (xxx) xxx-xxxx AND email xxx@yyy.com when Mr Smith appears 5 times in a spreadsheet

     That works nicely, no macro needed.  I have a lot to learn in excel.  Thanks so much!

    • Post Points: 21
  • Tue, Apr 15 2008 3:58 PM In reply to

    • Nick Hodge
    • Top 10 Contributor
    • Joined on Sun, Dec 23 2007
    • Southampton
    • Posts 304
    • Points 5,058
    • MVP

    Re: Mr Smith=phone number (xxx) xxx-xxxx AND email xxx@yyy.com when Mr Smith appears 5 times in a spreadsheet

    Sometimes there is no need to re-invent the wheel Wink

    Regards
    Nick Hodge
    Microsoft MVP, Excel
    Southampton, UK

    • Post Points: 5
Page 1 of 1 (4 items) | RSS
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.