Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Time sheet in Excel (help!)

I am making a timesheet. I have most of the functions figured out. My boss
wants the date entered to automatically enter the quarter it corresponds
with..and I don't know if excel can do that. Maybe it can? Also, if it works
in Access, that would be okay too. Anyways, an example: if someone entered
11/01/07 the next column should automatically enter 4th quarter 2007. If
someone enters 4/21/09, it should enter 2nd quarter 2009.

Another thing I need to do is take about 10 individual time sheets and put
them into one big database timesheet. Can I do that in Access?? Any help is
appreciated. Thank you!

-Coralee
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Time sheet in Excel (help!)

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "A:A" '<== change to suit
Dim aryQtrs


On Error GoTo ws_exit
Application.EnableEvents = False

aryQtrs = Array("1st Qtr ", "2nd Qtr ", "3rd Qtr ", "4th Qtr ")
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
If IsDate(.Value) Then
.Offset(0, 1).Value = aryQtrs(((Month(.Value) + 2) \ 3) +
(LBound(aryQtrs) = 0)) & Year(.Value)
End If
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.



--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"crookedsoul108" wrote in message
...
I am making a timesheet. I have most of the functions figured out. My
boss
wants the date entered to automatically enter the quarter it corresponds
with..and I don't know if excel can do that. Maybe it can? Also, if it
works
in Access, that would be okay too. Anyways, an example: if someone
entered
11/01/07 the next column should automatically enter 4th quarter 2007. If
someone enters 4/21/09, it should enter 2nd quarter 2009.

Another thing I need to do is take about 10 individual time sheets and put
them into one big database timesheet. Can I do that in Access?? Any help
is
appreciated. Thank you!

-Coralee



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Time sheet in Excel (help!)

Try this formula, if your date is in A1:

="Q"&INT(MONTH(A1)/3)+1&", "&TEXT(YEAR(A1),"0000")

It will return values like "Q4, 2007" as an example. Copy down as
required.

Hope this helps.

Pete

On Nov 1, 11:22 pm, crookedsoul108
wrote:
I am making a timesheet. I have most of the functions figured out. My boss
wants the date entered to automatically enter the quarter it corresponds
with..and I don't know if excel can do that. Maybe it can? Also, if it works
in Access, that would be okay too. Anyways, an example: if someone entered
11/01/07 the next column should automatically enter 4th quarter 2007. If
someone enters 4/21/09, it should enter 2nd quarter 2009.

Another thing I need to do is take about 10 individual time sheets and put
them into one big database timesheet. Can I do that in Access?? Any help is
appreciated. Thank you!

-Coralee



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Time sheet in Excel (help!)

Thanks Pete. I tried that..my date is in C1...so do I just change the "A1s"
to "C1s"?

"Pete_UK" wrote:

Try this formula, if your date is in A1:

="Q"&INT(MONTH(A1)/3)+1&", "&TEXT(YEAR(A1),"0000")

It will return values like "Q4, 2007" as an example. Copy down as
required.

Hope this helps.

Pete

On Nov 1, 11:22 pm, crookedsoul108
wrote:
I am making a timesheet. I have most of the functions figured out. My boss
wants the date entered to automatically enter the quarter it corresponds
with..and I don't know if excel can do that. Maybe it can? Also, if it works
in Access, that would be okay too. Anyways, an example: if someone entered
11/01/07 the next column should automatically enter 4th quarter 2007. If
someone enters 4/21/09, it should enter 2nd quarter 2009.

Another thing I need to do is take about 10 individual time sheets and put
them into one big database timesheet. Can I do that in Access?? Any help is
appreciated. Thank you!

-Coralee




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Time sheet in Excel (help!)

Never mind. I figured it out. Thank you so much! That works!

"crookedsoul108" wrote:

Thanks Pete. I tried that..my date is in C1...so do I just change the "A1s"
to "C1s"?

"Pete_UK" wrote:

Try this formula, if your date is in A1:

