excel formula to get start of year
Posted on 2011-10-06
I have a cell named currentMonth. It contains a date, ie, "7/1/2011".
I want to place a formula in another cell, such that this cell will contain the value Jan 1 for the year of currentMonth. So in this example, the second cell will contain the value "1/1/2011". This is kind of what I mean, although it doesn't work:
="1/1/" + YEAR(currentMonth)
This second cell will also need to be formatted as a date.