Sumif for a whole row of data

SM mechanic

New Member
Joined
Sep 12, 2017
Messages
33
Office Version
  1. 2007
Platform
  1. Windows
Row 1 has 12 columns for months of the year. Row 2 is a number, which equates to a score. from 1.00 to 5.00 which is the score for the whole district. Row 3 is our score, from 1.00 to 5.00
I would like to have 2 cells that performs a count if type function, 1 cell would track the number of times we were above the district number, and the other cell would total up the number of times we were at or below the district score.

So for example, and the end of the year once I have all the months filled in, one cell will show we beat the district score 8 months, and we equaled or missed the district score 4 times.

I can do it for one month, I can't figure out how to do it for multiple months.

Here is an example of what it would look like on my sheet. The cells that calculate are the ones under the Won, Lost cells

Hope this makes sense, for what I am trying to do.


JanFebMarAprMayJunJulAugSeptOctNovDecWonLost
District
4.88​
4.924.864.354.85
Store
4.87​
4.914.874.524.85
2​
3​
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Fluff.xlsm
ABCDEFGHIJKLMNOP
1JanFebMarAprMayJunJulAugSeptOctNovDecWonLost
2District4.884.924.864.354.85
3Store4.874.914.874.524.8523
Data
Cell Formulas
RangeFormula
O3O3=SUMPRODUCT(--(B3:N3>B2:N2))
P3P3=COUNT(B3:N3)-O3
 
Upvote 0
Solution
I updated my account details. My apologies for not having them filled out. Makes sense anyone offering help would need that info.
 
Upvote 0
Thanks for that. (y)
Did the formulae I suggested work?
 
Upvote 0
Thank you Fluff, that worked perfectly. I did click the "solved" button. Took a few minutes for me to put it into my sheet. But it is working exactly like I was looking for.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0
Glad to help & thanks for the feedback.
Can your formulas be amended to return a blank cell if there is a zero in it?

I tried this, but I am getting a error message

=if(COUNT(B11:N11)-O11)=0,"",count(B11:n11)-O11))
 
Upvote 0
You can use a custom format on the cells with 0;-0;;@ which will display a blank cell instead of 0
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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