+ Reply to Thread
Results 1 to 3 of 3

Calculate total based on cell values.

  1. #1
    Registered User
    Join Date
    02-05-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    2

    Calculate total based on cell values.

    Hi all,

    I'm trying to put to gether a calculator for a medical outcome measure called the SPADI.

    It has 5 questions, rated 1-10 (total possible = 50) and needs to be calculated as:

    Total PAIN score: Value obtained / 50 x 100 = %

    If someone misses a question, we must drop the total possible to 40.

    I tried using sumif but this didn't quite work :

    =SUMIF(D8:H8, ">=0", D8:H8) This only gives me the total. Still checking the helpfiles to see if there's a function I've missed!

    Thanks,

    Adam

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: Calculate total based on cell values.

    May be...
    =SUMIF(D8:H8, ">=0", D8:H8) /COUNTIF(D8:H8,">=0")* 10 * 100
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    02-05-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    2

    Re: Calculate total based on cell values.

    Excellent, thank you! Just had to tweak it to :

    =SUM(D6:H6)/(COUNTIF(D6:H6,">=0")*10)*100

    otherwise didn't give me the value I was expecting.

+ 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] Formula To Calculate Total Excluding Specific Text Based In Another Cell
    By rahul_ferns76 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2017, 10:12 PM
  2. Replies: 3
    Last Post: 08-29-2017, 06:37 PM
  3. Calculate cumulative total based on given number in cell
    By channguyen in forum Excel General
    Replies: 5
    Last Post: 10-02-2015, 04:44 AM
  4. sum total of values in cell based on string match in the same cell
    By BlueSmurf in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-21-2015, 05:13 AM
  5. Calculate total based on one cell value against another
    By mdshotgun in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-30-2013, 07:37 AM
  6. [SOLVED] Calculate/sum multiple values in each cell in a range then replace with the total of every
    By CharlieAziz in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-03-2012, 11:08 PM
  7. Replies: 1
    Last Post: 07-06-2011, 10:53 AM

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