+ Reply to Thread
Results 1 to 5 of 5

Automatic population of data.

Hybrid View

bengaluru Automatic population of data. 07-31-2009, 11:42 AM
hoffey Re: Automatic population of... 07-31-2009, 11:59 AM
bengaluru Re: Automatic population of... 07-31-2009, 01:32 PM
Avinash Kumar Re: Automatic population of... 08-03-2009, 07:15 AM
Avinash Kumar Re: Automatic population of... 08-04-2009, 11:10 AM
  1. #1
    Forum Contributor bengaluru's Avatar
    Join Date
    06-10-2005
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    150

    Automatic population of data.

    Hello Friends

    I have a spread sheet with two values – say like this

    City Number City Name

    100 Athens
    101 Bucharest
    102 Copenhagen
    103 Dhanbad
    104 New Delhi
    105 Toronto
    106 Las Vegas
    107 Las Angeles
    108 New York
    109 Denver
    110 Buffalo
    111 Chennai
    112 Bangalore

    I want the user to input the City number and in the adjoining cell the name of the city should come up. Can someone tell me how I do this ?

    Thanks for your help, as always.

  2. #2
    Registered User
    Join Date
    06-30-2009
    Location
    Southern California, Earth
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Automatic population of data.

    Hello.

    You are going to want to create a named list for the city number/city name.

    So wherever you have your table (column 1 city number, column 2 city name) select all the data and press CTRL-F3. Type "CityKey" for the name and press OK.

    Now put this in cell B3:

    =IF(A3="","",VLOOKUP(A3,CityKey,2,FALSE))
    This looks up what is in cell A3 and returns the value of the city name based on the name you defined. If there is nothing in Cell A3, it displays nothing.

    So it matches whatever is in cell A3 with the match in CityKey, and then returns the second column value of that table, which is the name.


    Hope this helps.

  3. #3
    Forum Contributor bengaluru's Avatar
    Join Date
    06-10-2005
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    150

    Re: Automatic population of data.

    Great hoffey. Many Thanks for your help. It works.

    If I have the URL links to all the cities in my database, how I do get the results also have the links?

    Also all the cells where the formula has, shows #NA.. How I can make it empty?

    Take care
    Last edited by bengaluru; 07-31-2009 at 02:56 PM.

  4. #4
    Registered User
    Join Date
    07-17-2009
    Location
    India
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    13

    Re: Automatic population of data.

    Quote Originally Posted by hoffey View Post
    Hello.

    You are going to want to create a named list for the city number/city name.

    So wherever you have your table (column 1 city number, column 2 city name) select all the data and press CTRL-F3. Type "CityKey" for the name and press OK.

    Now put this in cell B3:

    =IF(A3="","",VLOOKUP(A3,CityKey,2,FALSE))
    This looks up what is in cell A3 and returns the value of the city name based on the name you defined. If there is nothing in Cell A3, it displays nothing.

    So it matches whatever is in cell A3 with the match in CityKey, and then returns the second column value of that table, which is the name.


    Hope this helps.
    Hi,

    What should I use, if I have a combination to look at two columns to populate the 3rd column as per the attachment.

    Regards,
    Avinash
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-17-2009
    Location
    India
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    13

    Re: Automatic population of data.

    Hi Guys,

    Can any of the pros assist me with this situation??

    AB

+ 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