Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default work with strings/numbers and dates

Hello (again),

I am trying to define a cell value as a fabricated number derived fro
today's date.

For example:

I'd like to set a cell's contents equal to "20040504.01", derived fro
todays date (2004/05/04) and a running number 01.

I'd like to start with the TODAY() function and somehow maniuplate th
characters into a number and tack on a two digit number to the end as
decimal.


Hmmm.

Thanks so much... You guys rock

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default work with strings/numbers and dates

Hi William,

Try:

aStr = Format(Now, "yyyymmdd") & ".01"

---
Norman

"William DeLeo " wrote in
message ...
Hello (again),

I am trying to define a cell value as a fabricated number derived from
today's date.

For example:

I'd like to set a cell's contents equal to "20040504.01", derived from
todays date (2004/05/04) and a running number 01.

I'd like to start with the TODAY() function and somehow maniuplate the
characters into a number and tack on a two digit number to the end as a
decimal.


Hmmm.

Thanks so much... You guys rock!


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default work with strings/numbers and dates

Thanks so much!!

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine strings and numbers Alain Dekker Excel Discussion (Misc queries) 6 February 21st 10 08:51 PM
CONCATENATE I have two text strings in cells but it wont work paintsr Excel Discussion (Misc queries) 1 January 23rd 09 04:30 PM
converting text strings into dates via135 Excel Worksheet Functions 6 November 18th 07 01:50 PM
Strings and numbers in cells lespal Excel Discussion (Misc queries) 1 September 5th 07 05:16 PM
Extract numbers from strings Stan Altshuller Excel Worksheet Functions 6 February 17th 05 09:33 PM


All times are GMT +1. The time now is 06:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"