Counting two criteria - IF figure= and if date is older than 30 days.

Rhys Lewis

New Member
Joined
Sep 27, 2017
Messages
3
Hi all,

I am trying to create a formula to count if cells D6:100 = 0 and if the date in cells B6:100 are older than 30 days, but I cant seem to figure this out.

I am using the following formula but this is just giving me "VALUE".

=SUM(IF(D6:D100="0",IF(B6:B100=">"&TODAY()-30,1)))

I have also tried -

=COUNTIF(D6:D100="0",B6:B100=">"&TODAY()-30,1)))

Could anyone assist please!

Many thanks!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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