+ Reply to Thread
Results 1 to 10 of 10

Average from Vlookup returns

  1. #1
    Registered User
    Join Date
    12-11-2006
    Location
    London
    Posts
    37

    Average from Vlookup returns

    I have an issue using the average formula (example attached). I need to calculate the average grade of a group of students. I have used VLOOKUP to convert grades to numbers. Then averaged these results and converted back. It appears to work for most results, but some are not working. I have messed about with cell formatting etc, but cannot seem to figure out why its not working for some rows but does for other rows?

    Any suggestions welcome.

    Thanks

    Ver: 2003 sp3
    Attached Files Attached Files
    Last edited by edmdas; 03-11-2009 at 11:42 AM.

  2. #2
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    Re: Average from Vlookup returns

    G4 is your problem cell. Change it to anything other than an A or a* and your formulas work fine.

    I tried to find out the problem...I couldn't find a problem what so ever...however...and again, I don't know why or can't explain why but when I channged U3 and U4 to 9,8 respectively...then back to 8,9 (they way they originally were...everything then worked fine.

    ?????It's fine now..think you may have found a bug...???????
    I help because of the Pavlovian dog that resides in the inner me...so if you are happy with the results, please add to my reputation. It helps keep me motivated!



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

  3. #3
    Registered User
    Join Date
    12-11-2006
    Location
    London
    Posts
    37

    Re: Average from Vlookup returns

    A bug!

    Would explain it. I even loaded it onto another machine with 2003.

    Does it do the same in other versions of excel anyone?

    I'll have a play with it as you suggested. otherwise its back to pencil and paper

    Thanks

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Average from Vlookup returns

    Edmdas, no bug I can see, BUT your values in U3 and U4 are text, not numbers
    Type the values manually and you will see the formula working as GuruwannaB did)

    BTW this formula =AVERAGE(IF(E3:P3<>0;E3:P3)) ( enterd as an array formula) also works
    Last edited by arthurbr; 03-11-2009 at 11:28 AM.

  5. #5
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    Re: Average from Vlookup returns

    Quote Originally Posted by arthurbr View Post
    Edmdas, no bug I can see, BUT your values in U3 and U4 are text, not numbers
    Type the values manually and you will see the formula working as GuruwannaB did)

    BTW this formula =AVERAGE(IF(E3:P3<>0;E3:P3)) ( enterd as an array formula) also works
    I checked the formats...but I think I did so after I made the changes to U3 and U4...that would indeed explain it! That's why I'm still a "WannaB"!

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Average from Vlookup returns

    Guru, you did fine, np.
    You were misleaded by the fact that the cells had been center-aligned
    You then can't see imediately what is text ( left-aligned) and numbers ( right-aligned)
    ( on the other hand 2003's error catcher found it for me )

  7. #7
    Registered User
    Join Date
    12-11-2006
    Location
    London
    Posts
    37

    Re: Average from Vlookup returns

    ($swearwords!)

    It was that simple!?

    I spent an hour playing with cell formats even got a network systems guy to have a play with it. I must have changed the table a couple of times, but it makes sense now, only the rows with A*'s and A's were affected

    Thank you, I had been doing it manually due to deadline approaching, but you've saved the sweat.

    A case of wood for trees,

    Thanks Arthurbr


  8. #8
    Registered User
    Join Date
    12-11-2006
    Location
    London
    Posts
    37

    Re: Average from Vlookup returns

    Thanks also to GuruWannaB, better a wanna be than a never be hey!

  9. #9
    Forum Contributor ptm0412's Avatar
    Join Date
    04-16-2008
    Location
    Vietnam
    MS-Off Ver
    Office 2003 and 2007
    Posts
    129

    Re: Average from Vlookup returns

    No need, for it was solved! I was late to explain it.
    Last edited by ptm0412; 03-11-2009 at 11:45 AM. Reason: No need, for it was solved
    Oldman Chatting: [email protected] Mailing: [email protected]

  10. #10
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Average from Vlookup returns

    Edmdas, thx for indicating your thread solved !

+ 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