Counting the amount of days

blackgolf

Board Regular
Joined
Mar 1, 2012
Messages
65
Office Version
  1. 2021
Platform
  1. Windows
Hi
I would appreciate help with the following as none of my sumproduct, countif etc is working;

In Column A I have a list of days as below;
2012/06/02
2012/06/03
2012/06/04
2012/06/04
2012/06/04
2012/06/05
2012/07/02
2012/07/03
etc.
In the same row of each I have Column L with a 6 and Column M with 2012 (the month and year)
So I want to count the amount of days in Column A when there is a 6 in Column L and 2012 in Column M.
It MUST NOT count the duplicate day, like 2012/06/04 must only be counted once. It must also not count 2012/07/02 and 2012/07/03.

Thanks in anticipation.
Regards
Chris
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
=MAX(IF((MONTH(A1:A8)=6)*(YEAR(A1:A8)=2012),A1:A8))-MIN(IF((MONTH(A1:A8)=6)*(YEAR(A1:A8)=2012),A1:A8))+1 array entered maybe
 
Upvote 0

Forum statistics

Threads
1,206,971
Messages
6,075,925
Members
446,170
Latest member
zzzz02

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