+ Reply to Thread
Results 1 to 7 of 7

Need Conditional Text Display and Selection

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question Need Conditional Text Display and Selection

    I am a newbie to excel.
    I have a file with postal codes for a particular town along with the dates when my team will be there.
    I want to make a new sheet and then on the second sheet if someone starts typing a postal code, then dynamically it searches for the item containing the text types and also displays the corresponding dates. I think this can be done through drop down lists.

    I am hereby attaching the sample sheet.

    Would be really thankful if someone can do this for me.


    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need Conditional Text Display and Selection

    This can be done with a worksheet_change event watching column A of your new sheet. As you type in zip codes in that column, it will add the matching dates to the right on the same row.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-04-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question Re: Need Conditional Text Display and Selection

    Thanks for the solution

    It really works, but how do i find a match for the Alpha-numerically closest ZIP code and its corresdponding date.
    For example, I am looking for code K2P 1N1 and the date for this particular code is not present in the list.
    Then, it should display the dates for the alpha-numerically closest match, ie, any of the codes in K2P series.

    Thanks

  4. #4
    Registered User
    Join Date
    04-04-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Need Conditional Text Display and Selection

    Quote Originally Posted by JBeaucaire View Post
    This can be done with a worksheet_change event watching column A of your new sheet. As you type in zip codes in that column, it will add the matching dates to the right on the same row.
    Please Login or Register  to view this content.

    Thanks for the solution

    It really works, but how do i find a match for the Alpha-numerically closest ZIP code and its corresdponding date.
    For example, I am looking for code K2P 1N1 and the date for this particular code is not present in the list.
    Then, it should display the dates for the alpha-numerically closest match, ie, any of the codes in K2P series.

    Thanks
    Last edited by pardeepsingh; 04-05-2012 at 05:37 AM.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need Conditional Text Display and Selection

    1) please don't quote my entire post into yours.

    2) Add this, if there is no "exact match" to the zip entered, it will search again using only the first 3 characters.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-04-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Need Conditional Text Display and Selection

    Thanks A ton It works.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need Conditional Text Display and Selection

    Glad to help.

    If that takes care of your need, please click Thread Tools above your first post and mark this thread as SOLVED.

+ 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