Counting cells with specific content for a rolling date range

epyzdrh

New Member
Joined
Jul 30, 2008
Messages
43
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm trying to put together a formula that will count the total number of "b",, "t" or "v" are in a row based on a rolling 180 days starting from today and 180 days into the future. If the dates are in row A as per the picture I thought I could use a countifs referencing that first and keep that fixed for each row? Any thoughts?
 

Attachments

  • Excel Q.png
    Excel Q.png
    8.3 KB · Views: 37

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
=COUNTIFS(F2:WQ2,">=TODAY()",F2:WQ2,"<=TODAY()+180") this is my starting point, would the B, t and v just then be additional criteria?
 
Upvote 0
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’)

would the B, t and v just then be additional criteria?
Yes they would, but they need to done as an or like
Excel Formula:
=SUM(COUNTIFS($F$2:$WQ$2,">="&TODAY(),$F$2:$WQ$2,"<="&TODAY()+180,F3:WQ3,{"b","t","v"}))
This may need array entry depending on your version of Excel.
 
Upvote 0
Solution
Thankyou that works perfectly. Will do, just reactivated my account today so will update it now.
 
Upvote 0

Forum statistics

Threads
1,214,989
Messages
6,122,622
Members
449,093
Latest member
catterz66

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