+ Reply to Thread
Results 1 to 8 of 8

want to average a bunch of values found with vlookup

  1. #1
    Registered User
    Join Date
    07-14-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac 2011
    Posts
    14

    want to average a bunch of values found with vlookup

    Hi everyone, I'm trying to use vlookup in my gradebook. For any given student I want to enter a letter grade for each assignment. Then I want to create a vlookup table where those letters have equivalent number values. Then I want a formula that will find the average of all those number values the student earned.

    For instance, according to my vlookup table, A = 95, B = 85 and C = 75.

    And John gets the following grades: A B C C.

    I want a formula that will calculate his overall grade of 82.5 without having to create separate columns that show the actual vlookup results (the number grades for each assignment).

    I am really a beginner with Excel so right now I have something like this, which is completely annoying:
    =(VLOOKUP(C4,$AH$28:$AI$37,2,FALSE)+VLOOKUP(D4,$AH$28:$AI$37,2,FALSE)+VLOOKUP(E4,$AH$28:$AI$37,2,FALSE))/3

    I hope that makes sense. I appreciate your help!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: want to average a bunch of values found with vlookup

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: want to average a bunch of values found with vlookup

    Try this...

    =SUMPRODUCT(SUMIF(AH28:AH37,C4:E4,AI28:AI37))/COUNTA(C4:E4)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: want to average a bunch of values found with vlookup

    and to think that 1 day, worms will be eating that brain, Tony
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: want to average a bunch of values found with vlookup

    I plan on using it all up before I take the permanent dirt nap.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: want to average a bunch of values found with vlookup

    give it your best shot

  7. #7
    Registered User
    Join Date
    07-14-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac 2011
    Posts
    14

    Re: want to average a bunch of values found with vlookup

    Thanks, Tony! That worked like a charm.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: want to average a bunch of values found with vlookup

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] UDF to Vlookup multiple delimited values (numeric/non-numeric) and sum found values
    By Geert Rottiers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2013, 09:30 AM
  2. [SOLVED] How to match values found by vlookup
    By Berean50 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-13-2013, 04:55 AM
  3. Replies: 0
    Last Post: 12-14-2012, 12:12 AM
  4. Replies: 4
    Last Post: 06-28-2012, 07:08 AM
  5. Average for range of values (VLOOKUP?)
    By Poolio in forum Excel General
    Replies: 1
    Last Post: 01-09-2007, 08:20 AM

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