Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
yadaaa
 
Posts: n/a
Default creating dates "database" in-a-row


Hi again.

let say i have 3 columns:

year month day
2006 06 23

i want to concatenate them to a new cell, same row to one date:
23-06-2006.
That i know how to do.

BUT

I want that every time i enter in the same 3 cells, same row, a
different date, it will add a new cell near the old concatenate cell.
meaning:

first date" 23-06-2006". punching new date inthe same cells,

"23-06-2006" "25-07-2006"
and so on.

help :)


--
yadaaa
------------------------------------------------------------------------
yadaaa's Profile: http://www.excelforum.com/member.php...o&userid=35130
View this thread: http://www.excelforum.com/showthread...hreadid=549400

  #2   Report Post  
Posted to microsoft.public.excel.newusers
Ron de Bruin
 
Posts: n/a
Default creating dates "database" in-a-row

Try this event in the Sheet module

year month day
2006 06 23


I use col A,B,C

Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
If Target.Column < 4 Then
Set rng = Range("IV" & Target.Row).End(xlToLeft).Offset(0, 1)
If rng.Column < 4 Then Exit Sub
rng.Value = DateSerial(Cells(Target.Row, 1), Cells(Target.Row, 2), Cells(Target.Row, 3))
End If
End Sub


--
Regards Ron De Bruin
http://www.rondebruin.nl



"yadaaa" wrote in message
...

Hi again.

let say i have 3 columns:

year month day
2006 06 23

i want to concatenate them to a new cell, same row to one date:
23-06-2006.
That i know how to do.

BUT

I want that every time i enter in the same 3 cells, same row, a
different date, it will add a new cell near the old concatenate cell.
meaning:

first date" 23-06-2006". punching new date inthe same cells,

"23-06-2006" "25-07-2006"
and so on.

help :)


--
yadaaa
------------------------------------------------------------------------
yadaaa's Profile: http://www.excelforum.com/member.php...o&userid=35130
View this thread: http://www.excelforum.com/showthread...hreadid=549400



  #3   Report Post  
Posted to microsoft.public.excel.newusers
yadaaa
 
Posts: n/a
Default creating dates "database" in-a-row


Thanx for the reply,

when i type in 3 col the first time, it does add a new cell, but filld
with #######

when i re-type the same cells, for EACH cell it adds a cell, meaning 3
new cells instead of one, again filled with #########




--
yadaaa
------------------------------------------------------------------------
yadaaa's Profile: http://www.excelforum.com/member.php...o&userid=35130
View this thread: http://www.excelforum.com/showthread...hreadid=549400

  #4   Report Post  
Posted to microsoft.public.excel.newusers
Ron de Bruin
 
Posts: n/a
Default creating dates "database" in-a-row

Your column is to small

--
Regards Ron De Bruin
http://www.rondebruin.nl



"yadaaa" wrote in message
...

Thanx for the reply,

when i type in 3 col the first time, it does add a new cell, but filld
with #######

when i re-type the same cells, for EACH cell it adds a cell, meaning 3
new cells instead of one, again filled with #########




--
yadaaa
------------------------------------------------------------------------
yadaaa's Profile: http://www.excelforum.com/member.php...o&userid=35130
View this thread: http://www.excelforum.com/showthread...hreadid=549400



  #5   Report Post  
Posted to microsoft.public.excel.newusers
yadaaa
 
Posts: n/a
Default creating dates "database" in-a-row


Im sorry, but im a VBA Dummy.
what do you mean?

i tried entering 22222, but it givers a runtime error.


?


--
yadaaa
------------------------------------------------------------------------
yadaaa's Profile: http://www.excelforum.com/member.php...o&userid=35130
View this thread: http://www.excelforum.com/showthread...hreadid=549400



  #6   Report Post  
Posted to microsoft.public.excel.newusers
Ron de Bruin
 
Posts: n/a
Default creating dates "database" in-a-row

Make your colums width bigger then you see the date

But now every time you change one of the cells in A,B,C it create a new date
Is this what you want ?

Why not add a button that run a macro when you are satisfied with the input of A,B and C

--
Regards Ron De Bruin
http://www.rondebruin.nl



"yadaaa" wrote in message
...

Im sorry, but im a VBA Dummy.
what do you mean?

i tried entering 22222, but it givers a runtime error.


?


--
yadaaa
------------------------------------------------------------------------
yadaaa's Profile: http://www.excelforum.com/member.php...o&userid=35130
View this thread: http://www.excelforum.com/showthread...hreadid=549400



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
working out quarters (three-month periods) between two dates [email protected] Excel Worksheet Functions 1 May 17th 06 10:27 AM
formula to add dates. S S Excel Worksheet Functions 8 April 5th 06 07:53 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
Automatic shading of cells based on dates??? Pedros Excel Worksheet Functions 3 October 20th 05 12:35 AM
2 digit year in dates return 19xx not 20xx moranbo Excel Discussion (Misc queries) 1 September 7th 05 01:44 AM


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