Countif not returning the correct amount

jamesaplant77

New Member
Joined
Apr 22, 2015
Messages
16
I have been looking through all the posts and can't find anything that fixes my formula.

I have dates in range P5:P88 and some of the cells are blank.

I am also trying to bring back the dates, that are equal to today or greater by 30 days based on the values in range F5:F88

Here it is:

=COUNTIFS('Portfolio Data'!F5:F88,"Contractor",'Portfolio Data'!P5:P88,"="&Today()+30

Would really appreciate some help!!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Thanks Fishboy, but this formula is returning a value of 0, when it should be 28.

=COUNTIFS('Portfolio Data'!F5:F88,"Contractor",'Portfolio Data'!P5:P88,">="&Today()+30

I need the formula to count dates that are equal to today but aren't greater than 30 days from todays date.
 
Upvote 0
Thanks Fishboy, but this formula is returning a value of 0, when it should be 28.

=COUNTIFS('Portfolio Data'!F5:F88,"Contractor",'Portfolio Data'!P5:P88,">="&Today()+30

I need the formula to count dates that are equal to today but aren't greater than 30 days from todays date.
My bad, that would be equal to or LESS THAN today +30

Swap the >= for a <= and see what that does.
 
Upvote 0
Nice one Fishboy, that works, what if I wanted to count if they were greater than 30 but less than 60 from today?

That is my next challenge!!
 
Upvote 0
Nice one Fishboy, that works, what if I wanted to count if they were greater than 30 but less than 60 from today?

That is my next challenge!!
Glad you got it working.

With regards to your newer query, I *believe* it should be something like this:

=COUNTIFS('Portfolio Data'!F5:F88,"Contractor",'Portfolio Data'!P5:P88,"<="&Today()+30,Portfolio Data'!P5:P88,">="&Today()+60)
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,039
Members
449,063
Latest member
ak94

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