count specific value in column "x" based on date renge in column "y"

Nick van Staden

New Member
Joined
Dec 6, 2017
Messages
18
Office Version
  1. 365
Platform
  1. Windows
need assistance on a formula to calculate total tally on value "1" in column "B:B" (for example) if column A:A (Date) falls within a specific date range.

I have found a formula to calculate the total sum of column "B:B" however cant find a way to restrict the formula to only calculate based on a specific value.

=SUMIFS(B:B,A:A,">="&C3,Successful!B:B,"<="&D3)

C3=Start date range
D3=End date range
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Substitute COUNTIFS for SUMIFS...

=COUNTIFS(Successful!A:A,">="&C3,Successful!B:B,"<="&D3,Successful!B:B,E3)

This counts the occurrences of E3 in column B when the dates in column A are between C3 and D3.
 
Last edited:
Upvote 0
Thanks this is great however for some reason is not calculating the total matches within the date range (it is giving me the total count of "1" in column "B")?

=COUNTIFS(A:A,">="&C3,B:B,"<="&D3,B:B,"1")

For example in column "B" I have the values "1","2","3","4","5",....

The value "1" from 2018-01-01 to 2018-01-31 only appears twice (so I'm looking for a formula to return 2)
 
Upvote 0
If column A is your date column, column B must equal to 1, C3 =
2018-01-01, and D3 =
2018-01-31, then:

=COUNTIFS(A:A,">="&C3,A:A,"<="&D3,B:B,1)
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,730
Members
448,987
Latest member
marion_davis

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