Shortening the Countifs formula.

countryfan_nt

Well-known Member
Joined
May 19, 2004
Messages
758
Hello friends, Hope all is well!

Is there a shorter version to make the below formula?

it suppose to give a 1, if any result showed up in a certain month, and provided that the amount related is above 4999.

1. Basically, the point is to show the number of months that had any activity or results above 4999.
2. The formula is too long, can it be shortened?

Code:
=SUM(IF(COUNTIFS($B$4:$B$13,{"Jan"},$C$4:$C$13,">4999")>0,1,0)+IF(COUNTIFS($B$4:$B$13,{"Feb"},$C$4:$C$13,">4999")>0,1,0)+IF(COUNTIFS($B$4:$B$13,{"Mar"},$C$4:$C$13,">4999")>0,1,0)+IF(COUNTIFS($B$4:$B$13,{"Apr"},$C$4:$C$13,">4999")>0,1,0)+IF(COUNTIFS($B$4:$B$13,{"May"},$C$4:$C$13,">4999")>0,1,0)*IF(COUNTIFS($B$4:$B$13,{"Jun"},$C$4:$C$13,">4999")>0,1,0)+IF(COUNTIFS($B$4:$B$13,{"Jul"},$C$4:$C$13,">4999")>0,1,0)*IF(COUNTIFS($B$4:$B$13,{"Aug"},$C$4:$C$13,">4999")>0,1,0)+IF(COUNTIFS($B$4:$B$13,{"Sep"},$C$4:$C$13,">4999")>0,1,0)+IF(COUNTIFS($B$4:$B$13,{"Oct"},$C$4:$C$13,">4999")>0,1,0))

Thank you very much in advance!
 
Last edited:

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
janfebmaraprmayjunjulyaugsepoctnovdec
1000 5200450042006666 345
2
=SUMPRODUCT(($F$8:$Q$8>4999)*1)

<colgroup><col width="64" span="18" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
col F
janfebmaraprmayjunjulyaugsepoctnovdec
row 8 1000 5200450042006666 345
2
=SUMPRODUCT(($F$8:$Q$8>4999)*1)

<colgroup><col width="64" span="19" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
Try:

=SUM(COUNTIFS($B$4:$B$13,{"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"},$C$4:$C$13,">4999"))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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