ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If, greater than (https://www.excelbanter.com/excel-worksheet-functions/189154-if-greater-than.html)

Jerre

If, greater than
 
I need, if a1 is greater than b1 than print a1. If b1 is greater than a1
than print b1. I haven't been able to find anything of any help in the help
screens.
--
Jerre

Jim Thomlinson

If, greater than
 
=if(a1b1, a1, b1)
--
HTH...

Jim Thomlinson


"Jerre" wrote:

I need, if a1 is greater than b1 than print a1. If b1 is greater than a1
than print b1. I haven't been able to find anything of any help in the help
screens.
--
Jerre


Rick Rothstein \(MVP - VB\)[_552_]

If, greater than
 
This formula should do what you want...

=MAX(A1,B1)

Rick


"Jerre" wrote in message
...
I need, if a1 is greater than b1 than print a1. If b1 is greater than a1
than print b1. I haven't been able to find anything of any help in the
help
screens.
--
Jerre



T. Valko

If, greater than
 
Try this:

=MAX(A1,B1)

--
Biff
Microsoft Excel MVP


"Jerre" wrote in message
...
I need, if a1 is greater than b1 than print a1. If b1 is greater than a1
than print b1. I haven't been able to find anything of any help in the
help
screens.
--
Jerre




Otto Moehrbach[_2_]

If, greater than
 
What do you mean by "print"? HTH Otto
"Jerre" wrote in message
...
I need, if a1 is greater than b1 than print a1. If b1 is greater than a1
than print b1. I haven't been able to find anything of any help in the
help
screens.
--
Jerre





All times are GMT +1. The time now is 07:13 AM.

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