Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 75
Default if with or condition

Dear All,

i have the series of time in coloumn. I want to sum only that times duration
which are less then 10 min. or more then 5 min. all other will be count as
zero.

Thanks & regards
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default if with or condition

Try:

=SUMIF(A1:A30,"="&TIME(0,5,))-SUMIF(A1:A30,""&TIME(0,10,))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Hassan" wrote in message
...
Dear All,

i have the series of time in coloumn. I want to sum only that times
duration
which are less then 10 min. or more then 5 min. all other will be count as
zero.

Thanks & regards



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default if with or condition

Try this

=SUMIF(A1:A19,""&TIME(0,5,0))-SUMIF(A1:A19,""&TIME(0,10,0))

Mike
Bothe formatted correctly as time

Mike

"Hassan" wrote:

Dear All,

i have the series of time in coloumn. I want to sum only that times duration
which are less then 10 min. or more then 5 min. all other will be count as
zero.

Thanks & regards

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default if with or condition

which are less then 10 min. or more then 5 min.

If you mean both including both 5 min and 10 min thenb use the formula I
posted.

If you mean not including either 5 min ot 10 min then use Mike's formula.

Or if you want to include both 5 min but not 10 min in the addition use:

=SUMIF(A1:A30,"="&TIME(0,5,))-SUMIF(A1:A30,"="&TIME(0,10,))


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Sandy Mann" wrote in message
...
Try:

=SUMIF(A1:A30,"="&TIME(0,5,))-SUMIF(A1:A30,""&TIME(0,10,))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Hassan" wrote in message
...
Dear All,

i have the series of time in coloumn. I want to sum only that times
duration
which are less then 10 min. or more then 5 min. all other will be count
as
zero.

Thanks & regards






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default if with or condition

=SUM(SUMIF(A:A,{"0:05:00","=0:10:00"})*{1,-1})


"Hassan" wrote:

Dear All,

i have the series of time in coloumn. I want to sum only that times duration
which are less then 10 min. or more then 5 min. all other will be count as
zero.

Thanks & regards



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default if with or condition

Hi TM,
I didn't know you could give multiple criteria to SUMIF (and COUNTIF, I
discovered). XL seems to deal with your formula as an array formula, but
doesn't need to be array entered.
Always learning.
Regards - Dave.
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
if condition Christopher Naveen[_2_] Excel Worksheet Functions 12 April 22nd 08 12:46 PM
lookup with multiple condition, but one condition to satisfy is en Eddy Stan Excel Worksheet Functions 2 October 27th 07 02:06 PM
Combine an OR condition with an AND condition Will Excel Discussion (Misc queries) 1 April 6th 07 03:52 PM
Condition 1 overules condition 2? Bultgren Excel Worksheet Functions 2 January 20th 06 12:29 PM
How to set condition: A1=A2=A3= ... =A10 0-0 Wai Wai ^-^ Excel Worksheet Functions 9 December 12th 05 02:47 PM


All times are GMT +1. The time now is 08:44 PM.

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"