ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Adding month and year to form date (https://www.excelbanter.com/excel-discussion-misc-queries/56095-adding-month-year-form-date.html)

Dino

Adding month and year to form date
 
Anyone know of a way to combine a cell which contains a month name (July) to
a cell that contains a year (2006) which results in a date 6/1/06?

Thanks,
Dino



Dave Peterson

Adding month and year to form date
 
=datevalue(a1&" 1, " & a2)
format as a date
(a1 holds the month name, a2 holds the year)

(But July is usually the 7th month <vbg.)

Dino wrote:

Anyone know of a way to combine a cell which contains a month name (July) to
a cell that contains a year (2006) which results in a date 6/1/06?

Thanks,
Dino


--

Dave Peterson

Dino

Adding month and year to form date
 
Thanks Dave. I'm a blond...what can I say? ;)


"Dave Peterson" wrote in message
...
=datevalue(a1&" 1, " & a2)
format as a date
(a1 holds the month name, a2 holds the year)

(But July is usually the 7th month <vbg.)

Dino wrote:

Anyone know of a way to combine a cell which contains a month name (July)
to
a cell that contains a year (2006) which results in a date 6/1/06?

Thanks,
Dino


--

Dave Peterson





All times are GMT +1. The time now is 07:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com