ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Problem with averages.. (https://www.excelbanter.com/excel-worksheet-functions/446960-problem-averages.html)

Russell Pearce

Problem with averages..
 
1 Attachment(s)
Can anyone help am lost with this one!

I have a tracking spreadsheet for student test results. Teachers enter a letter grade and this is converted via VLOOKUP to a number in the next (hidden) column. Some of the letter grades come via linked cells from another sheet in the same workbook. All this works fine... .. I want to have a running average of the results which then goes red or green based on a target grade - again this works fine BUT here is the problem: it only works when all of the grades are filled in, if any are blank cells the average box goes blank too. I have tried various ideas AVERAGE.... doing it mathematically (A2+A3)/4 and COUNTIF etc. but this one is a bit beyond me! Any help more than welcome! Copy attached

Spencer101

Quote:

Originally Posted by Russell Pearce (Post 1604998)
Can anyone help am lost with this one!

I have a tracking spreadsheet for student test results. Teachers enter a letter grade and this is converted via VLOOKUP to a number in the next (hidden) column. Some of the letter grades come via linked cells from another sheet in the same workbook. All this works fine... .. I want to have a running average of the results which then goes red or green based on a target grade - again this works fine BUT here is the problem: it only works when all of the grades are filled in, if any are blank cells the average box goes blank too. I have tried various ideas AVERAGE.... doing it mathematically (A2+A3)/4 and COUNTIF etc. but this one is a bit beyond me! Any help more than welcome! Copy attached

Hi Russell,

You'll be glad to hear this is easy enough to sort out.

Taking for example the formula you have in cell I2, change it from =VLOOKUP(H2,AV!$A$1:$B$6,2,FALSE) to =IFERROR(VLOOKUP(H2,AV!$A$1:$B$6,2,FALSE),"") and copy to all relevant cells (Purple ones in columns G to X). That should solve the problem.

Let me know if it doesn't, but it did when I tested it.

Russell Pearce

Quote:

Originally Posted by Spencer101 (Post 1604999)
Hi Russell,

You'll be glad to hear this is easy enough to sort out.

Taking for example the formula you have in cell I2, change it from =VLOOKUP(H2,AV!$A$1:$B$6,2,FALSE) to =IFERROR(VLOOKUP(H2,AV!$A$1:$B$6,2,FALSE),"") and copy to all relevant cells (Purple ones in columns G to X). That should solve the problem.

Let me know if it doesn't, but it did when I tested it.


Thank you so much! Perfect!!!!!

Russell

Spencer101

Quote:

Originally Posted by Russell Pearce (Post 1605014)
Thank you so much! Perfect!!!!!

Russell

Glad to help mate. :)


All times are GMT +1. The time now is 10:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com