+ Reply to Thread
Results 1 to 4 of 4

Excel question with functions/macros?

  1. #1
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Excel question with functions/macros?

    Hi i'm new to excel,

    i'm not sure whether or not this is possible to be done just by functions alone or if this does require a macro.

    I'm trying to reduce the amount of errors possible in my list, each row has 4 columns, ID,Last Name, First Name, and Data on that person. If its possible i would to just type in the ID in the first column and then have excel input the Last Name and First Name if that ID. This wau i don't end up getting typos in the Last and First name, this would also help me to see if I type in the wrong ID a different name should appear. I have a feeling that this would probably have to be done by macro, but i'm not familiar with VB, so i was hoping there might be a way to do it with regular functions.

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Where would your data come from? Do you have a reference table set up somewhere?
    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
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270
    i'm sorry i forgot to say, that yes i would have another worksheet that has all the listed ID, Last Name, First Name in seperate columns

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Then you could use a simple Vlookup(). See Excel help on this function for more detail.

    An example:

    =Vlookup(A2,'Other Sheet'!$A$2:$D$100,2,0) would return matching value for lookup value in A2 from column B of sheet called "Other Sheet", where column A contains the lookup strings.

+ 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