+ Reply to Thread
Results 1 to 5 of 5

Using to and from zip codes to locate a single sheet

Hybrid View

scottmcglasson Using to and from zip codes... 09-02-2008, 09:29 AM
NBVC Can't you use the Hyperlink... 09-02-2008, 09:58 AM
scottmcglasson How do I accomplish that? I... 10-01-2008, 10:26 AM
sglife Assue A1 = Zip (from) , B1 =... 10-01-2008, 09:29 PM
scottmcglasson Thanks. I'll give that a... 10-09-2008, 10:09 AM
  1. #1
    Registered User
    Join Date
    09-02-2008
    Location
    St Louis
    Posts
    5

    Using to and from zip codes to locate a single sheet

    Greetings.

    Hopefully, someone will have an elegant solution to this.

    I have a large spreadsheet with multiple tabs. Each tab corresponds from a shipping area, like Chicago, to another area, like Saint Louis. We ship from and to most, but not all, zip codes in a given metropolitan area.

    Currently, the first sheet has hyperlinks to all of the from/to combinations, but the user has to know where to go and it's easy to make a mistake for a new user. What I would like to do is give the user a chance to put the From and To zips in two different cells and then do some sort of operation that will look at the first three numbers in both zips, then link to the right from/to sheet.

    Off the top of my head, I guess it could be done through a laborious vlookup of a table of hyperlinks combined with nested IF statements, but that seems like the sledgehammer approach.

    Any thoughts?
    Last edited by scottmcglasson; 09-02-2008 at 09:31 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Can't you use the Hyperlink function and concatenate the first 3 letters of each code somehow to link to the proper sheet?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-02-2008
    Location
    St Louis
    Posts
    5
    Quote Originally Posted by NBVC View Post
    Can't you use the Hyperlink function and concatenate the first 3 letters of each code somehow to link to the proper sheet?
    How do I accomplish that? I know how to hyperlink from any cell to pretty much anywhere, but I don't know how to deal with offering the user the opportunity to put in their origin and destination zips or how to have Excel decide which tab to then go to.

    For instance, if it's shipping from Saint Louis to Chicago, Excel only needs two returns. One for a 3-digit origin/destination match, which would take the user to the right tab for pricing, or an error message saying one of the two zips used is not valid in our transportation area.

  4. #4
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    Assue A1 = Zip (from) , B1 = Zip (To), and your worksheet name is like "123 to 456"



    Put this formula in C1
    
    =HYPERLINK(CONCATENATE("#'",LEFT(A1,3)," to ",LEFT(B1,3),"'!A1"),CONCATENATE(LEFT(A1,3)," to ",LEFT(B1,3)))
    I need your support to add reputations if my solution works.


  5. #5
    Registered User
    Join Date
    09-02-2008
    Location
    St Louis
    Posts
    5
    Thanks. I'll give that a shot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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