ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Help Me I'm Stupid!!! (https://www.excelbanter.com/excel-programming/345981-help-me-im-stupid.html)

ryevick

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 :eek:


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


Bob Phillips[_6_]

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 :eek:


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

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




Tom Ogilvy

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 :eek:


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

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





All times are GMT +1. The time now is 02:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com