PC Review


Reply
Thread Tools Rate Thread

Change cell value Excel 2000 & 2003

 
 
jfcby
Guest
Posts: n/a
 
      10th Dec 2006
Hello,

On worksheet2 B2 I have a date formated like 1/1/2006. I need to change
that value in yearly increments 1/1/2006, 1/1/2007, 1/1/2008 and so on.
How can the date be changed in yearly increments?

Thanks for your help in advance,
jfcby

 
Reply With Quote
 
 
 
 
RichardSchollar
Guest
Posts: n/a
 
      10th Dec 2006
You could use a formula like:

=DATE(YEAR(B2)+ROWS($B$1:$B1),MONTH(B2),DAY(B2))

in the worksheet itself.

The VBA function DateSerial works in much the same way as the worksheet
function Date, if you want a programmatical solution.

Hope this helps!

Richard



jfcby wrote:
> Hello,
>
> On worksheet2 B2 I have a date formated like 1/1/2006. I need to change
> that value in yearly increments 1/1/2006, 1/1/2007, 1/1/2008 and so on.
> How can the date be changed in yearly increments?
>
> Thanks for your help in advance,
> jfcby


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      10th Dec 2006
Assume date 1/1/2006 in A1

Load the Analysis Toolpak from Tools>Add-ins then in A2 enter

=EDATE(A1,12)

Drag>copy down as far as you wish.


Gord Dibben MS Excel MVP

On 10 Dec 2006 12:22:30 -0800, "jfcby" <(E-Mail Removed)> wrote:

>Hello,
>
>On worksheet2 B2 I have a date formated like 1/1/2006. I need to change
>that value in yearly increments 1/1/2006, 1/1/2007, 1/1/2008 and so on.
>How can the date be changed in yearly increments?
>
>Thanks for your help in advance,
>jfcby


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      10th Dec 2006
You can just enter the first two dates, select them, and then drag and copy
to get more.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"jfcby" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> On worksheet2 B2 I have a date formated like 1/1/2006. I need to change
> that value in yearly increments 1/1/2006, 1/1/2007, 1/1/2008 and so on.
> How can the date be changed in yearly increments?
>
> Thanks for your help in advance,
> jfcby
>



 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      10th Dec 2006
Too easy<g>

Gord

On Sun, 10 Dec 2006 21:22:21 -0000, "Bob Phillips" <(E-Mail Removed)> wrote:

>You can just enter the first two dates, select them, and then drag and copy
>to get more.


Gord Dibben MS Excel MVP
 
Reply With Quote
 
jfcby
Guest
Posts: n/a
 
      10th Dec 2006
Hello,

Is there a way to use the vba code to change the date on Sheet2 Cell 2
with a spinner button on Sheet6?

Thank you for your help,
jfcby



RichardSchollar wrote:
> You could use a formula like:
>
> =DATE(YEAR(B2)+ROWS($B$1:$B1),MONTH(B2),DAY(B2))
>
> in the worksheet itself.
>
> The VBA function DateSerial works in much the same way as the worksheet
> function Date, if you want a programmatical solution.
>
> Hope this helps!
>
> Richard
>
>
>
> jfcby wrote:
> > Hello,
> >
> > On worksheet2 B2 I have a date formated like 1/1/2006. I need to change
> > that value in yearly increments 1/1/2006, 1/1/2007, 1/1/2008 and so on.
> > How can the date be changed in yearly increments?
> >
> > Thanks for your help in advance,
> > jfcby


 
Reply With Quote
 
jfcby
Guest
Posts: n/a
 
      11th Dec 2006
Thank you for all your help

jfcby


jfcby wrote:
> Hello,
>
> Is there a way to use the vba code to change the date on Sheet2 Cell 2
> with a spinner button on Sheet6?
>
> Thank you for your help,
> jfcby
>
>
>
> RichardSchollar wrote:
> > You could use a formula like:
> >
> > =DATE(YEAR(B2)+ROWS($B$1:$B1),MONTH(B2),DAY(B2))
> >
> > in the worksheet itself.
> >
> > The VBA function DateSerial works in much the same way as the worksheet
> > function Date, if you want a programmatical solution.
> >
> > Hope this helps!
> >
> > Richard
> >
> >
> >
> > jfcby wrote:
> > > Hello,
> > >
> > > On worksheet2 B2 I have a date formated like 1/1/2006. I need to change
> > > that value in yearly increments 1/1/2006, 1/1/2007, 1/1/2008 and so on.
> > > How can the date be changed in yearly increments?
> > >
> > > Thanks for your help in advance,
> > > jfcby


 
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
How to change positive values in a cell to negative in Excel 2000 Mary-Anne Microsoft Excel Misc 7 3rd Sep 2008 03:35 PM
Strange 'protected cell' error affecting Excel 2003 but not Excel 2000? Pheasant PluckerŪ Microsoft Excel Misc 1 10th Apr 2007 01:04 PM
input 7 in a cell in EXCEL 2000, it will automatically change to 8 =?Utf-8?B?bm9iYXR0ZXJ5?= Microsoft Excel Misc 1 19th Oct 2006 01:25 PM
Excel 2003 can't change cell color =?Utf-8?B?VGV4YXM=?= Microsoft Excel Worksheet Functions 2 5th May 2004 05:11 PM
cell unprotected in excel 2003 but protected in excel 97 and 2000? Gary Massengale Microsoft Excel Misc 2 19th Jan 2004 08:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:36 PM.