Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Need help with a formula

I need help figuring out a formula? Here is what I want to do

I want one cell to add up a column and if that number dosent reach 40 then
it takes more away from another cell but it only displays the 40 or lower and
then anything over the 40 will be displayed in another cell
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 913
Default Need help with a formula

On Sun, 3 Aug 2008 14:13:00 -0700, BruceK
wrote:

I need help figuring out a formula? Here is what I want to do

I want one cell to add up a column and if that number dosent reach 40 then
it takes more away from another cell but it only displays the 40 or lower and
then anything over the 40 will be displayed in another cell



Please explain in more detail.
Give an example of input and expected output.

How many cells are involved in this?

Are the firstly mentioned "another cell" the same cell as the secondly
mentioned "another cell".?

What do you mean by "it takes more away"?

Lars-Åke

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Need help with a formula

Ok here is what I have I am doing up a timesheets here in Fl I will be having
two colums for hours worked. ( Reg & OT) the company says that anything over
40 hours awekk is overtime and not untill you hit 40 hours but they also want
all over time in seprate columns

What I want to do is have reg time in one column and OT in another for each
day then at the bottom of the week total hours for each column and then below
that a row with what they would be paid on So one cell would show 40 hours
or less if no OT was done that week and other would show the over time(what
is over 40) if they had a combined Work time that was more the 40 hours

"Lars-Ã…ke Aspelin" wrote:

On Sun, 3 Aug 2008 14:13:00 -0700, BruceK
wrote:

I need help figuring out a formula? Here is what I want to do

I want one cell to add up a column and if that number dosent reach 40 then
it takes more away from another cell but it only displays the 40 or lower and
then anything over the 40 will be displayed in another cell



Please explain in more detail.
Give an example of input and expected output.

How many cells are involved in this?

Are the firstly mentioned "another cell" the same cell as the secondly
mentioned "another cell".?

What do you mean by "it takes more away"?

Lars-Ã…ke


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Need help with a formula

On Sun, 3 Aug 2008 14:13:00 -0700, BruceK
wrote:

I need help figuring out a formula? Here is what I want to do

I want one cell to add up a column and if that number dosent reach 40 then
it takes more away from another cell but it only displays the 40 or lower and
then anything over the 40 will be displayed in another cell


=MIN(40, SUM(A1:A100))
--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 913
Default Need help with a formula

Assuming you have some date information in column A and the actual
hours worked in column B.
Assuming row 1 is used for some header information and that rows 2 to
8 hold the data for one week.

Try this formula for the Regular time:

=MIN(40,SUM(B2:B8)

and this formula for the Overtime:

=MAX(0,SUM(B2:B8)-40)

Hope this helps.


With the following test data in B2:B8

6.5, 8.7, 7.1, 4.5, 9.8, 1.5, 0

the result will be 38.1 for regular time and 0 for Overtime

With the following test data in B2:B8

8.4, 6.9, 10.5, 11.0, 8.5, 4.0, 3.0

the result will be 40 for regular time an 12.3 for Overtime

Hope that is what you expect. / Lars-Åke



On Sun, 3 Aug 2008 14:48:00 -0700, BruceK
wrote:

Ok here is what I have I am doing up a timesheets here in Fl I will be having
two colums for hours worked. ( Reg & OT) the company says that anything over
40 hours awekk is overtime and not untill you hit 40 hours but they also want
all over time in seprate columns

What I want to do is have reg time in one column and OT in another for each
day then at the bottom of the week total hours for each column and then below
that a row with what they would be paid on So one cell would show 40 hours
or less if no OT was done that week and other would show the over time(what
is over 40) if they had a combined Work time that was more the 40 hours

"Lars-Åke Aspelin" wrote:

On Sun, 3 Aug 2008 14:13:00 -0700, BruceK
wrote:

I need help figuring out a formula? Here is what I want to do

I want one cell to add up a column and if that number dosent reach 40 then
it takes more away from another cell but it only displays the 40 or lower and
then anything over the 40 will be displayed in another cell



Please explain in more detail.
Give an example of input and expected output.

How many cells are involved in this?

Are the firstly mentioned "another cell" the same cell as the secondly
mentioned "another cell".?

What do you mean by "it takes more away"?

Lars-Åke





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Need help with a formula

Dick Thank you is there a way to make it so it will only show postive (over
40 hours ) in another cell?

"Dick Kusleika" wrote:

On Sun, 3 Aug 2008 14:13:00 -0700, BruceK
wrote:

I need help figuring out a formula? Here is what I want to do

I want one cell to add up a column and if that number dosent reach 40 then
it takes more away from another cell but it only displays the 40 or lower and
then anything over the 40 will be displayed in another cell


=MIN(40, SUM(A1:A100))
--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Need help with a formula

not sure, but this may help:

=MOD(SUM(A1:A100),40)

--


Gary


"BruceK" wrote in message
...
Dick Thank you is there a way to make it so it will only show postive (over
40 hours ) in another cell?

"Dick Kusleika" wrote:

On Sun, 3 Aug 2008 14:13:00 -0700, BruceK
wrote:

I need help figuring out a formula? Here is what I want to do

I want one cell to add up a column and if that number dosent reach 40 then
it takes more away from another cell but it only displays the 40 or lower
and
then anything over the 40 will be displayed in another cell


=MIN(40, SUM(A1:A100))
--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Need help with a formula

Thank you all with all your help I got it to work

"Gary Keramidas" wrote:

not sure, but this may help:

=MOD(SUM(A1:A100),40)

--


Gary


"BruceK" wrote in message
...
Dick Thank you is there a way to make it so it will only show postive (over
40 hours ) in another cell?

"Dick Kusleika" wrote:

On Sun, 3 Aug 2008 14:13:00 -0700, BruceK
wrote:

I need help figuring out a formula? Here is what I want to do

I want one cell to add up a column and if that number dosent reach 40 then
it takes more away from another cell but it only displays the 40 or lower
and
then anything over the 40 will be displayed in another cell

=MIN(40, SUM(A1:A100))
--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com




  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 913
Default Need help with a formula

If the sum of worked hours is e.g. 85, then the overtime is 45 but the
MOD formula only gives 5 so it does not work if the overtime is 40 or
more.

Lars-Åke

On Sun, 3 Aug 2008 19:03:05 -0400, "Gary Keramidas"
<GKeramidasATmsn.com wrote:

not sure, but this may help:

=MOD(SUM(A1:A100),40)


  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default Need help with a formula

wasn't figuring anyone was working over 80 hours

--

Gary
Excel 2003


"Lars-Åke Aspelin" wrote in message
...
If the sum of worked hours is e.g. 85, then the overtime is 45 but the
MOD formula only gives 5 so it does not work if the overtime is 40 or
more.

Lars-Åke

On Sun, 3 Aug 2008 19:03:05 -0400, "Gary Keramidas"
<GKeramidasATmsn.com wrote:

not sure, but this may help:

=MOD(SUM(A1:A100),40)



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
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula PJ[_3_] Excel Worksheet Functions 2 June 2nd 10 03:45 PM
Formula expected end of statement error, typing formula into cell as part of VBA macro [email protected] Excel Programming 1 July 20th 06 07:58 PM
Excel 2002 formula displayed not value formula option not checked Dean Excel Worksheet Functions 1 February 28th 06 02:31 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


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