Link to home
Start Free TrialLog in
Avatar of John Wilkinson
John WilkinsonFlag for United States of America

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.
Avatar of twohawks
twohawks
Flag of United States of America image

currentMonth needs to be a valid date, and not just text.
Please try =Date(year(today()),1,1)
ASKER CERTIFIED SOLUTION
Avatar of VenuChakkoth
VenuChakkoth
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of John Wilkinson

ASKER

Perfect! Thanks.