+ Reply to Thread
Results 1 to 4 of 4

Foumulas working off incomplete figures

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Foumulas working off incomplete figures

    Evening,

    I'm trying to set up a grade template sheet at the start of the year. The problem is as the year goes on, more students arrive so it is causing me problems with the formulas.

    On my spreadsheet in R1 I want to work out the average score for the results in column P. So I'd usually use the formula =Average(P2:P8), however as I know more students will arrive I'm trying to get it to look all the way down the column.

    However if I try anything like =Average(P2:P400) or =Average(P:P) it comes up as an error. Is there any way around this please?

    Many thanks
    Attached Files Attached Files
    Last edited by Cmorgan; 06-02-2011 at 05:17 PM.

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Foumulas working off incomplete figures

    Hi Cmorgan;

    Since you're using Excel 2010, they've introduced an Averageif function. Assuming you don't want to penalize people for tests they weren't around for, you can do something along the lines of
    =AVERAGEIF(P2:P8,">0")

    Scratch that... only read the question, and did not review the attached spreadsheet... I will rework with a better, more fitting answer...

    Alan beat me to it!
    The average function will not count the null values from the If iserror code function
    Last edited by Miraun; 06-02-2011 at 04:10 PM. Reason: Misread the question... reworking my answer
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Foumulas working off incomplete figures

    Put this in P2 and copy down

    =IF(ISERROR(CODE(N2)-CODE(O2)),"",(CODE(N2)-CODE(O2)))

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Foumulas working off incomplete figures

    Excellent, thanks

+ 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