Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 994

Excel - If two cells are greater than 0, than return the cell that is greater, if only one cell is greater than 0, than return that value

$
0
0

I have been trying to figure this out for a while now but I'm stuck on the [value_if_false] part and I feel like it's really simple but it's not coming to me.

So basically, trying to display the greater of two numbers (in specific cells) if both of them are numbers, but if only one of them is a number, then display that number.

=IF(AND(L10>0,L20>0),IF(L10>L20,L10,L20),)

I cannot figure out for the life of me what comes after the comma, help would be much appreciated, sorry if this has been asked before, couldn't find it myself.


Viewing all articles
Browse latest Browse all 994

Trending Articles