#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJ AJ is offline
external usenet poster
 
Posts: 99
Default <= Formula ?

Can someone please help. I think this is basic, but I must be overthinking it.

I need a formula to multiply 1.5 to the difference of 40 and C5 if the cell
is over 40.

IF(C5 <= 40, 0, IF (C540, C5-40 * 1.5.))

Like I said, basic, but can't figure it out.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default <= Formula ?

IF(C5 <= 40; 0; C5-40 * 1.5)

In BR we use ;
If doesnt work.. change ";" by ","

regards,
henrique.



"AJ" wrote in message
...
Can someone please help. I think this is basic, but I must be overthinking
it.

I need a formula to multiply 1.5 to the difference of 40 and C5 if the
cell
is over 40.

IF(C5 <= 40, 0, IF (C540, C5-40 * 1.5.))

Like I said, basic, but can't figure it out.
Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJ AJ is offline
external usenet poster
 
Posts: 99
Default <= Formula ?

Sorry - I received a 0 value for your formula below with "," as I got an
error using ";".
Anything else that could help?

"Henrique" wrote:

IF(C5 <= 40; 0; C5-40 * 1.5)

In BR we use ;
If doesnt work.. change ";" by ","

regards,
henrique.



"AJ" wrote in message
...
Can someone please help. I think this is basic, but I must be overthinking
it.

I need a formula to multiply 1.5 to the difference of 40 and C5 if the
cell
is over 40.

IF(C5 <= 40, 0, IF (C540, C5-40 * 1.5.))

Like I said, basic, but can't figure it out.
Thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default <= Formula ?

This is probably the formula you were looking for...

=IF(C5<=40,0,1.5*(C5-40))

However, you can do the same thing in a little easier fashion like this...

=1.5*MAX(0,C5-40)

This says if C5-40 is less than zero, multiply the 1.5 times zero (which
results in zero), otherwise multiply 1.5 times the difference.

Rick


"AJ" wrote in message
...
Can someone please help. I think this is basic, but I must be overthinking
it.

I need a formula to multiply 1.5 to the difference of 40 and C5 if the
cell
is over 40.

IF(C5 <= 40, 0, IF (C540, C5-40 * 1.5.))

Like I said, basic, but can't figure it out.
Thanks


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default <= Formula ?

I would change

C5 - 40 * 1.5

to

(C5-40) * 1.5

or

(40-C5) * 1.5

depending on what the OP means with "the difference of 40 and C5"

Lars-Åke

On Sun, 13 Jul 2008 13:09:14 -0300, "Henrique" wrote:

IF(C5 <= 40; 0; C5-40 * 1.5)

In BR we use ;
If doesnt work.. change ";" by ","

regards,
henrique.



"AJ" wrote in message
...
Can someone please help. I think this is basic, but I must be overthinking
it.

I need a formula to multiply 1.5 to the difference of 40 and C5 if the
cell
is over 40.

IF(C5 <= 40, 0, IF (C540, C5-40 * 1.5.))

Like I said, basic, but can't figure it out.
Thanks




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJ AJ is offline
external usenet poster
 
Posts: 99
Default <= Formula ?

Rick, that worked perfectly. Thanks for both of your help.


"Rick Rothstein (MVP - VB)" wrote:

This is probably the formula you were looking for...

=IF(C5<=40,0,1.5*(C5-40))

However, you can do the same thing in a little easier fashion like this...

=1.5*MAX(0,C5-40)

This says if C5-40 is less than zero, multiply the 1.5 times zero (which
results in zero), otherwise multiply 1.5 times the difference.

Rick


"AJ" wrote in message
...
Can someone please help. I think this is basic, but I must be overthinking
it.

I need a formula to multiply 1.5 to the difference of 40 and C5 if the
cell
is over 40.

IF(C5 <= 40, 0, IF (C540, C5-40 * 1.5.))

Like I said, basic, but can't figure it out.
Thanks



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default <= Formula ?

What's in C5?????

If you have hours in time format like 42:30 then modify Rick's suggested
formula as follows:

=1.5*MAX(0,C5-"40:00")*24



"AJ" wrote:

Sorry - I received a 0 value for your formula below with "," as I got an
error using ";".
Anything else that could help?

"Henrique" wrote:

IF(C5 <= 40; 0; C5-40 * 1.5)

In BR we use ;
If doesnt work.. change ";" by ","

regards,
henrique.



"AJ" wrote in message
...
Can someone please help. I think this is basic, but I must be overthinking
it.

I need a formula to multiply 1.5 to the difference of 40 and C5 if the
cell
is over 40.

IF(C5 <= 40, 0, IF (C540, C5-40 * 1.5.))

Like I said, basic, but can't figure it out.
Thanks



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



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