A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Inserting Date in worksteets



 
 
Thread Tools Display Modes
  #1  
Old January 5th, 2004, 11:34 PM
Vic Abrahamian
external usenet poster
 
Posts: n/a
Default Inserting Date in worksteets

I have a work book which has 30 worksheets. Excel 2000
Is there a way with which I could add a date to a
specific cell and then increment the first day by one day
I want cell E8 to in each work sheet to show 1/1/04,
1/2/04, 1/3/04, 1/4/04, 1/5/04 etc..
Thank you
  #2  
Old January 6th, 2004, 01:44 AM
Norman Harker
external usenet poster
 
Posts: n/a
Default Inserting Date in worksteets

Hi Vic!

Put the base date in E8
E9:
=E8+1
Format as a date to taste.

Excel stores dates as the number of days since 31-Dec-1900 so adding 1
to any date will return the next day.

For more on dates see:

Chip Pearson:
http://www.cpearson.com/excel/datetime.htm#AddingDates
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia

Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
"Vic Abrahamian" wrote in message
...
I have a work book which has 30 worksheets. Excel 2000
Is there a way with which I could add a date to a
specific cell and then increment the first day by one day
I want cell E8 to in each work sheet to show 1/1/04,
1/2/04, 1/3/04, 1/4/04, 1/5/04 etc..
Thank you



  #3  
Old January 6th, 2004, 11:59 AM
Andrea Jones
external usenet poster
 
Posts: n/a
Default Inserting Date in worksteets

The formula you will need to use in Sheet2 is =Sheet1!
E8+1, format the result as a date and you should get the
answer you want.

Andrea Jones
Microsoft Office Specialist Office 2000 Master Instructor

-----Original Message-----
I have a work book which has 30 worksheets. Excel 2000
Is there a way with which I could add a date to a
specific cell and then increment the first day by one day
I want cell E8 to in each work sheet to show 1/1/04,
1/2/04, 1/3/04, 1/4/04, 1/5/04 etc..
Thank you
.

  #4  
Old January 6th, 2004, 04:29 PM
external usenet poster
 
Posts: n/a
Default Inserting Date in worksteets

This doesen't cover the 30 worksheets in the workbook
I wanted date+next day on 30 worksheets in a workbook
1st work sheet 1/1/04 on cell E8
2nd work sheet 1/1/04 + 1 = 1/2/04 on Cell E8
3rd work sheet 1/2/04 + 1 = 1/3/04 on Cell E8
-----Original Message-----
Hi Vic!

Put the base date in E8
E9:
=E8+1
Format as a date to taste.

Excel stores dates as the number of days since 31-Dec-

1900 so adding 1
to any date will return the next day.

For more on dates see:

Chip Pearson:
http://www.cpearson.com/excel/datetime.htm#AddingDates
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia

Excel and Word Function Lists (Classifications, Syntax

and Arguments)
available free to good homes.
"Vic Abrahamian" wrote in

message
...
I have a work book which has 30 worksheets. Excel 2000
Is there a way with which I could add a date to a
specific cell and then increment the first day by one

day
I want cell E8 to in each work sheet to show 1/1/04,
1/2/04, 1/3/04, 1/4/04, 1/5/04 etc..
Thank you



.

  #5  
Old January 6th, 2004, 04:42 PM
Vic Abrahamian
external usenet poster
 
Posts: n/a
Default Inserting Date in worksteets

Here is the closest to what I got to but it just places
the same date accross worksheets in a workbook.
I typed the date in E8 then right clicked on the "Sheet1"
tab at the bottom of the page and selected "Select All
Sheets" then clicked on the "EDIT" menu, "FILL" and
selected "Accross Worksheets".
It places the date in E8 on the same cell accross all the
worksheets. I was hoping that there was a similar way to
do this quickly like above for different dates accross
worksheets.


-----Original Message-----
The formula you will need to use in Sheet2 is =Sheet1!
E8+1, format the result as a date and you should get the
answer you want.

Andrea Jones
Microsoft Office Specialist Office 2000 Master Instructor

-----Original Message-----
I have a work book which has 30 worksheets. Excel 2000
Is there a way with which I could add a date to a
specific cell and then increment the first day by one

day
I want cell E8 to in each work sheet to show 1/1/04,
1/2/04, 1/3/04, 1/4/04, 1/5/04 etc..
Thank you
.

.

  #6  
Old January 7th, 2004, 02:21 AM
Dave Peterson
external usenet poster
 
Posts: n/a
Default Inserting Date in worksteets

You could use a macro:

Option Explicit
Sub testme()
Dim myDate As Date
Dim iCtr As Long

myDate = DateSerial(2004, 1, 1)

For iCtr = 1 To Worksheets.Count
With Worksheets(iCtr).Range("e8")
.Value = myDate - 1 + iCtr
.NumberFormat = "mm/dd/yyyy"
End With
Next iCtr

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Vic Abrahamian wrote:

I have a work book which has 30 worksheets. Excel 2000
Is there a way with which I could add a date to a
specific cell and then increment the first day by one day
I want cell E8 to in each work sheet to show 1/1/04,
1/2/04, 1/3/04, 1/4/04, 1/5/04 etc..
Thank you


--

Dave Peterson

  #7  
