ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   excel help (https://www.excelbanter.com/excel-programming/364024-excel-help.html)

msubks

excel help
 
I'm trying to generate a value equal to that of the greater value of 2
compare cells, any way to do this with an If statement. I have only been able
to generate "true" or False values.

Don Guillett

excel help
 
have a look in the help index for MAX or CEILING

--
Don Guillett
SalesAid Software

"msubks" wrote in message
...
I'm trying to generate a value equal to that of the greater value of 2
compare cells, any way to do this with an If statement. I have only been
able
to generate "true" or False values.




Tom Ogilvy

excel help
 
Assuming the values are numeric:

myVal = Application.Max(range("A1"),range("B9"))

--
Regards,
Tom Ogilvy


"msubks" wrote:

I'm trying to generate a value equal to that of the greater value of 2
compare cells, any way to do this with an If statement. I have only been able
to generate "true" or False values.



All times are GMT +1. The time now is 03:25 AM.

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