Count occurences of

trebor1956

Board Regular
Joined
Jul 2, 2015
Messages
100
Office Version
  1. 2013
Platform
  1. Windows
My s/sheet has a whole years worth of dates in row 2, O2:NL2. Todays date is in A1 Today()
In the row 3 there can be "H" to indicate holiday. I would like a formula to count the number of "H" between O2 and the cell in row 2 that equals A1.

Hope you understand and can help,

Thank you
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Excel 2010
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
17/19/2018
221/1/20182/14/20183/30/20185/13/20186/26/20188/9/20189/22/201811/5/201812/19/20182/1/20193/17/20194/30/20196/13/2019
3HHHHH
Sheet8
Cell Formulas
RangeFormula
A1=TODAY()
A2=COUNTIFS($O$2:$AA$2,"<="&A1,$O$3:$AA$3,"H")
 
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