Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Davin
 
Posts: n/a
Default Convert dates into codes

I have to import a file into Excel once per week. The data could change on
any record going back to the 1st of the year. It is run for the whole year
every week.

I am doing counts on many things broken out by week. I need to convert
(automatically) the date into a code number (1/01/05 = 1; 1/10/05 = 2...) so
that as I import or paste the new weekly data into the spreadsheet the date
will automatically update a new field with the corresponding code.

I can't seem to get it to work, I was hoping one of ya'll mught have an idea.

Thanks in advance for any info!
  #2   Report Post  
David Hepner
 
Posts: n/a
Default

Two suggestions:

You could use the weeknum function to convert a date into the week number.
-or-
You could create a table with the weeks in one column and the corresponding
number in the next and use a vlookup.



"Davin" wrote:

I have to import a file into Excel once per week. The data could change on
any record going back to the 1st of the year. It is run for the whole year
every week.

I am doing counts on many things broken out by week. I need to convert
(automatically) the date into a code number (1/01/05 = 1; 1/10/05 = 2...) so
that as I import or paste the new weekly data into the spreadsheet the date
will automatically update a new field with the corresponding code.

I can't seem to get it to work, I was hoping one of ya'll mught have an idea.

Thanks in advance for any info!

  #3   Report Post  
Davin
 
Posts: n/a
Default

Perfect!

Thanks a lot, just the "idea push" I needed. I went with the vlookup
solution and it worked like a charm.


"David Hepner" wrote:

Two suggestions:

You could use the weeknum function to convert a date into the week number.
-or-
You could create a table with the weeks in one column and the corresponding
number in the next and use a vlookup.



"Davin" wrote:

I have to import a file into Excel once per week. The data could change on
any record going back to the 1st of the year. It is run for the whole year
every week.

I am doing counts on many things broken out by week. I need to convert
(automatically) the date into a code number (1/01/05 = 1; 1/10/05 = 2...) so
that as I import or paste the new weekly data into the spreadsheet the date
will automatically update a new field with the corresponding code.

I can't seem to get it to work, I was hoping one of ya'll mught have an idea.

Thanks in advance for any info!

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
How can I convert Euro dates into U.S. Date; e.g. dd-mm to mm-dd? Riley001 Excel Worksheet Functions 2 July 19th 05 09:36 PM
How to convert the dates from the YY:DD forma to MM/dd/YYYY format Sam Excel Worksheet Functions 4 July 15th 05 12:01 PM
How do I convert dates to text keeping the format? sprlarry Excel Discussion (Misc queries) 3 May 16th 05 06:06 AM
Convert three separate columns of values to dates jack Excel Worksheet Functions 3 February 3rd 05 11:30 PM
Convert text to dates Ket Excel Worksheet Functions 5 November 4th 04 08:03 PM


All times are GMT +1. The time now is 08:34 AM.

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

About Us

"It's about Microsoft Excel"