Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help Me I'm Stupid!!!


(This is for a time card) I need to add positive and negative numbers in
a column... if the value is over 40 I want to display 40 and place the
balance in the cell below as overtime hours... if it is under 40 just
display it and nothing below... Please help (pt. 1) Thanx


--
ryevick
------------------------------------------------------------------------
ryevick's Profile: http://www.excelforum.com/member.php...o&userid=28882
View this thread: http://www.excelforum.com/showthread...hreadid=486314

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Help Me I'm Stupid!!!

assuming cells B21 & B22

B21: =MIN(40,SUM(B1:B20))
B22: =IF(SUM(B1:B20)40,SUM(B1:B20)-40,"")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"ryevick" wrote in
message ...

(This is for a time card) I need to add positive and negative numbers in
a column... if the value is over 40 I want to display 40 and place the
balance in the cell below as overtime hours... if it is under 40 just
display it and nothing below... Please help (pt. 1) Thanx


--
ryevick
------------------------------------------------------------------------
ryevick's Profile:

http://www.excelforum.com/member.php...o&userid=28882
View this thread: http://www.excelforum.com/showthread...hreadid=486314



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help Me I'm Stupid!!!

=min(sum(A1:A50),40)

=if(sum(A1:A50)<=40,"",Sum(A1:A50)-40)

--
Regards,
Tom Ogilvy

"ryevick" wrote in
message ...

(This is for a time card) I need to add positive and negative numbers in
a column... if the value is over 40 I want to display 40 and place the
balance in the cell below as overtime hours... if it is under 40 just
display it and nothing below... Please help (pt. 1) Thanx


--
ryevick
------------------------------------------------------------------------
ryevick's Profile:

http://www.excelforum.com/member.php...o&userid=28882
View this thread: http://www.excelforum.com/showthread...hreadid=486314



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
Stupid bmoag New Users to Excel 1 November 15th 08 06:28 PM
Stupid, stupid question.... DS Excel Programming 3 September 25th 05 03:51 PM
Stupid Karine Setting up and Configuration of Excel 0 May 29th 05 09:56 AM
Stupid Karine Links and Linking in Excel 0 May 29th 05 09:56 AM
Stupid Karine Charts and Charting in Excel 0 May 29th 05 09:56 AM


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