Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
leo leo is offline
external usenet poster
 
Posts: 74
Default Timesheet formula problem

Trying to add two rows of times with the result in one cell, but having
trouble. When I try to add the two rows together, I get a $VALUE result.
The result for each row displays fine in the HOURS WORKED column on an
individual/per-row basis but I need to display just one result for both
rows - in the Row 2 cell of the HOURS WORKED column for that day. The
formulas for each row are shown below. Times are written in standard AM and
PM format. The IF statement are for controls to display standard (12-hr.)
time format, a text option for writing in notes, and so that 'zero' hours are
not displayed.

Row 1 formula:
=IF((ISTEXT(A3)),"",IF(ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)=0,"",ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)))

Row 2 formula:
=IF((ISTEXT(A4)),"",IF(ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)=0,"",ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)))

Timesheet format is as follows:

ACTUAL TIMES WORKED HOURS
IN OUT IN OUT WORKED
Row 1 8:00am 10:00am 11:30am 12:30pm 3*
Row 2 1:30pm 5:00pm 6:00pm 8:00pm 5.5**

*Do not want any hours to display here
**Need total hours for both rows (8.5) to display here

Thank you for any help you can send my way!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Timesheet formula problem

Why not no formula at all in row1, and
=IF((ISTEXT(A3)),"",IF(ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)=0,"",ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)))+IF((ISTEXT(A4)),"",IF(ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)=0,"",ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)))
in row2?

--
Regards!
Stefi



Leo ezt *rta:

Trying to add two rows of times with the result in one cell, but having
trouble. When I try to add the two rows together, I get a $VALUE result.
The result for each row displays fine in the HOURS WORKED column on an
individual/per-row basis but I need to display just one result for both
rows - in the Row 2 cell of the HOURS WORKED column for that day. The
formulas for each row are shown below. Times are written in standard AM and
PM format. The IF statement are for controls to display standard (12-hr.)
time format, a text option for writing in notes, and so that 'zero' hours are
not displayed.

Row 1 formula:
=IF((ISTEXT(A3)),"",IF(ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)=0,"",ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)))

Row 2 formula:
=IF((ISTEXT(A4)),"",IF(ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)=0,"",ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)))

Timesheet format is as follows:

ACTUAL TIMES WORKED HOURS
IN OUT IN OUT WORKED
Row 1 8:00am 10:00am 11:30am 12:30pm 3*
Row 2 1:30pm 5:00pm 6:00pm 8:00pm 5.5**

*Do not want any hours to display here
**Need total hours for both rows (8.5) to display here

Thank you for any help you can send my way!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
leo leo is offline
external usenet poster
 
Posts: 74
Default Timesheet formula problem

Thanks for your reply Stefi, but for some reason that formula returns a
"#VALUE" error. I have also tried the SUM function and it gives me the same
result. Any other suggestions?

Thanks again!

"Stefi" wrote:

Why not no formula at all in row1, and
=IF((ISTEXT(A3)),"",IF(ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)=0,"",ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)))+IF((ISTEXT(A4)),"",IF(ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)=0,"",ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)))
in row2?

--
Regards!
Stefi



Leo ezt *rta:

Trying to add two rows of times with the result in one cell, but having
trouble. When I try to add the two rows together, I get a $VALUE result.
The result for each row displays fine in the HOURS WORKED column on an
individual/per-row basis but I need to display just one result for both
rows - in the Row 2 cell of the HOURS WORKED column for that day. The
formulas for each row are shown below. Times are written in standard AM and
PM format. The IF statement are for controls to display standard (12-hr.)
time format, a text option for writing in notes, and so that 'zero' hours are
not displayed.

Row 1 formula:
=IF((ISTEXT(A3)),"",IF(ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)=0,"",ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)))

Row 2 formula:
=IF((ISTEXT(A4)),"",IF(ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)=0,"",ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)))

Timesheet format is as follows:

ACTUAL TIMES WORKED HOURS
IN OUT IN OUT WORKED
Row 1 8:00am 10:00am 11:30am 12:30pm 3*
Row 2 1:30pm 5:00pm 6:00pm 8:00pm 5.5**

*Do not want any hours to display here
**Need total hours for both rows (8.5) to display here

Thank you for any help you can send my way!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Timesheet formula problem

See the answer to the same question you asked in
microsoft.public.excel.misc.
--
David Biddulph

Leo wrote:
Thanks for your reply Stefi, but for some reason that formula returns
a "#VALUE" error. I have also tried the SUM function and it gives me
the same result. Any other suggestions?

Thanks again!

"Stefi" wrote:

Why not no formula at all in row1, and
=IF((ISTEXT(A3)),"",IF(ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)=0,"",ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)))+IF((ISTEXT(A4)),"",IF(ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)=0,"",ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)))
in row2?

--
Regards!
Stefi



"Leo" ezt rta:

Trying to add two rows of times with the result in one cell, but
having trouble. When I try to add the two rows together, I get a
"$VALUE" result. The result for each row displays fine in the
HOURS WORKED column on an individual/per-row basis -- but I need to
display just one result for both rows - in the "Row 2" cell of the
"HOURS WORKED" column for that day. The formulas for each row are
shown below. Times are written in standard AM and PM format. The
IF statement are for controls to display standard (12-hr.) time
format, a text option for writing in notes, and so that 'zero'
hours are not displayed.

Row 1 formula:
=IF((ISTEXT(A3)),"",IF(ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)=0,"",ROUND((((B3-A3)+(D3-C3))-INT((B3-A3)+(D3-C3)))*24,2)))

Row 2 formula:
=IF((ISTEXT(A4)),"",IF(ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)=0,"",ROUND((((B4-A4)+(D4-C4))-INT((B4-A4)+(D4-C4)))*24,2)))

Timesheet format is as follows:

ACTUAL TIMES WORKED HOURS
IN OUT IN OUT
WORKED
Row 1 8:00am 10:00am 11:30am 12:30pm 3*
Row 2 1:30pm 5:00pm 6:00pm 8:00pm 5.5**

*Do not want any hours to display here
**Need total hours for both rows (8.5) to display here

Thank you for any help you can send my way!



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
timesheet problem TUNGANA KURMA RAJU Excel Discussion (Misc queries) 0 March 30th 09 08:30 PM
Somewhat complex timesheet problem. Don Excel Worksheet Functions 2 December 14th 06 05:05 PM
Timesheet maximum hours problem Good Time Excel Worksheet Functions 7 November 12th 05 01:49 PM
Timesheet problem Oi you Excel Discussion (Misc queries) 3 October 18th 05 09:01 PM
Timesheet Problem GregR Excel Discussion (Misc queries) 4 December 6th 04 07:04 PM


All times are GMT +1. The time now is 08:54 AM.

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

About Us

"It's about Microsoft Excel"