Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Using if in calculating hours

Hi...

This question is part of a weekly time recording sheet. I currently have set September month. 1st 7 columns is manually entered time using formatting hh:mm:ss and the next column is sum of the 7 columns using the formatting [h]:mm:ss.

I am trying to run a if statement where is the time is greater than 32 hours it should by Y in the cell k6 and if its less than 32 hours it should be N in the Cel K6.

I set this up

Logical test - I6time(32:00:00)
value_if_true - "Y"
value_if_false - "N"


But I am getting invalid in logical test.

Please suggest corrections.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Using if in calculating hours

Hi,

Am Mon, 14 Sep 2015 21:45:21 -0700 (PDT) schrieb :

Logical test - I6time(32:00:00)
value_if_true - "Y"
value_if_false - "N"


time only works for 0 to 24 hours.
Try instead:
=IF(I64/3,"Y","N")


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Using if in calculating hours

On Tuesday, 15 September 2015 11:28:31 UTC+5:30, Claus Busch wrote:
Hi,

Am Mon, 14 Sep 2015 21:45:21 -0700 (PDT) schrieb :

Logical test - I6time(32:00:00)
value_if_true - "Y"
value_if_false - "N"


time only works for 0 to 24 hours.
Try instead:
=IF(I64/3,"Y","N")


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional


Thanks it worked fine.

Can you help me in understanding the logic.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,182
Default Using if in calculating hours

On Tuesday, 15 September 2015 11:28:31 UTC+5:30, Claus Busch wrote:
Hi,

Am Mon, 14 Sep 2015 21:45:21 -0700 (PDT) schrieb
:

Logical test - I6time(32:00:00)
value_if_true - "Y"
value_if_false - "N"


time only works for 0 to 24 hours.
Try instead:
=IF(I64/3,"Y","N")


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional


Thanks it worked fine.

Can you help me in understanding the logic.


32 hours is 1 1/3 days!
4 divided by 3 = 1.333333333

--
Garry

Free usenet access at
http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Using if in calculating hours

On Tuesday, 15 September 2015 10:15:28 UTC+5:30, wrote:
Hi...

This question is part of a weekly time recording sheet. I currently have set September month. 1st 7 columns is manually entered time using formatting hh:mm:ss and the next column is sum of the 7 columns using the formatting [h]:mm:ss.

I am trying to run a if statement where is the time is greater than 32 hours it should by Y in the cell k6 and if its less than 32 hours it should be N in the Cel K6.

I set this up

Logical test - I6time(32:00:00)
value_if_true - "Y"
value_if_false - "N"


But I am getting invalid in logical test.

Please suggest corrections.


Got it Thanks
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
Formula for calculating target hours against actual hours Bootface Excel Worksheet Functions 12 June 6th 13 10:04 AM
Calculating hours between 35 and 40 Nucera Excel Worksheet Functions 3 October 26th 08 08:14 PM
Calculating hours Pagina-eind hyperlink probleem Excel Discussion (Misc queries) 3 October 18th 07 01:57 PM
Calculating hours Ian[_3_] Excel Worksheet Functions 8 September 19th 07 11:51 AM
calculating hours bus2408 Excel Worksheet Functions 2 June 23rd 05 02:39 PM


All times are GMT +1. The time now is 07:23 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"