look between 2 cells and give the value of only 1

T

The-Jayhawk_fan

I am trying to get one cell to look at 2 others, determine which one has a
value, and use that value. for example, d3 has no value, d4 has a value of
2.333. how do i get d5 to look at the 2 cells and give me 2.333. Also,
sometimes d3 will have value and d4 won't. only one will have a value at any
given time. hope that is not too confusing.

thanks for the help.
 
P

Pogue

Sounds like a simple If statement. Type the following into the cell where
you want the value to appear:

=if(d3>0,d3,d4)

Assuming that d4 will always have a value if D3 doesn't.

Good luck!
 
P

Pogue

Alan's is better as it allows for negative #s.

Along that line, if you want to allow for 0 to be a valid answer go with:
=if(d3<>"",d3,d4)
 
F

FiluDlidu

=max(cell1,cell2)
,allows for your value to be either positive, nil or negative.

MIN function would also work.
 
Top