+ Reply to Thread
Results 1 to 3 of 3

Trouble with #N/A trying to find averages

Hybrid View

  1. #1
    Registered User
    Join Date
    03-15-2007
    Posts
    53

    Trouble with #N/A trying to find averages

    Hi I have attached a file to help explain my problem.
    In sheet Teamdata I need to average the vlookup returns in columns N,P,R,T etc. Each day stats are added to the Database section so more and more columns will fill with numbers rather than the #N/A where there has been no game yet.
    In column I, I'd like the average of the numbers in N,P,R,T etc. When I just try to average them all I obviously get a return of #N/A. Maybe it is possible to use column C's data,which tells how many games that team has played, in some kind of average function using column C's data as a variable.
    I am sure there are many ways to do this, any help would be appreciated. I am on 2007 btw if that would make any difference. Thanks in advance Andy
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You can get your Vlookups to return a blank when the lookup value is not found in your table, then when you Average it will ignore blanks...

    so, for example in R3 use formula:
    =IF(ISNUMBER(MATCH(Q3,$A$3:$A$300,0)),VLOOKUP(Q3,$A$3:$I$300,8,0),"")
    Then to get average:
    =Average(R3:R12)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-15-2007
    Posts
    53
    Thanks again :P works great

+ 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