Countifs using equal to or greater than a date in a cell

KellyZ

New Member
Joined
Jul 22, 2011
Messages
2
I have Excel 2010 and am trying to change a formula I have that is currently working. The formula that is working is:

=COUNTIFS($B$2:$B$13957,">=4/22/2011",$AD$2:$AD$13957,$AE$2)

What I want to change is a couple things. I want to count the entire columns of B and AD and I want to enter the date into its own column so that I don't have to retype the date for all 368 rows that are using this formula since the date is different for each row. So I did this:

=COUNTIFS($B$2:$B$1000000,">=AP2",$AD$2:$AD$1000000,$AE$2)

but it doesn't seem to recognize AP2 (which is where I put the date 4/22/11). I've tried putting the quotation marks just around the >= and that didn't work, and I tried taking them out all together and that didn't work either. It only seems to recognize the cell as a cell when it is in there by itself but that would only count records with a date equal to AP2 and not greater than. Any ideas??
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I have Excel 2010 and am trying to change a formula I have that is currently working. The formula that is working is:

=COUNTIFS($B$2:$B$13957,">=4/22/2011",$AD$2:$AD$13957,$AE$2)

What I want to change is a couple things. I want to count the entire columns of B and AD and I want to enter the date into its own column so that I don't have to retype the date for all 368 rows that are using this formula since the date is different for each row. So I did this:

=COUNTIFS($B$2:$B$1000000,">=AP2",$AD$2:$AD$1000000,$AE$2)

but it doesn't seem to recognize AP2 (which is where I put the date 4/22/11). I've tried putting the quotation marks just around the >= and that didn't work, and I tried taking them out all together and that didn't work either. It only seems to recognize the cell as a cell when it is in there by itself but that would only count records with a date equal to AP2 and not greater than. Any ideas??
Try it like this...

=COUNTIFS($B$2:$B$1000000,">="&AP2,$AD$2:$AD$1000000,$AE$2)
 
Upvote 0

Forum statistics

Threads
1,216,107
Messages
6,128,866
Members
449,475
Latest member
Parik11

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