excel - Changing String input data into week / month format -
excel - Changing String input data into week / month format -
i'm not sure if possible thought inquire see if 1 may have solution.
issue: have macro user inputs date string (e.g. 021513) in input box. in string format it's used open file (string @ end of file name).
from string (e.g. 021513) need derive next in 2 separate fields:
week period (e.g. week: 11th - 15th). month (e.g. february).any help or thoughts appreciated.
ciaran
you can excel formulas:
assuming string cell a1, utilize next formulas:
b1 (date):=date(right(a1,2)+2000,left(a1,2),mid(a1,3,2)) c1 weekday: =weekday(b1,2) - homecoming 1 monday, 2 tuesday, etc. d1 start of week: =b1-c1+1 e1 end of week: =d1+4 f1 month: =text(b1,"mmmm") string excel date excel-vba excel-2007
Comments
Post a Comment