[Solved] SUM IF multiple selections

Discuss the spreadsheet application
Post Reply
pherriot
Posts: 54
Joined: Wed Mar 27, 2019 1:06 pm

[Solved] SUM IF multiple selections

Post by pherriot »

Hi People.
A simple quality evaluation form with 13 questions.
Upon scoring Agents, there will be either 10, 11, 12 or 13 questions to be marked on. This means the calculation I use to provide averages as a percentage is off.

Problem cell....
CELL D43 = FORMULA = "SUM(D43/130)"
So in summary I need a way to change the calculation from =SUM(D43/130) to
=SUM(D43/120)
=SUM(D43/110)
=SUM(D43/100) depending on whether cells D7, D25 and D28 have a selection of "N/A".

I feel I need something like below but am unsure....
IF only CELL D7 = "N/A" then =SUM(D43/120)
IF only CELL D25 = "N/A" then =SUM(D43/120)
IF only CELL D28 = "N/A" then =SUM(D43/120)
IF 2 cells = "N/A" then =SUM(D43/110)
IF 3 cells = "N/A" then =SUM(D43/100)
Forgive my ignorance, Im learning.
Cheers.
Paul.
Attachments
Quality Agent TEMPLATE - latest tester.ods
Sheet "Calls Sheet 1"
(33 KiB) Downloaded 99 times
Last edited by pherriot on Thu May 09, 2019 8:37 am, edited 1 time in total.
OpenOffice 3.1 on Windows Vista
FJCC
Moderator
Posts: 9283
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: SUM IF multiple selections

Post by FJCC »

It seems you want this formula in D47

Code: Select all

=D43/((13- COUNTIF(D4:D41;"N/A"))*10)
The COUNTIF() will return the number of cells that contain N/A in the range D4:D41.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
RusselB
Moderator
Posts: 6646
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: SUM IF multiple selections

Post by RusselB »

I was going to suggest the SUMIFS function, then I realized that the OP is using division, not summation... still might work, but FJCC's suggestion appears to be on the money.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
pherriot
Posts: 54
Joined: Wed Mar 27, 2019 1:06 pm

Re: [SOLVED] SUM IF multiple selections

Post by pherriot »

That works amazing FJCC.
I can see I have some learning to do with regard to ranges and formula efficiency. My attempts are long drawn out strings which are then difficult to read.

Thanks FJCC.
And RusselB.
Cheers lads.
P
OpenOffice 3.1 on Windows Vista
Post Reply