excel match year and month in array -


i have array of dates in column match against on year , month.

           b       c        d       e      f   g       h                j 1   date    name    name    march   april   may june    july    august  september 2   13-04-2016  lars    lars    0   0   0   0   0   0   0 3   04-03-2016  brian   brian   0   0   0   0   0   0   0 4   01-01-2016  lars    erik    0   0   0   0   0   0   0 5   10-06-2016  erik    knut    0   0   0   0   0   0   0 6   31-07-2016  erik    soren   0   0   0   0   0   0   0 

i have tried $a:$a;"="&date(year(today());3;""); ;3; month of march. evaluates 0 on accounts.

so how adapt make count number of dates matching year , month (d2) lars (c2) in a:a?

anyone.

put in d2 (and adapt needed)

    =if(date(year(today()),3,1)=date(year(a3),month(a3),1),1,0) 

=if( --start if

date(year(today()),3,1) -- current year, 3rd month, 1st day

= --equals (for if statement)

date(year(a3),month(a3),1) -- year & month cell a3 & 1st day

,1,0) -- print '1' if true else print '0'


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -