PC Review


Reply
Thread Tools Rate Thread

How do you solve this one ?

 
 
DB
Guest
Posts: n/a
 
      31st Dec 2006
Hi...Im back again.............I thought i'd sorted it then this one popped
up........

I'm doing the time sheets for work (still!).........to try and keep it
simple, I input peoples start and finish times into a cell, that data is
copied to a section lower down the page (this is eventually printed and
handed out so that the staff know who is doing what that week)
Well, it was working fine....till i tried something..

The cells have the staff members name......their start time,their finish
time...the finish time minus the start time gives the hours a person works
that day.......so far so good......
If a person is off work then its displays DAY in the start time box....and
OFF in the end time box - this makes it show #value! in the Hours
box.......this I can sort of live with....but......the worksheet also adds
up the persons hours.......but what with this #value
in one of the cells - it is stopping it from adding up.

If we had permanent static duties it wouldnt be a problem - but every ow and
again a person works extra.

How can I make an entry that will allow this ?

All help appreciated - Dave




MONDAY DAY OFF #VALUE!
TUESDAY 08:20 17:30 9:10
WEDNESDAY 08:50 18:20 9:30
THURSDAY 08:50 12:40 3:50
FRIDAY 08:50 17:35 8:45
SATURDAY 08:50 17:35 8:45

TOTAL HOURS #VALUE!



I can email the worksheet if you want it


 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      31st Dec 2006
don't know what your layout is, but if the day, start time, end time and hours
worked are adjacent, you could use a formula for the hours worked.

if(c1="OFF",0,c1-b1)

--


Gary


"DB" <(E-Mail Removed)> wrote in message
news:eRWlh.23843$(E-Mail Removed)...
> Hi...Im back again.............I thought i'd sorted it then this one popped
> up........
>
> I'm doing the time sheets for work (still!).........to try and keep it simple,
> I input peoples start and finish times into a cell, that data is
> copied to a section lower down the page (this is eventually printed and handed
> out so that the staff know who is doing what that week)
> Well, it was working fine....till i tried something..
>
> The cells have the staff members name......their start time,their finish
> time...the finish time minus the start time gives the hours a person works
> that day.......so far so good......
> If a person is off work then its displays DAY in the start time box....and OFF
> in the end time box - this makes it show #value! in the Hours box.......this I
> can sort of live with....but......the worksheet also adds up the persons
> hours.......but what with this #value
> in one of the cells - it is stopping it from adding up.
>
> If we had permanent static duties it wouldnt be a problem - but every ow and
> again a person works extra.
>
> How can I make an entry that will allow this ?
>
> All help appreciated - Dave
>
>
>
>
> MONDAY DAY OFF #VALUE!
> TUESDAY 08:20 17:30 9:10
> WEDNESDAY 08:50 18:20 9:30
> THURSDAY 08:50 12:40 3:50
> FRIDAY 08:50 17:35 8:45
> SATURDAY 08:50 17:35 8:45
>
> TOTAL HOURS #VALUE!
>
>
>
> I can email the worksheet if you want it
>



 
Reply With Quote
 
=?Utf-8?B?Sk1C?=
Guest
Posts: n/a
 
      31st Dec 2006
If they have the day off, do you want 0 hours to appear?

You could use IsError inside of an IF statement to trap the error.
=IF(ISERROR(B1-A1),0,B1-A1)
where B1 is the end time and A1 is then start time. Substitute B1-A1 for
whatever formula you are using if it is different.


"DB" wrote:

> Hi...Im back again.............I thought i'd sorted it then this one popped
> up........
>
> I'm doing the time sheets for work (still!).........to try and keep it
> simple, I input peoples start and finish times into a cell, that data is
> copied to a section lower down the page (this is eventually printed and
> handed out so that the staff know who is doing what that week)
> Well, it was working fine....till i tried something..
>
> The cells have the staff members name......their start time,their finish
> time...the finish time minus the start time gives the hours a person works
> that day.......so far so good......
> If a person is off work then its displays DAY in the start time box....and
> OFF in the end time box - this makes it show #value! in the Hours
> box.......this I can sort of live with....but......the worksheet also adds
> up the persons hours.......but what with this #value
> in one of the cells - it is stopping it from adding up.
>
> If we had permanent static duties it wouldnt be a problem - but every ow and
> again a person works extra.
>
> How can I make an entry that will allow this ?
>
> All help appreciated - Dave
>
>
>
>
> MONDAY DAY OFF #VALUE!
> TUESDAY 08:20 17:30 9:10
> WEDNESDAY 08:50 18:20 9:30
> THURSDAY 08:50 12:40 3:50
> FRIDAY 08:50 17:35 8:45
> SATURDAY 08:50 17:35 8:45
>
> TOTAL HOURS #VALUE!
>
>
>
> I can email the worksheet if you want it
>
>
>

 
Reply With Quote
 
DB
Guest
Posts: n/a
 
      31st Dec 2006
er............this is where I show my total ignorance.....

I havent a clue about VB and do everything in crude methods....such as
working the maths out myself and then using the autosum to get my answers in
the way that I work them out.(If you follow me)

If you have the time, tell me what to do where and i'll do it..

Thanks

Dave

P.S. it's 23.15 here so Happy New Year to everyone



"JMB" <(E-Mail Removed)> wrote in message
news:A72F79CE-756D-4E72-B923-(E-Mail Removed)...
> If they have the day off, do you want 0 hours to appear?
>
> You could use IsError inside of an IF statement to trap the error.
> =IF(ISERROR(B1-A1),0,B1-A1)
> where B1 is the end time and A1 is then start time. Substitute B1-A1 for
> whatever formula you are using if it is different.
>
>
> "DB" wrote:
>
>> Hi...Im back again.............I thought i'd sorted it then this one
>> popped
>> up........
>>
>> I'm doing the time sheets for work (still!).........to try and keep it
>> simple, I input peoples start and finish times into a cell, that data is
>> copied to a section lower down the page (this is eventually printed and
>> handed out so that the staff know who is doing what that week)
>> Well, it was working fine....till i tried something..
>>
>> The cells have the staff members name......their start time,their finish
>> time...the finish time minus the start time gives the hours a person
>> works
>> that day.......so far so good......
>> If a person is off work then its displays DAY in the start time
>> box....and
>> OFF in the end time box - this makes it show #value! in the Hours
>> box.......this I can sort of live with....but......the worksheet also
>> adds
>> up the persons hours.......but what with this #value
>> in one of the cells - it is stopping it from adding up.
>>
>> If we had permanent static duties it wouldnt be a problem - but every ow
>> and
>> again a person works extra.
>>
>> How can I make an entry that will allow this ?
>>
>> All help appreciated - Dave
>>
>>
>>
>>
>> MONDAY DAY OFF #VALUE!
>> TUESDAY 08:20 17:30 9:10
>> WEDNESDAY 08:50 18:20 9:30
>> THURSDAY 08:50 12:40 3:50
>> FRIDAY 08:50 17:35 8:45
>> SATURDAY 08:50 17:35 8:45
>>
>> TOTAL HOURS #VALUE!
>>
>>
>>
>> I can email the worksheet if you want it
>>
>>
>>



 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      31st Dec 2006
> I havent a clue about VB
There were instructions to use VB at all. The answers were both for
formulas used in the worksheet - to replace the ones returning the #Value
error.

Instead of using

=B1-A1 to get the number of hours worked, use

=IF(ISERROR(B1-A1),0,B1-A1)

obviously adjust the B1 to indicate the cell in the row that has the finish
time and A1 to indicate the cell in the row that has the start time.


--
Regards,
Tom Ogilvy

"DB" <(E-Mail Removed)> wrote in message
news:4yXlh.23859$(E-Mail Removed)...
> er............this is where I show my total ignorance.....
>
> I havent a clue about VB and do everything in crude methods....such as
> working the maths out myself and then using the autosum to get my answers
> in the way that I work them out.(If you follow me)
>
> If you have the time, tell me what to do where and i'll do it..
>
> Thanks
>
> Dave
>
> P.S. it's 23.15 here so Happy New Year to everyone
>
>
>
> "JMB" <(E-Mail Removed)> wrote in message
> news:A72F79CE-756D-4E72-B923-(E-Mail Removed)...
>> If they have the day off, do you want 0 hours to appear?
>>
>> You could use IsError inside of an IF statement to trap the error.
>> =IF(ISERROR(B1-A1),0,B1-A1)
>> where B1 is the end time and A1 is then start time. Substitute B1-A1 for
>> whatever formula you are using if it is different.
>>
>>
>> "DB" wrote:
>>
>>> Hi...Im back again.............I thought i'd sorted it then this one
>>> popped
>>> up........
>>>
>>> I'm doing the time sheets for work (still!).........to try and keep it
>>> simple, I input peoples start and finish times into a cell, that data is
>>> copied to a section lower down the page (this is eventually printed and
>>> handed out so that the staff know who is doing what that week)
>>> Well, it was working fine....till i tried something..
>>>
>>> The cells have the staff members name......their start time,their finish
>>> time...the finish time minus the start time gives the hours a person
>>> works
>>> that day.......so far so good......
>>> If a person is off work then its displays DAY in the start time
>>> box....and
>>> OFF in the end time box - this makes it show #value! in the Hours
>>> box.......this I can sort of live with....but......the worksheet also
>>> adds
>>> up the persons hours.......but what with this #value
>>> in one of the cells - it is stopping it from adding up.
>>>
>>> If we had permanent static duties it wouldnt be a problem - but every ow
>>> and
>>> again a person works extra.
>>>
>>> How can I make an entry that will allow this ?
>>>
>>> All help appreciated - Dave
>>>
>>>
>>>
>>>
>>> MONDAY DAY OFF #VALUE!
>>> TUESDAY 08:20 17:30 9:10
>>> WEDNESDAY 08:50 18:20 9:30
>>> THURSDAY 08:50 12:40 3:50
>>> FRIDAY 08:50 17:35 8:45
>>> SATURDAY 08:50 17:35 8:45
>>>
>>> TOTAL HOURS #VALUE!
>>>
>>>
>>>
>>> I can email the worksheet if you want it
>>>
>>>
>>>

