Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default What formula figures less than & greater than?

I need a formula that adds all hours 6 and under (for example: If the hours
are 5, 6, 7, 5, 8 then I want the sum to be 28 (5+6+6+5+6)). I also need a
formula that will then add all hours over 6 (for example: If the hours are 8,
7, 6, 9, 6, 8 then I want the sum to be 8 (2+1+0+3+0+2)).
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default What formula figures less than & greater than?


If your hours are in A1:A5

=SUM(IF(A1:A5<6,A1:A5,6))

and

=SUM(IF(A1:A56,A1:A5-6,0))

both confirmed with CTRL+SHIFT+ENTER


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=569678

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default What formula figures less than & greater than?


If your hours are in A1:A5

=SUM(IF(A1:A5<6,A1:A5,6))

and

=SUM(IF(A1:A56,A1:A5-6,0))

both confirmed with CTRL+SHIFT+ENTER


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=569678

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default What formula figures less than & greater than?

Kammy
A quick fix would be
Create a column next to the given values ( assume values in ColA, R1...Rx)
In Col B1 enter =IF(A1<7,MOD(A1,7),6)
and copy this formula down as far as is required.
Then Sum Col B with the formulas
If necessary the column could be hidden and the sum formula placed in Col A
For the second part - same principle but the formula would be
=MOD(A1,6)

Hope this is clear and helps

--
Don C


"Kammy" wrote:

I need a formula that adds all hours 6 and under (for example: If the hours
are 5, 6, 7, 5, 8 then I want the sum to be 28 (5+6+6+5+6)). I also need a
formula that will then add all hours over 6 (for example: If the hours are 8,
7, 6, 9, 6, 8 then I want the sum to be 8 (2+1+0+3+0+2)).

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 to find greater of two values??? Scott302 Excel Discussion (Misc queries) 4 March 4th 06 11:11 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Formula for number of entries in colum that are greater than 2 hr Nancy L New Users to Excel 1 January 30th 06 06:09 PM
trying to make a formula for percent if greater than a value cervenyc Excel Discussion (Misc queries) 10 January 12th 06 05:45 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


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