Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Concatenation prob

On Thu, 10 Jan 2008 17:08:05 -0000, "Francis Hookham"
wrote:


Col A contains "Jan"

Col B contains "1"

Col C contains "Tuesday" (which is superfluous in this operation)

We know the year is 2008



If you go the formula, copy, and paste route, use this formula

=DATEVALUE(A1&" "&B1&", 2008")

If you go the macro route, this one should work.

Sub MakeDates()

Dim rCell As Range

For Each rCell In Intersect(Sheet1.UsedRange, Sheet1.Columns(1)).Cells
rCell.Offset(0, 3).Value = _
DateValue(rCell.Value & " " & rCell.Offset(0, 1).Value & ",
2008")
Next rCell

End Sub
--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.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
Concatenation prob Ron Rosenfeld Excel Programming 1 September 8th 07 02:22 PM
Concatenation prob Niek Otten Excel Programming 4 July 11th 07 09:54 PM
Concatenation prob Rick Rothstein \(MVP - VB\) Excel Programming 0 July 11th 07 09:22 PM
Concatenation prob Rick Rothstein \(MVP - VB\) Excel Programming 1 July 10th 07 07:02 PM
Concatenation prob Tom Ogilvy Excel Programming 0 July 10th 07 06:08 PM


All times are GMT +1. The time now is 01:27 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"