Excel Formula or VBA to convert year, month data to actual date -


i have 2 columns (year , month). sample data of year column 2015 @ cell a2. sample data of month column b jun @ cell b2. convert these data date format in column c '2015-06-00` @ cell c2. there formula or excel vba this?

first off, 2015-06-00 31-may-2015. if supply 0 day-of-the-month, last day of previous month. typically set first day of month. use date function 1 day_num parameter or datevalue function if stringing text-that-looks-like-a-date.

=datevalue(b2 & " 1, " & a2) 

with 3 letter month in b2, have translate numerical month if opt date function.

=date(a2, lookup(b2, {"apr","aug","dec","feb","jan","jul","jun","mar","may","nov","oct","sep"}, {4,8,12,2,1,7,6,3,5,11,10,9}), 1) 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -