+ Reply to Thread
Results 1 to 8 of 8

Lookup Value from one worksheet to another

Hybrid View

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    Rhode Island
    MS-Off Ver
    Excel 2007
    Posts
    27

    Question Lookup Value from one worksheet to another

    I am having problems transferring data from one worksheet to another using the LOOKUP Function.

    I have one worksheet where there are two columns: team and points. I sorted the worksheet by team and used the subtotal function to get a Team Total. So now the team column has the teams names and the inserted field TEAM total with the next column showing the total of points.

    I am trying to transfer the total number of points on to my other worksheet. I used the Lookup function on the worksheet where the team information is and It worked. However I cannot figure out how to insert this formula on the worksheet I am trying to get the total value to.

    This is the function I used: =LOOKUP("RED TEAM Total", c2:c31, d2:d31) this worksheet is named TeamTotals. I am trying to insert this onto the summary worksheet named summary. How do I do this? I tried inserting on the summary page the lookup function but cannot figure out where to put the worksheet reference (TeamTotals!).

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Lookup Value from one worksheet to another

    This would probably do it, but I recommend using VLOOKUP, instead of LOOKUP, since LOOKUP requires your lookup data to be sorted. If it isn't sorted, it will return incorrect results.

    =LOOKUP("RED TEAM Total",TeamTotals!C2:C31,TeamTotals!D2:D31)


    For instance, if you had "RED TEAM Total" in cell A2, "BLUE TEAM Total" in A3, etc., then in B2, use something like this:

    =VLOOKUP(A2,TeamTotals!$C$2:$D$31,2,0)

    Then fill that down.

    - Moo
    Last edited by Moo the Dog; 01-31-2013 at 01:55 PM.

  3. #3
    Registered User
    Join Date
    01-31-2013
    Location
    Rhode Island
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Lookup Value from one worksheet to another

    Thank you! Exactly what I was trying to accomplish with the LOOKUP Function. I just cant seem to understand the VLOOKUP.

    On my team point worksheet there are multiple entries for the same team so that is why I sort it then use the subtotal function.

    If I used the VLookup I wouldn't need to sort and subtotal the points to achieve the same result?


  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Lookup Value from one worksheet to another

    Here is an example sheet. Hope it helps.

    - Moo
    Attached Files Attached Files

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Lookup Value from one worksheet to another

    OK, if you want to sum up all of the points for a team from the other worksheet, you could use the SUMIF function, so you don't need subtotal or sorting or any of the LOOKUP/VLOOKUP functions. Try this:

    =SUMIF(TeamTotals!$C$2:$C$31,"put_team_name_inside_these_quotes",TeamTotals!$D$2:$D$31)

    - Moo

  6. #6
    Registered User
    Join Date
    01-31-2013
    Location
    Rhode Island
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Lookup Value from one worksheet to another

    Thank you! Much easier! Problem Solved!!

  7. #7
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Lookup Value from one worksheet to another

    Glad to help.

    - Moo

  8. #8
    Registered User
    Join Date
    01-31-2013
    Location
    Rhode Island
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Lookup Value from one worksheet to another

    On My team totals page I import three columns of info: Name, rank and team. I have a fourth column points. I then sort by rank and assign points to the top 30 only. 1st = 30, 2nd=29, etc until i reach position 30. all others below that get a 0. I have been doing this manually, what would be an easier way so I could set up all the worksheets prior and then just import the data? What function would work?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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