+ Reply to Thread
Results 1 to 2 of 2

Need Help On Function

  1. #1
    Registered User
    Join Date
    01-06-2005
    Posts
    2

    Unhappy Need Help On Function

    Need to look for matching dates form worksheet 1 "E1" within column "A" of worksheet 2 and find the value in column "C" and paste it into worksheet 1 "E2"


    worksheet 1

    ____________A_________B_________C__________D___________E
    1____________________________________________________1/5/05
    2 ____________________________________________________10.00


    worksheet 2

    ____________A_________B_________C__________D___________E
    1__________DATE________________TOTAL
    2__________1/2/05_______________20.00
    3__________1/3/05________________5.00
    4__________1/5/05________________10.00

  2. #2
    Forum Contributor
    Join Date
    01-06-2004
    Location
    Carbondale CO
    Posts
    245

    Need help on Function

    Hi,
    What you need is a simple VLOOKUP function. But in order to make a VLOOKUP work Excel needs to know where to go look. Generally, that is a table like the one you have shown on Worksheet 2. The other requirement is that the table is sorted by the first column in an ascending order.
    One of the methods used by experienced users is to make the table a NAMED RANGE. This allows you to refer to the name of the table in your VLOOKUP formula instead of specifically defining the range like A1:E150. Also, you can make your range dynamic meaning that as it grows your NAMED RANGE grows with it.

    So here are my assumptions:
    That your "table" occupies Columns A-E

    Go to INSERT>NAME>DEFINE and Type MyRange into the "Names in workbook:: (name can have no spaces if you want a space use the _ underscore character.

    In Refers to: type the following exactly assuming your table is on Sheet 2
    OFFSET('Sheet 2'!$A$2,0,0,COUNTA('Sheet 2'!$A:$E),5)

    Click OK

    Go to worksheet 1 and in Cell E2 enter the following formula
    VLOOKUP(E1,MyRange,3,FALSE)
    and the result using your data should be 10.00.

    Hope this helps
    Casey

+ 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