Old January 7th, 2004, 02:51 AM
David McRitchie
external usenet poster
 
Posts: n/a
Default Inserting Date in worksteets

I would think you would want to add sheets to the workbook
and name them rather than changing the name of existing worksheets.
But then you answered in the manner that the poster asked.
I guess all of the sheets would have to have the same information
in them so it doesn't matter what gets named to a particular date.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Dave Peterson" wrote in message ...
You could use a macro:

Option Explicit
Sub testme()
Dim myDate As Date
Dim iCtr As Long

myDate = DateSerial(2004, 1, 1)

For iCtr = 1 To Worksheets.Count
With Worksheets(iCtr).Range("e8")
.Value = myDate - 1 + iCtr
.NumberFormat = "mm/dd/yyyy"
End With
Next iCtr

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Vic Abrahamian wrote:

I have a work book which has 30 worksheets. Excel 2000
Is there a way with which I could add a date to a
specific cell and then increment the first day by one day
I want cell E8 to in each work sheet to show 1/1/04,
1/2/04, 1/3/04, 1/4/04, 1/5/04 etc..
Thank you


--

Dave Peterson



  #8  
Old January 7th, 2004, 03:22 AM
Gord Dibben
external usenet poster
 
Posts: n/a
Default Inserting Date in worksteets

David

Dave's code re-names nothing. It just increments the date in E8 across all
worksheets.

Gord

On Tue, 6 Jan 2004 21:51:30 -0500, "David McRitchie"
wrote:

I would think you would want to add sheets to the workbook
and name them rather than changing the name of existing worksheets.
But then you answered in the manner that the poster asked.
I guess all of the sheets would have to have the same information
in them so it doesn't matter what gets named to a particular date.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Dave Peterson" wrote in message ...
You could use a macro:

Option Explicit
Sub testme()
Dim myDate As Date
Dim iCtr As Long

myDate = DateSerial(2004, 1, 1)

For iCtr = 1 To Worksheets.Count
With Worksheets(iCtr).Range("e8")
.Value = myDate - 1 + iCtr
.NumberFormat = "mm/dd/yyyy"
End With
Next iCtr

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Vic Abrahamian wrote:

I have a work book which has 30 worksheets. Excel 2000
Is there a way with which I could add a date to a
specific cell and then increment the first day by one day
I want cell E8 to in each work sheet to show 1/1/04,
1/2/04, 1/3/04, 1/4/04, 1/5/04 etc..
Thank you


--

Dave Peterson



  #9  
Old January 7th, 2004, 03:24 AM
Dave Peterson
external usenet poster
 
Posts: n/a
Default Inserting Date in worksteets

A very good point. If the OP uses the macro approach, remember to exit without
saving if it didn't do what you wanted.

David McRitchie wrote:

I would think you would want to add sheets to the workbook
and name them rather than changing the name of existing worksheets.
But then you answered in the manner that the poster asked.
I guess all of the sheets would have to have the same information
in them so it doesn't matter what gets named to a particular date.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Dave Peterson" wrote in message ...
You could use a macro:

Option Explicit
Sub testme()
Dim myDate As Date
Dim iCtr As Long

myDate = DateSerial(2004, 1, 1)

For iCtr = 1 To Worksheets.Count
With Worksheets(iCtr).Range("e8")
.Value = myDate - 1 + iCtr
.NumberFormat = "mm/dd/yyyy"
End With
Next iCtr

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Vic Abrahamian wrote:

I have a work book which has 30 worksheets. Excel 2000
Is there a way with which I could add a date to a
specific cell and then increment the first day by one day
I want cell E8 to in each work sheet to show 1/1/04,
1/2/04, 1/3/04, 1/4/04, 1/5/04 etc..
Thank you


--

Dave Peterson


--

Dave Peterson

  #10  
Old January 7th, 2004, 03:36 AM
David McRitchie
external usenet poster
 
Posts: n/a
Default Inserting Date in worksteets


You're correct Gord, I didn't read it very well, but the comment seems
just as valid because =it is done without regard to any preexisting content
of the worksheets.



Gord Dibben wrote in message news
David

Dave's code re-names nothing. It just increments the date in E8 across all
worksheets.

Gord

On Tue, 6 Jan 2004 21:51:30 -0500, "David McRitchie"
wrote:

I would think you would want to add sheets to the workbook
and name them rather than changing the name of existing worksheets.
But then you answered in the manner that the poster asked.
I guess all of the sheets would have to have the same information
in them so it doesn't matter what gets named to a particular date.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Dave Peterson" wrote in message ...
You could use a macro:

Option Explicit
Sub testme()
Dim myDate As Date
Dim iCtr As Long

myDate = DateSerial(2004, 1, 1)

For iCtr = 1 To Worksheets.Count
With Worksheets(iCtr).Range("e8")
.Value = myDate - 1 + iCtr
.NumberFormat = "mm/dd/yyyy"
End With
Next iCtr

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Vic Abrahamian wrote:

I have a work book which has 30 worksheets. Excel 2000
Is there a way with which I could add a date to a
specific cell and then increment the first day by one day
I want cell E8 to in each work sheet to show 1/1/04,
1/2/04, 1/3/04, 1/4/04, 1/5/04 etc..
Thank you

--

Dave Peterson





 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.