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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,214,971
Messages
6,122,517
Members
449,088
Latest member
RandomExceller01

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