+ Reply to Thread
Results 1 to 5 of 5

Do I use a Look up?

  1. #1
    Wendy
    Guest

    Do I use a Look up?

    I have a column of city names in excel FILE A. In the column directly to the
    right of the city, I want a formula to lookup from FILE B and enter the
    correct county name from another work sheet column.

    FILE B contains a column of all the possible city names and a column of
    their county names.

    I'd be so happy to have some help on this. Thanks.

  2. #2
    Dave Peterson
    Guest

    Re: Do I use a Look up?

    =vlookup(a2,sheet2!a:b,2)
    would be the basic formula.

    You may want to read Debra Dalgleish's notes:
    http://www.contextures.com/xlFunctions02.html

    Wendy wrote:
    >
    > I have a column of city names in excel FILE A. In the column directly to the
    > right of the city, I want a formula to lookup from FILE B and enter the
    > correct county name from another work sheet column.
    >
    > FILE B contains a column of all the possible city names and a column of
    > their county names.
    >
    > I'd be so happy to have some help on this. Thanks.


    --

    Dave Peterson

  3. #3
    Wendy
    Guest

    Re: Do I use a Look up?

    Thanks! With a little noodling, it worked.

    "Dave Peterson" wrote:

    > =vlookup(a2,sheet2!a:b,2)
    > would be the basic formula.
    >
    > You may want to read Debra Dalgleish's notes:
    > http://www.contextures.com/xlFunctions02.html
    >
    > Wendy wrote:
    > >
    > > I have a column of city names in excel FILE A. In the column directly to the
    > > right of the city, I want a formula to lookup from FILE B and enter the
    > > correct county name from another work sheet column.
    > >
    > > FILE B contains a column of all the possible city names and a column of
    > > their county names.
    > >
    > > I'd be so happy to have some help on this. Thanks.

    >
    > --
    >
    > Dave Peterson
    >


  4. #4
    Wendy
    Guest

    Re: Do I use a Look up?

    I just posted another question -- I want to format the results that returned
    #N/A to white so I don't have to look at them. I expected the few #N/A
    results because there were cities (from other states) that did not have
    corresponding counties. Maybe and IF function? If there's a VLookup match, if
    not, return a blank???

    "Dave Peterson" wrote:

    > =vlookup(a2,sheet2!a:b,2)
    > would be the basic formula.
    >
    > You may want to read Debra Dalgleish's notes:
    > http://www.contextures.com/xlFunctions02.html
    >
    > Wendy wrote:
    > >
    > > I have a column of city names in excel FILE A. In the column directly to the
    > > right of the city, I want a formula to lookup from FILE B and enter the
    > > correct county name from another work sheet column.
    > >
    > > FILE B contains a column of all the possible city names and a column of
    > > their county names.
    > >
    > > I'd be so happy to have some help on this. Thanks.

    >
    > --
    >
    > Dave Peterson
    >


  5. #5
    Dave Peterson
    Guest

    Re: Do I use a Look up?

    =if(a2="","",if(iserror(vlookup(...)),"",vlookup())))

    It's kind of redundant, but there's not a better way.



    Wendy wrote:
    >
    > I just posted another question -- I want to format the results that returned
    > #N/A to white so I don't have to look at them. I expected the few #N/A
    > results because there were cities (from other states) that did not have
    > corresponding counties. Maybe and IF function? If there's a VLookup match, if
    > not, return a blank???
    >
    > "Dave Peterson" wrote:
    >
    > > =vlookup(a2,sheet2!a:b,2)
    > > would be the basic formula.
    > >
    > > You may want to read Debra Dalgleish's notes:
    > > http://www.contextures.com/xlFunctions02.html
    > >
    > > Wendy wrote:
    > > >
    > > > I have a column of city names in excel FILE A. In the column directly to the
    > > > right of the city, I want a formula to lookup from FILE B and enter the
    > > > correct county name from another work sheet column.
    > > >
    > > > FILE B contains a column of all the possible city names and a column of
    > > > their county names.
    > > >
    > > > I'd be so happy to have some help on this. Thanks.

    > >
    > > --
    > >
    > > Dave Peterson
    > >


    --

    Dave Peterson

+ 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