+ Reply to Thread
Results 1 to 4 of 4

Include value

  1. #1
    Registered User
    Join Date
    12-04-2006
    Posts
    9

    Include value

    I have two sheets,

    I need some type of formula that will check if value A1 on sheet2 equals the value of any of the A rows on Sheet1, then if value equals insert next 3 colums of content thats on Sheet1 into Sheet2.

    Please help, I need this for fantasy basketball.

  2. #2
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    You can use this:
    =VLOOKUP(Sheet2!$A1,Sheet1!$A:$D,2,FALSE)
    Where the red number is the column (In A-D, where A is 1, B is 2, C is 3, D is 4) to return.
    So next to that formula you could enter the following formulas to get the remaining information:
    =VLOOKUP(Sheet2!$A1,Sheet1!$A:$D,3,FALSE)
    =VLOOKUP(Sheet2!$A1,Sheet1!$A:$D,4,FALSE)

  3. #3
    Registered User
    Join Date
    12-04-2006
    Posts
    9
    Thanks that did the trick.

    But I have another problem now, for some reason excel refuses to include the data that is getting with the vlookup into a formula that I have that averages all the values including the ones that vlookup is getting.

    This is the formula that I am using =AVERAGE(B2:B3)

    B2 has the vlookup formula with the data that it found and B3 has data that I inputed myself. But for some reason excel is not including the data in B2 into the average.
    Last edited by RDx; 11-04-2007 at 05:54 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    It could be the numbers are being recognized as text. Try multiplying the Vlookup formula's by one. Example:
    =VLOOKUP(Sheet2!$A1,Sheet1!$A:$D,2,FALSE)*1

+ 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