A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

create datevalue yyywwd



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2004, 04:09 PM
jocke
external usenet poster
 
Posts: n/a
Default create datevalue yyywwd

is there any way to create the datevalue yyyywwd (year, weeknr, day of
week) from today's date? in vba code or/and in a spreadsheet
tia

/jocke


---
Message posted from http://www.ExcelForum.com/

  #2  
Old June 15th, 2004, 04:22 PM
Andy B
external usenet poster
 
Posts: n/a
Default create datevalue yyywwd

Hi

Do you mean something like:
=TEXT(A1,"yyyy")&WEEKNUM(A1)&WEEKDAY(A1)
For today, that is 2004253
The WEEKNUM and WEEKDAY functions do have extra arguments which you should
check out, in case you need to use them

--
Andy.


"jocke " wrote in message
...
is there any way to create the datevalue yyyywwd (year, weeknr, day of
week) from today's date? in vba code or/and in a spreadsheet
tia

/jocke


---
Message posted from http://www.ExcelForum.com/



  #3  
Old June 16th, 2004, 12:47 AM
Dave Peterson
external usenet poster
 
Posts: n/a
Default create datevalue yyywwd

You may want to read Chip Pearson's notes on weeknumber:
http://www.cpearson.com/excel/weeknum.htm



"jocke " wrote:

is there any way to create the datevalue yyyywwd (year, weeknr, day of
week) from today's date? in vba code or/and in a spreadsheet
tia

/jocke

---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.