Select Quarter for COUNTIFS

garyca

New Member
Joined
May 25, 2015
Messages
3
My database has a column for initial date from which Iidentify the YEAR and QUARTER. I use the COUNTIFS function where one criteriais QUARTER and the range is 3 for Q3. IfI want to look at the data for another QUARTER like Q1 to Q3, I have to changethe range to =<3. The report has over30 COUNTIFS lines so changing theformula from 3 to =<3 is a pain but doable. But for the other managers,they can’t make this change because the document is protected. How can I add adrop box, check box, etc so the managerscan select the QUARTER(S) and the COUNTIFS equations change accordingly?<o:p></o:p>
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi, welcome to the board.

The criteria for COUNTIFS can be stored by themselves in a cell, for example

=countifs(a1:a10,$b$1,........and so on.
 
Upvote 0
Thank you.I use pivot tables extensively but not for this situation. The only variable I want to change is the quarter. Can a selection from a drop box change part of a countifs formula?
 
Upvote 0
Thank you. This may be the answer. For quarters 1 2,3 and 4 this works but if I want Q1-Q3 then the criteria is =<3. Will your approach still work?
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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