="Q"&INT(MONTH(A1)/3)+1&", "&TEXT(YEAR(A1),"0000")

It will return values like "Q4, 2007" as an example. Copy down as
required.

Hope this helps.

Pete

On Nov 1, 11:22 pm, crookedsoul108
wrote:
I am making a timesheet. I have most of the functions figured out. My boss
wants the date entered to automatically enter the quarter it corresponds
with..and I don't know if excel can do that. Maybe it can? Also, if it works
in Access, that would be okay too. Anyways, an example: if someone entered
11/01/07 the next column should automatically enter 4th quarter 2007. If
someone enters 4/21/09, it should enter 2nd quarter 2009.

Another thing I need to do is take about 10 individual time sheets and put
them into one big database timesheet. Can I do that in Access?? Any help is
appreciated. Thank you!

-Coralee






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Time sheet in Excel (help!)

Glad to hear it - thanks for feeding back.

Pete

On Nov 1, 11:57 pm, crookedsoul108
wrote:
Never mind. I figured it out. Thank you so much! That works!



"crookedsoul108" wrote:
Thanks Pete. I tried that..my date is in C1...so do I just change the "A1s"
to "C1s"?


"Pete_UK" wrote:


Try this formula, if your date is in A1:


="Q"&INT(MONTH(A1)/3)+1&", "&TEXT(YEAR(A1),"0000")


It will return values like "Q4, 2007" as an example. Copy down as
required.


Hope this helps.


Pete


On Nov 1, 11:22 pm, crookedsoul108
wrote:
I am making a timesheet. I have most of the functions figured out. My boss
wants the date entered to automatically enter the quarter it corresponds
with..and I don't know if excel can do that. Maybe it can? Also, if it works
in Access, that would be okay too. Anyways, an example: if someone entered
11/01/07 the next column should automatically enter 4th quarter 2007. If
someone enters 4/21/09, it should enter 2nd quarter 2009.


Another thing I need to do is take about 10 individual time sheets and put
them into one big database timesheet. Can I do that in Access?? Any help is
appreciated. Thank you!


-Coralee- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Time sheet in Excel (help!)

Yes. There are two cell references in the formula.

Pete

On Nov 1, 11:48 pm, crookedsoul108
wrote:
Thanks Pete. I tried that..my date is in C1...so do I just change the "A1s"
to "C1s"?



"Pete_UK" wrote:
Try this formula, if your date is in A1:


="Q"&INT(MONTH(A1)/3)+1&", "&TEXT(YEAR(A1),"0000")


It will return values like "Q4, 2007" as an example. Copy down as
required.


Hope this helps.


Pete


On Nov 1, 11:22 pm, crookedsoul108
wrote:
I am making a timesheet. I have most of the functions figured out. My boss
wants the date entered to automatically enter the quarter it corresponds
with..and I don't know if excel can do that. Maybe it can? Also, if it works
in Access, that would be okay too. Anyways, an example: if someone entered
11/01/07 the next column should automatically enter 4th quarter 2007. If
someone enters 4/21/09, it should enter 2nd quarter 2009.


Another thing I need to do is take about 10 individual time sheets and put
them into one big database timesheet. Can I do that in Access?? Any help is
appreciated. Thank you!


-Coralee- Hide quoted text -


- Show quoted text -



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
Time Sheet Problems in Excel Trying to Please the Boss Excel Discussion (Misc queries) 2 May 3rd 07 04:54 PM
excel time sheet aloncillo Excel Discussion (Misc queries) 2 December 11th 06 06:11 PM
Excel Used as a Time Sheet emanna Excel Discussion (Misc queries) 6 March 2nd 06 05:25 PM
How do I time Hours & mins in excel - Time sheet Helen Excel Discussion (Misc queries) 5 September 17th 05 11:42 AM
HOW DO I CALCULATE TIME IN A TIME SHEET FOR EXCEL RAFAEL New Users to Excel 1 June 26th 05 11:32 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"