+ Reply to Thread
Results 1 to 3 of 3

only including non-empty cells in the formula

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    Nijmegen, the Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    6

    only including non-empty cells in the formula

    Hi there,

    I'm a teacher and I prepared a worksheet in which I keep track of the kids' marks during a year.
    Every test has a weight (row 3). In cell AA3 there is the total weight of all the given tests. I adjust the total weight after every test.
    In the last column I want the worksheet to show the average mark of each student. So the sum of every test mark multiplied by its corresponding weight divided by the total weight of the tests.

    This is my formula in the last column:
    =($H$3*H4+$I$3*I4+$J$3*J4+$K$3*K4+$L$3*L4+$M$3*M4+$N$3*N4+$O$3*O4+$P$3*P4+$Q$3*Q4+$R$3*R4+$S$3*S4+$T$3*T4+$U$3*U4+$V$3*V4+$W$3*W4+$X$3*X4+$Y$3*Y4+$Z$3*Z4)/$AA$3


    But not all the prepared test columns are or will be filled with marks, as there are probably less tests in a year. So, I only want to include the non-empty columns in calculating the average mark.... Can anyone help me with that?

    Thanks!
    Jeroen

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: only including non-empty cells in the formula

    You probably shall use SUMPRODUCT
    check something like:
    Please Login or Register  to view this content.
    PS. Worth noticing suggestion in http://www.excelforum.com/forum-rule...rum-rules.html
    Post a WORKBOOK. Nobody wants to type data from a picture or paste text from your post into a spreadsheet as a prelude to helping. To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

  3. #3
    Registered User
    Join Date
    07-16-2013
    Location
    Nijmegen, the Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: only including non-empty cells in the formula

    Thanks, it works! Very simple...

    Sorry for posting the forumula. I thought it was more straight-forward than sending the whole workmap.

    Cheers,
    Jeroen

+ 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] Pick Random Value from a Range (not including empty Cells)
    By ghoneim in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2013, 04:46 AM
  2. Replies: 5
    Last Post: 01-12-2013, 12:16 AM
  3. The rank of average ranks excluding empty cells but including their average.
    By Terminal45 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2012, 03:44 AM
  4. Excel 2007 : Sorting including empty cells
    By Domesticus in forum Excel General
    Replies: 0
    Last Post: 03-01-2011, 05:20 PM

Tags for this Thread

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