DATEVALUE Logical Test

Drewmyster

Board Regular
Joined
May 16, 2007
Messages
151
Office Version
  1. 365
Platform
  1. Windows
Hi there, please can someone help me fix this formula which only returns a FALSE error.

=IF($A:$A<DATEVALUE("01/04/2011"),$B:$B>DATEVALUE("30/04/2011"),COUNTIF($C:$C,">30"))

As you can see, I wish to check data before, and after, a certain date, then count the number of occurances above 30.

Thanks.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try eg:

=SUMPRODUCT(--(A1:A1000 < DATEVALUE("01/04/2011")),--(B1:B1000 > DATEVALUE("30/04/2011")),--(C1:C1000 > 30))

Adjust the range references to suit, but make sure that they all have the same number of rows and avoid using entire columns. If you have Excel 2007 or above you can use the COUNTIFS function.
 
Upvote 0
Hi there, please can someone help me fix this formula which only returns a FALSE error.

=IF($A:$A←DATEVALUE("01/04/2011"),$B:$B→DATEVALUE("30/04/2011"),COUNTIF($C:$C,">30"))

As you can see, I wish to check data before, and after, a certain date, then count the number of occurances above 30.

Thanks.

Sorry, I realised afterwards that the full formula was not shows because this forum won't accept the "<" AND ">" keys, so I've replaced with arrows so you can see the full formula and what it is I'm trying to achieve.

I hope this makes it clearer.

Will the SUMPRODUCT formula you suggested still be able to acheive this?
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,786
Members
452,942
Latest member
VijayNewtoExcel

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