A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

multiplying a negative time value by a monetary rate



 
 
Thread Tools Display Modes
  #1  
Old June 13th, 2004, 12:08 AM
apogee
external usenet poster
 
Posts: n/a
Default multiplying a negative time value by a monetary rate

hi there, I have a cell that contains a negative value, which I need to
multiply by a rate. I have set to 1904 system, what I would like to do
is if the cell contains a negative value, disregard this and treat it
as zero in the calculation. I have tried if statements, but having no
luck with it. The formula I have in the sheet is

=(DAY(O18)*24*$AM$8)+(HOUR(O18)*$AM$8)+(MINUTE(O18/60*$AM$8))-AL18

where o18 is the negative value and $am$8 is the rate. Cell o18
contains only a time value. the main problem is that this value is the
result of a formula, where the result could be either positive or
negative. is there a way to modify the above formula to basically
disregard negative values but still calculate for positive ones.


Any help would be greatly appreciated as I am struggling big time with
this


---
Message posted from http://www.ExcelForum.com/

  #2  
Old June 13th, 2004, 12:37 AM
JE McGimpsey
external usenet poster
 
Posts: n/a
Default multiplying a negative time value by a monetary rate

If I understand you correctly:

=MAX(0, O18 * 24 * $AM$8) - AL18


In article ,
apogee wrote:

hi there, I have a cell that contains a negative value, which I need to
multiply by a rate. I have set to 1904 system, what I would like to do
is if the cell contains a negative value, disregard this and treat it
as zero in the calculation. I have tried if statements, but having no
luck with it. The formula I have in the sheet is

=(DAY(O18)*24*$AM$8)+(HOUR(O18)*$AM$8)+(MINUTE(O18/60*$AM$8))-AL18

where o18 is the negative value and $am$8 is the rate. Cell o18
contains only a time value. the main problem is that this value is the
result of a formula, where the result could be either positive or
negative. is there a way to modify the above formula to basically
disregard negative values but still calculate for positive ones.


Any help would be greatly appreciated as I am struggling big time with
this

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.