google spreadsheet - Selecting just Month and Year from date string (mm/dd/yyy) excel -


so have column of dates ranging year 2014-2016 in format mm/dd/yyyy.

    date     8/7/2014     8/11/2014     ...     600 lines, including of year 2015, , 2016 

i looking have formula count number of occurrences of cells month = 1 , year = 2015, day not matter. data populate table elsewhere in spreadsheet. can tell me number of occurrences of january's years, using:

=arrayformula(sum(--(month(d2:d) = 1))) 

and restrict range in column d year 2015, im trying make automated , self updating. having select month , year ideal. try , add month formula ive tried many things without success.

=sumif(d2:d,(and(year(d2:d) = 2015, month(d2:d) = 1))) =arrayformula(sumif(--(month(d2:d) = 1),year(d2:d) = 2015)) 

any or suggestions appreciated. thank you!

try this:

=arrayformula(sum((--month(d2:d) = 1)*(--year(d2:d)=2015))) 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -