ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   2 formulas in 1 cell (https://www.excelbanter.com/excel-worksheet-functions/221762-2-formulas-1-cell.html)

Max

2 formulas in 1 cell
 
If cell B2<B1 answer in A2 must be 0 and
if cell B2B1 answer in A2 must be equal to B1

Niek Otten

2 formulas in 1 cell
 
In A2:

=IF(B2<B1,0,B1)

But what if B2 = B1?

Please be always very specific with , < =, <=, etc

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"MAX" wrote in message
...
If cell B2<B1 answer in A2 must be 0 and
if cell B2B1 answer in A2 must be equal to B1



David Biddulph[_2_]

2 formulas in 1 cell
 
=IF(B2<B1,0,IF(B2B1,B1,"I haven't a clue what answer is required if B2=B1,
so I haven't specfied it"))
--
David Biddulph

MAX wrote:
If cell B2<B1 answer in A2 must be 0 and
if cell B2B1 answer in A2 must be equal to B1




Max

2 formulas in 1 cell
 
It works perfectly with the formula you gave me.

"Niek Otten" wrote:

In A2:

=IF(B2<B1,0,B1)

But what if B2 = B1?

Please be always very specific with , < =, <=, etc

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"MAX" wrote in message
...
If cell B2<B1 answer in A2 must be 0 and
if cell B2B1 answer in A2 must be equal to B1




Teethless mama

2 formulas in 1 cell
 
=(B2B1)*B1


"MAX" wrote:

If cell B2<B1 answer in A2 must be 0 and
if cell B2B1 answer in A2 must be equal to B1


Max

2 formulas in 1 cell
 
Thank you for your formula, I will use this in the future

"Teethless mama" wrote:

=(B2B1)*B1


"MAX" wrote:

If cell B2<B1 answer in A2 must be 0 and
if cell B2B1 answer in A2 must be equal to B1



All times are GMT +1. The time now is 01:11 AM.

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