+ Reply to Thread
Results 1 to 10 of 10

Lookup Functions for a range of cells

Hybrid View

  1. #1
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Lookup Functions for a range of cells

    Hang on.... Hang on!

    Take a step back. You want to type any employee number from 1 to 8. You put that number into A1. Then A1 = whatever number you put in there. Then B1 = the forumula I posted above, C1 = the formula I posted above. Have you tried it???

    You can copy the whole setup down a few rows and enter different employee numbers in A2, A3, A4, etc.

    You will only ever enter one employee number into one cell, and that cell will be evaluated by the Vlookup function.

    Maybe you want to post an example of your file, so we can have a look and explain some more?
    You can upload a file by clicking "Go Advanced" below the Quick Reply box and then the paper clip icon.

    cheers

  2. #2
    Forum Contributor
    Join Date
    01-28-2010
    Location
    Riverside, CA
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Lookup Functions for a range of cells

    This is what I have, it doesn't use vlookup, just regular lookup.

    B1 and C1 will stay blank until you decide to input a employee number in A1

    B1:
    =IF(A1="","",LOOKUP(A1,Sheet2!$A$1:$A$8,Sheet1!$B$1:$B$8))
    C1:
    =IF(A1="","",LOOKUP(A1,Sheet2!$A$1:$A$8,Sheet1!$C$1:$C$8))
    The range is static, so you can paste down a few more rows for comparison.

    Good luck
    Happy Excel'ing!

  3. #3
    Registered User
    Join Date
    01-30-2010
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Lookup Functions for a range of cells

    Yay! Thank you teylen, I think I misread your original post and was making an error with the "A1" part of the formula. It works now!

+ 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