+ Reply to Thread
Results 1 to 5 of 5

Lookup Range Between 2 Numbers & 3rd Value

Hybrid View

  1. #1
    Registered User
    Join Date
    04-27-2010
    Location
    Argentina
    MS-Off Ver
    Excel 2003
    Posts
    4

    Post Lookup Range Between 2 Numbers & 3rd Value

    I have DataBase with Streets, Street Numbering and Corresponding ZipCode.
    I need to retreive Zipcode for Specified Stree + Number
    So to understand below: Street Acosta (2701-3700) but it has different Zip code.
    How can I retreive Zip for ACOSTA #3566

    Zip Street Name Start End
    1407 ACOSTA 1 1300
    1407 ACOSTA 1301 2600
    1407 ACOSTA 2601 2700
    1437 ACOSTA 2701 3400
    1437 ACOSTA 3401 3700
    1405 ACOYTE 1 200
    1405 ACOYTE 201 1100
    1414 ACOYTE 1101 1700


    Pls see attachement for ref.
    I would appreciate some help.
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup Range Between 2 Numbers & 3rd Value

    You would obviously be best served splitting the street name and number from your criteria cell, however, based on your sample (wherein there is only one space in the string):

    =LOOKUP(2;1/((B2:B9=LEFT(G2;FIND(" ";G2&" ")-1))*(C2:C9<=0+REPLACE(G2;1;FIND(" ";G2&" ");"")));A2:A9)

    In reality however I think you will need to (read: should) split the street and number (G2 in your file) into two separate cells.

  3. #3
    Registered User
    Join Date
    04-27-2010
    Location
    Argentina
    MS-Off Ver
    Excel 2003
    Posts
    4

    Thumbs up Re: Lookup Range Between 2 Numbers & 3rd Value

    There is no problem, I can extract and leave Address "G2" & Number "H2".
    I have seen it works only with 1 Name on Address. Sometimes address have 2,3 or 4 words + Street Number
    Example: If address is AAAA BBBBB CCCC 777, it doesnīt work.

    Any Idea?
    Thanks
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup Range Between 2 Numbers & 3rd Value

    Quote Originally Posted by dleiman View Post
    I have seen it works only with 1 Name on Address. Sometimes address have 2,3 or 4 words + Street Number
    Example: If address is AAAA BBBBB CCCC 777, it doesnīt work.

    Any Idea?
    Yes, see my earlier point re: splitting the street name & number

    Given you have now adopted that advice - the formula is "simplified":

    =LOOKUP(2;1/((B2:B34=G2)*(C2:C34<=H2)*(D2:D34>=H2));A2:A34)

    Note for your example you will get an error given no Zip exists for the parameters specified.

  5. #5
    Registered User
    Join Date
    04-27-2010
    Location
    Argentina
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Lookup Range Between 2 Numbers & 3rd Value

    The MLOOKUP works fine only for exact phrases. Itīs at: excelguide.eu

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1