+ Reply to Thread
Results 1 to 3 of 3

Lookup problem

Hybrid View

  1. #1
    Registered User
    Join Date
    08-26-2021
    Location
    Dublin, Ireland
    MS-Off Ver
    2013
    Posts
    15

    Lookup problem

    Hello,
    I have two sheets, one with two variables, HH ID and HH type. The other sheet has one variable individual ID (which obviously has more entries as there are more individuals than HHs - some IDs repeat when individuals are in the same household). I am trying to assign HH type to each individual, where as before household type is only available at the household level. I have tried using the lookup function where I lookup the individual ID, where the lookup vector is the HH ID in the HH sheet, and where the result vector is the HH type in the HH sheet. It doesn't work as it simply repeats the first value obtained from the formula, or has an error in it when I drag it down.
    My formula is:

    =LOOKUP(A2,HH!A:A,HH!B:B)
    where A2 is Individual ID in the individual sheet, HH!A:A refers to the lookup vector, the first/A column in the HH sheet which is the HH ID, and HH!B:B is obviously the result vector, the second/B column in the HH sheet which is HH type.

    See attached


    Can anyone advise?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Lookup problem

    Hi sweeneyr82:

    Try
    =VLOOKUP(A2,HH!A:B,2,FALSE)
    Copy down.

    Pete
    Last edited by PeteABC123; 04-13-2023 at 03:42 PM.

  3. #3
    Registered User
    Join Date
    08-26-2021
    Location
    Dublin, Ireland
    MS-Off Ver
    2013
    Posts
    15

    Re: Lookup problem

    That has worked, thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Lookup problem
    By AVG123 in forum Excel General
    Replies: 8
    Last Post: 05-28-2017, 04:54 AM
  2. LOOKUP Problem
    By Doogles10 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-31-2013, 07:19 AM
  3. Lookup problem
    By nikhil83 in forum Excel General
    Replies: 2
    Last Post: 07-29-2013, 12:12 AM
  4. Lookup Problem
    By gazzauk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-31-2012, 07:10 AM
  5. Lookup problem
    By LiamF in forum Excel General
    Replies: 1
    Last Post: 02-18-2011, 07:37 AM
  6. Lookup Problem:using the same name
    By BGP5786 in forum Excel General
    Replies: 1
    Last Post: 03-22-2007, 11:39 AM
  7. [SOLVED] Lookup problem
    By Landon C in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2006, 11:10 AM

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