Simple SUM

BOZ12345

New Member
Joined
Jul 15, 2019
Messages
2
Hi Team,

I'm having a (what I think) very simple SUM issue, but it's a Monday and I can't work it out!

Effectively, I am trying to do a COUNTIF and SUM in one. My COUNTIF is as follows (and works, no issues there):

=SUM(COUNTIF(INDEX(Data!$F:$AO,,A2),"Strongly Agree"))+(COUNTIF(INDEX(Data!$F:$AO,,A2),"Agree"))+COUNTIF(INDEX(Data!$F:$AO,,B2),"Strongly Agree")+(COUNTIF(INDEX(Data!$F:$AO,,B2),"Agree"))+COUNTIF(INDEX(Data!$F:$AO,,C2),"Strongly Agree")+(COUNTIF(INDEX(Data!$F:$AO,,C2),"Agree"))

Essentially, I want to divide this by three, but when I add "/3" to the end, it only divides the last sum by 3. What am I missing?

Thanking you in advance.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Re: Simple SUM help

Enclose your formula with brackets and then add the /3

=(SUM(COUNTIF(INDEX(Data!$F:$AO,,A2),"Strongly Agree"))+(COUNTIF(INDEX(Data!$F:$AO,,A2),"Agree"))+COUNTIF(INDEX(Data!$F:$AO,,B2),"Strongly Agree")+(COUNTIF(INDEX(Data!$F:$AO,,B2),"Agree"))+COUNTIF(INDEX(Data!$F:$AO,,C2),"Strongly Agree")+(COUNTIF(INDEX(Data!$F:$AO,,C2),"Agree")))/3
 
Upvote 0
Re: Simple SUM help

Thank you Dave, that is exactly what I needed on a Monday afternoon!

Cheers to you.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top