ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula greater than (https://www.excelbanter.com/excel-worksheet-functions/196385-formula-greater-than.html)

Mel[_2_]

Formula greater than
 
Hi
I was wondering whether you can help with a problem I have, for example
IF cell A4 totals 9 how can I write a formula in cell B4 to to say A4 6 and
put the remaining total into B4 ie 3. hope this makes sense.
That was random numbers, but what I need to do is anything more than the
number I specify I want the remaining total to show in cell B4
Regards
--
Mel

John C[_2_]

Formula greater than
 
B4: =IF(A46,A4-6,"")
--
John C


"Mel" wrote:

Hi
I was wondering whether you can help with a problem I have, for example
IF cell A4 totals 9 how can I write a formula in cell B4 to to say A4 6 and
put the remaining total into B4 ie 3. hope this makes sense.
That was random numbers, but what I need to do is anything more than the
number I specify I want the remaining total to show in cell B4
Regards
--
Mel


T. Valko

Formula greater than
 
You haven't said what should happen if A4<6. So, maybe something like this:

=MAX(0,A4-6)

If A4<=6 the formula returns 0.

--
Biff
Microsoft Excel MVP


"Mel" wrote in message
...
Hi
I was wondering whether you can help with a problem I have, for example
IF cell A4 totals 9 how can I write a formula in cell B4 to to say A4 6
and
put the remaining total into B4 ie 3. hope this makes sense.
That was random numbers, but what I need to do is anything more than the
number I specify I want the remaining total to show in cell B4
Regards
--
Mel





All times are GMT +1. The time now is 04:33 PM.

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