Sum number of letters between two dates

olivergs1982

New Member
Hello everyone, long time user of the forum, irregular poster as I can almost always find what I want though can't for some reason with this one.

I need to sum how many numbers or letters that are between two variable dates on a calendar. Dates are on row 3
AG3:ON3 have my dates from 01/10/20, 02/10/20, etc. to the end of the calendar.
Row 14 has an "h" which correspond to each date above that needa the "h" in, the rest are blank.
I need to sum how many "h" there are between a variable start and end date.
G14 has start date of 07/10/20, F14 has end date of 31/01/20, though as stated, both are variable.

Thanks all

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

AlanY

Well-known Member
assuming F14 is the start date and G14 is the end date

=COUNTIFS(AG14:ON14,"h",AG3:ON3,">="&F14,AG3:ON3,"<="&G14)

etaf

Well-known Member
COUNTIFS()
=COUNTIFS(\$AG\$14:\$ON\$14,"H",\$AG\$3:\$ON\$3,">="&\$F\$14,\$AG\$3:\$ON\$3,"<="&\$G\$14)

Example in different Rows/Columns, just so you can see it in operation

Book1
ABCDEFGHIJKLMNO
11/1/201/2/201/3/201/4/201/5/201/6/201/7/201/8/201/9/201/10/20
2HHHHHHHH1/3/201/6/203
Sheet1
Cell Formulas
RangeFormula
O2O2=COUNTIFS(A1:J1,">="&M2,A1:J1,"<="&N2,A2:J2,"H")

olivergs1982

New Member
Can't get it to work for me Uploadded a redacted view of the sheet. I need AF10 to give me the total od all cells with letter H, from everything after 27/09/20 to 31/10/20.

Attachments

113.8 KB · Views: 6

etaf

Well-known Member

what formula have you used in AF10

etaf

Well-known Member
IGNORE _ different user as SPAM

olivergs1982

New Member
I actually think I've manged to get it to work. I'm using a google sheet as well as excel (don't ask me why, just my weird way of working) and when I basically started from scratch and put everything back into it, it works! Thank you so very much for your help!

etaf

Well-known Member
glad you managed to resolve the formula and get it working

Replies
4
Views
226
Replies
2
Views
73
Replies
4
Views
170
Replies
4
Views
70
Replies
1
Views
149

1,127,395
Messages
5,624,479
Members
416,029
Latest member
CSM1

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.

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

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