+ Reply to Thread
Results 1 to 2 of 2

Lookup Function

  1. #1
    Registered User
    Join Date
    09-12-2006
    Posts
    1

    Lookup Function

    Unique identifer is the project number. I need to search for all project numbers listed on worksheet one to match any project numbers on worksheet two. If a project number matches I need to pull amount linked to project# to worksheet one. Do I use the Lookup Function for this? If so, how?

    WorkSheet one Worksheet two
    Project# Amount Project# Amount Acutals
    2012 2010 22,000
    2014 2012 29,000
    2014 32,000

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    if the values in sheet2 are unique yes you do. If they are not and are say monthly amounts so more than one appears you need to use sumif

    if the project number is in a2 something like
    =VLOOKUP(A2,Sheet2!$A$2:$C$5,2,FALSE) for project amounts

    or
    =VLOOKUP(A2,Sheet2!$A$2:$C$5,3,FALSE) for actuals

    of

    sumif(sheet2!$a$2:$a$5,a2,sheet2!$b$2:$b$5)
    and
    sumif(sheet2!$a$2:$a$5,a2,sheet2!$c$2:$c$5)


    obviously the ranges need extending to cover the data in sheet2

    Regards

    Dav

+ 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