John Wilkinson
asked on
excel formula to get start of year
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.
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.
currentMonth needs to be a valid date, and not just text.
Please try =Date(year(today()),1,1)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect! Thanks.