>
>



 
Reply With Quote
 
DB
Guest
Posts: n/a
 
      31st Dec 2006
Absolutely Spot On - Problem Sorted....

Many Many Thanks

Dave ))






"Tom Ogilvy" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>> I havent a clue about VB

> There were instructions to use VB at all. The answers were both for
> formulas used in the worksheet - to replace the ones returning the #Value
> error.
>
> Instead of using
>
> =B1-A1 to get the number of hours worked, use
>
> =IF(ISERROR(B1-A1),0,B1-A1)
>
> obviously adjust the B1 to indicate the cell in the row that has the
> finish time and A1 to indicate the cell in the row that has the start
> time.
>
>
> --
> Regards,
> Tom Ogilvy
>
> "DB" <(E-Mail Removed)> wrote in message
> news:4yXlh.23859$(E-Mail Removed)...
>> er............this is where I show my total ignorance.....
>>
>> I havent a clue about VB and do everything in crude methods....such as
>> working the maths out myself and then using the autosum to get my answers
>> in the way that I work them out.(If you follow me)
>>
>> If you have the time, tell me what to do where and i'll do it..
>>
>> Thanks
>>
>> Dave
>>
>> P.S. it's 23.15 here so Happy New Year to everyone
>>
>>
>>
>> "JMB" <(E-Mail Removed)> wrote in message
>> news:A72F79CE-756D-4E72-B923-(E-Mail Removed)...
>>> If they have the day off, do you want 0 hours to appear?
>>>
>>> You could use IsError inside of an IF statement to trap the error.
>>> =IF(ISERROR(B1-A1),0,B1-A1)
>>> where B1 is the end time and A1 is then start time. Substitute B1-A1
>>> for
>>> whatever formula you are using if it is different.
>>>
>>>
>>> "DB" wrote:
>>>
>>>> Hi...Im back again.............I thought i'd sorted it then this one
>>>> popped
>>>> up........
>>>>
>>>> I'm doing the time sheets for work (still!).........to try and keep it
>>>> simple, I input peoples start and finish times into a cell, that data
>>>> is
>>>> copied to a section lower down the page (this is eventually printed and
>>>> handed out so that the staff know who is doing what that week)
>>>> Well, it was working fine....till i tried something..
>>>>
>>>> The cells have the staff members name......their start time,their
>>>> finish
>>>> time...the finish time minus the start time gives the hours a person
>>>> works
>>>> that day.......so far so good......
>>>> If a person is off work then its displays DAY in the start time
>>>> box....and
>>>> OFF in the end time box - this makes it show #value! in the Hours
>>>> box.......this I can sort of live with....but......the worksheet also
>>>> adds
>>>> up the persons hours.......but what with this #value
>>>> in one of the cells - it is stopping it from adding up.
>>>>
>>>> If we had permanent static duties it wouldnt be a problem - but every
>>>> ow and
>>>> again a person works extra.
>>>>
>>>> How can I make an entry that will allow this ?
>>>>
>>>> All help appreciated - Dave
>>>>
>>>>
>>>>
>>>>
>>>> MONDAY DAY OFF #VALUE!
>>>> TUESDAY 08:20 17:30 9:10
>>>> WEDNESDAY 08:50 18:20 9:30
>>>> THURSDAY 08:50 12:40 3:50
>>>> FRIDAY 08:50 17:35 8:45
>>>> SATURDAY 08:50 17:35 8:45
>>>>
>>>> TOTAL HOURS #VALUE!
>>>>
>>>>
>>>>
>>>> I can email the worksheet if you want it
>>>>
>>>>
>>>>

>>
>>

>
>



 
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 solve? Lee Tow Microsoft Windows 2000 2 29th Mar 2006 05:28 AM
how to solve this? jackoat Microsoft Excel Programming 0 29th Mar 2006 01:11 AM
..:: Please solve this ::.. dealoflove Microsoft Excel Discussion 6 25th Mar 2006 10:36 PM
Please help me to solve 2 Q? ANSWER Windows XP General 4 12th Apr 2005 12:27 AM
these URLs helped me solve my bridging problem...hope it can helps someone else and save the 3 days it took me to solve kenw Windows XP Networking 0 25th Jul 2003 06:21 PM


Features
 

Advertising
 

Newsgroups
 


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