look between 2 cells and give the value of only 1

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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!
 
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)
 
=max(cell1,cell2)
,allows for your value to be either positive, nil or negative.

MIN function would also work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top