#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default Dates?

In column J I have dates in the format mm/dd/yy ... then across row 5 I have
monthes in the form month/yy (i.e. Apr-09). If a date in column J reads
05/16/09 , I want to place the certain text in the column corresponding with
May-09 (in the row that reads 05/16/09). Does that make sense? Any help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,071
Default Dates?

I'm sure this macro will not do exactly what you want, but try it and come
back with corrections you want. Otto
Sub PlaceCertainText()
Dim rColJ As Range
Dim i As Range
Set rColJ = Range("J6", Range("J" & Rows.Count).End(xlUp))
For Each i In rColJ
Cells(i.Row, Month(i)) = "Certain text"
Next i
End Sub

"lightbulb" wrote in message
...
In column J I have dates in the format mm/dd/yy ... then across row 5 I
have
monthes in the form month/yy (i.e. Apr-09). If a date in column J reads
05/16/09 , I want to place the certain text in the column corresponding
with
May-09 (in the row that reads 05/16/09). Does that make sense? Any help?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 303
Default Dates?

=TEXT(J5,"MMM""-""yy")

should work

greetings from New Zealand

"lightbulb" wrote in message
...
In column J I have dates in the format mm/dd/yy ... then across row 5 I
have
monthes in the form month/yy (i.e. Apr-09). If a date in column J reads
05/16/09 , I want to place the certain text in the column corresponding
with
May-09 (in the row that reads 05/16/09). Does that make sense? Any help?



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
compare 2 tables of dates to find the preceding dates Babi Excel Worksheet Functions 3 October 28th 08 05:52 AM
Identifying unique dates in a range of cells containing dates... cdavidson Excel Discussion (Misc queries) 4 October 13th 06 03:30 PM
Identifying unique dates within a range of cells containing dates cdavidson Excel Discussion (Misc queries) 0 October 12th 06 08:19 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM


All times are GMT +1. The time now is 06:24 PM.

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"