PC Review


Reply
Thread Tools Rate Thread

Adding date to a column in Excel

 
 
mikerobe
Guest
Posts: n/a
 
      20th Jun 2008
Hi
I have recently asked a similar question but having thought about it
there may be an easier solution to what i want. I have a worksheet
where rows of data are added daily. The data goes to column H
inclusive. I would like to add todays date to column "I" when data is
added. So I was guessing it might be possible to create a macro to add
that days date based on the fact that if Column "I" is blank down as
far as there is data in column H. This would then build up a new
column "Date data added".

Can anyone help me with code for this?

Much appreciated

Eddie
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      20th Jun 2008
one way. Didn't test
lri=cells(rows.count,"i").end(xlup).row+1
lrh=cells(rows.count,"h").end(xlup).row
range(cells(lri,"i"),cells(lrh,"i")=date

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"mikerobe" <(E-Mail Removed)> wrote in message
news:238f4b4f-e969-404d-abf5-(E-Mail Removed)...
> Hi
> I have recently asked a similar question but having thought about it
> there may be an easier solution to what i want. I have a worksheet
> where rows of data are added daily. The data goes to column H
> inclusive. I would like to add todays date to column "I" when data is
> added. So I was guessing it might be possible to create a macro to add
> that days date based on the fact that if Column "I" is blank down as
> far as there is data in column H. This would then build up a new
> column "Date data added".
>
> Can anyone help me with code for this?
>
> Much appreciated
>
> Eddie


 
Reply With Quote
 
Sgwapt
Guest
Posts: n/a
 
      20th Jun 2008
This is what I use

Add the field name "AddDate" to column I
The update code if using to this
ActiveCell.Offset(0,1).value = Date

ActiveCell = "H2"
0= Row
1 = Column I

If this is the direction you wanted then I believe it's becuase you want to
use filters to see what is being added to data sheet.


My data sheets have 2 fields as the last columns
AddDate
FixDate


I hope this helps.

--
George G


"mikerobe" wrote:

> Hi
> I have recently asked a similar question but having thought about it
> there may be an easier solution to what i want. I have a worksheet
> where rows of data are added daily. The data goes to column H
> inclusive. I would like to add todays date to column "I" when data is
> added. So I was guessing it might be possible to create a macro to add
> that days date based on the fact that if Column "I" is blank down as
> far as there is data in column H. This would then build up a new
> column "Date data added".
>
> Can anyone help me with code for this?
>
> Much appreciated
>
> Eddie
>

 
Reply With Quote
 
Sgwapt
Guest
Posts: n/a
 
      20th Jun 2008
Leave it up to the guru's
Way to go Don

LOL
--
George G


"Don Guillett" wrote:

> one way. Didn't test
> lri=cells(rows.count,"i").end(xlup).row+1
> lrh=cells(rows.count,"h").end(xlup).row
> range(cells(lri,"i"),cells(lrh,"i")=date
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "mikerobe" <(E-Mail Removed)> wrote in message
> news:238f4b4f-e969-404d-abf5-(E-Mail Removed)...
> > Hi
> > I have recently asked a similar question but having thought about it
> > there may be an easier solution to what i want. I have a worksheet
> > where rows of data are added daily. The data goes to column H
> > inclusive. I would like to add todays date to column "I" when data is
> > added. So I was guessing it might be possible to create a macro to add
> > that days date based on the fact that if Column "I" is blank down as
> > far as there is data in column H. This would then build up a new
> > column "Date data added".
> >
> > Can anyone help me with code for this?
> >
> > Much appreciated
> >
> > Eddie

>
>

 
Reply With Quote
 
mikerobe
Guest
Posts: n/a
 
      20th Jun 2008
On Jun 20, 1:07*am, Sgwapt <myblueho...@msn.com> wrote:
> Leave it up to the guru's
> Way to go Don
>
> LOL
> --
> George G
>
>
>
> "Don Guillett" wrote:
> > one way. Didn't test
> > lri=cells(rows.count,"i").end(xlup).row+1
> > lrh=cells(rows.count,"h").end(xlup).row
> > range(cells(lri,"i"),cells(lrh,"i")=date

>
> > --
> > Don Guillett
> > Microsoft MVP Excel
> > SalesAid Software
> > dguille...@austin.rr.com
> > "mikerobe" <eid...@gmail.com> wrote in message
> >news:238f4b4f-e969-404d-abf5-(E-Mail Removed)....
> > > Hi
> > > I have recently asked a similar question but having thought about it
> > > there may be an easier solution to what i want. I have a worksheet
> > > where rows of data are added daily. The data goes to column H
> > > inclusive. I would like to add todays date to column "I" when data is
> > > added. So I was guessing it might be possible to create a macro to add
> > > that days date based on the fact that if Column "I" is blank down as
> > > far as there is data in column H. This would then build up a new
> > > column "Date data added".

>
> > > Can anyone help me with code for this?

>
> > > Much appreciated

>
> > > Eddie- Hide quoted text -

>
> - Show quoted text -


Thanks Don - Thats exactly what I wanted works perfect and only 3
lines of code! amazing. Also thanks George for your suggestion.
 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      20th Jun 2008

Glad to help
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Sgwapt" <(E-Mail Removed)> wrote in message
news:8A851029-8D20-4477-84B4-(E-Mail Removed)...
> Leave it up to the guru's
> Way to go Don
>
> LOL
> --
> George G
>
>
> "Don Guillett" wrote:
>
>> one way. Didn't test
>> lri=cells(rows.count,"i").end(xlup).row+1
>> lrh=cells(rows.count,"h").end(xlup).row
>> range(cells(lri,"i"),cells(lrh,"i")=date
>>
>> --
>> Don Guillett
>> Microsoft MVP Excel
>> SalesAid Software
>> (E-Mail Removed)
>> "mikerobe" <(E-Mail Removed)> wrote in message
>> news:238f4b4f-e969-404d-abf5-(E-Mail Removed)...
>> > Hi
>> > I have recently asked a similar question but having thought about it
>> > there may be an easier solution to what i want. I have a worksheet
>> > where rows of data are added daily. The data goes to column H
>> > inclusive. I would like to add todays date to column "I" when data is
>> > added. So I was guessing it might be possible to create a macro to add
>> > that days date based on the fact that if Column "I" is blank down as
>> > far as there is data in column H. This would then build up a new
>> > column "Date data added".
>> >
>> > Can anyone help me with code for this?
>> >
>> > Much appreciated
>> >
>> > Eddie

>>
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding entries if date entered in another column Jen Microsoft Excel Worksheet Functions 6 17th Feb 2009 07:23 PM
Column Chart - Adding text in the column in Excel 2007 Jennifer Microsoft Excel Charting 2 26th Jul 2008 02:58 PM
Excel 2000: Adding column D based on value in column A al Microsoft Excel Worksheet Functions 6 10th Apr 2008 02:22 AM
Adding a column based on greater than a date Toni G. Microsoft Excel Worksheet Functions 4 17th Mar 2005 08:06 PM
adding a new column and calculating a new date cdm1967 Microsoft Access Macros 1 15th Feb 2005 01:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:52 AM.