+ Reply to Thread
Results 1 to 3 of 3

Exclude a single cell from a calculation

  1. #1
    Registered User
    Join Date
    06-28-2010
    Location
    Bella Coola, British Columbia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Exclude a single cell from a calculation

    I use a gradebook template to calculate student’s marks. It takes the number of points on an assignment and divides them by the total points.

    The formula is
    =(IF(SUM(G15:AG15),ROUND(SUM(G15:AG15)/$H$10,2),""))

    How would I reprogram this formula to exclude a specific cell say (J15)

    Thanks for the help

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Exclude a single cell from a calculation

    Maybe:

    =IF(SUM(G15:AG15)-J15,(ROUND(SUM(G15:AG15)-J15)/$H$10,2),"")


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Exclude a single cell from a calculation

    Or if you'll looking to not include the minimum grade for example

    =IF(SUM(G15:AG15),(ROUND(SUM(G15:AG15)-MIN(G15:AG15))/$H$10,2),"")

    Or, you could preceed the input in that cell with a ' so it reads as text and will not be included in the sum so in J15
    '85 instead of 85
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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