Sum number of letters between two dates

olivergs1982

New Member
Joined
Jun 29, 2018
Messages
9
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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
assuming F14 is the start date and G14 is the end date

=COUNTIFS(AG14:ON14,"h",AG3:ON3,">="&F14,AG3:ON3,"<="&G14)
 
Upvote 0
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")
 
Upvote 0
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

  • Spreadsheet.png
    Spreadsheet.png
    113.8 KB · Views: 9
Upvote 0
what formula have you used in AF10
 
Upvote 0
IGNORE _ different user as SPAM
 
Upvote 0
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!
 
Upvote 0
glad you managed to resolve the formula and get it working
 
Upvote 0

Forum statistics

Threads
1,214,638
Messages
6,120,676
Members
448,977
Latest member
moonlight6

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