+ Reply to Thread
Results 1 to 6 of 6

average and vlookup

  1. #1
    Registered User
    Join Date
    12-09-2008
    Location
    U.S.
    Posts
    15

    average and vlookup

    i have two columns...a and b (a w/ names, and b w/grades). then i have the table lookup with names and grades all mixed up for many rows.

    i want to be able to average the grades with appropriate names. can someone help with the formula?

    =average(vlookup(name, table, column, false))?? i don't get it to work and how can i specify the grade to average?

    any help would be great. thx.
    Last edited by noobnxcl; 12-09-2008 at 11:00 PM. Reason: solved

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    =AVERAGE(IF(A1:A100 = someName, B1:B100))

    This is an array formula, meaning it MUST be confirmed with Ctrl+Shift+Enter, not just Enter. (With the cursor in the formula bar, hold down Ctrl and Shift, then press Enter.) You'll know you did it correctly if curly braces appear around the formula in the Formula Bar; you cannot type in the braces directly.
    Last edited by shg; 12-09-2008 at 10:02 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-09-2008
    Location
    U.S.
    Posts
    15
    i get zero's only and not a number. i tried doing this with a daverage also, but only get zero's. what am i doing wrong?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Dunno. Post a workbook.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    You would have to post up a sample for us to see what you're doing wrong. That formula worked fine with columns with this data:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    12-09-2008
    Location
    U.S.
    Posts
    15
    sorry, i actually saw that it worked. i guess it took a little time to calculate. thx all for your help!

+ 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