ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Function Problem (https://www.excelbanter.com/excel-worksheet-functions/239666-function-problem.html)

SCP

Function Problem
 
Okay, here's my problem. I'm not sure if there's a way to do it, but I
cannot figure it out for the life of me.

I have 2 columns A and B
I have to subtract B from A
If it comes out with a negative number, I would like it to read 0 in the
column
If it's a positive number, I would like it to multiply it by 2.40

Is this even possible?

Thank You

Jacob Skaria

Function Problem
 
=IF(A5-B5<0,0,(A5-B5)*2.4)

OR

=MAX(0,(A5-B5)*2.4)

If this post helps click Yes
---------------
Jacob Skaria


"Scp" wrote:

Okay, here's my problem. I'm not sure if there's a way to do it, but I
cannot figure it out for the life of me.

I have 2 columns A and B
I have to subtract B from A
If it comes out with a negative number, I would like it to read 0 in the
column
If it's a positive number, I would like it to multiply it by 2.40

Is this even possible?

Thank You


Pete_UK

Function Problem
 
Put this in C2 (assuming you have a header row):

=MAX(0,A2-B2)*2.4

and copy down as required.

Hope this helps.

Pete

On Aug 13, 4:26*pm, Scp wrote:
Okay, here's my problem. *I'm not sure if there's a way to do it, but I
cannot figure it out for the life of me. *

I have 2 columns A and B
I have to subtract B from A
If it comes out with a negative number, I would like it to read 0 in the
column
If it's a positive number, I would like it to multiply it by 2.40

Is this even possible?

Thank You




All times are GMT +1. The time now is 05:19 PM.

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