ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   look between 2 cells and give the value of only 1 (https://www.excelbanter.com/excel-discussion-misc-queries/68279-look-between-2-cells-give-value-only-1-a.html)

The-Jayhawk_fan

look between 2 cells and give the value of only 1
 
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.

Pogue

look between 2 cells and give the value of only 1
 
Sounds like a simple If statement. Type the following into the cell where
you want the value to appear:

=if(d30,d3,d4)

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

Good luck!

"The-Jayhawk_fan" wrote:

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.


Alan

look between 2 cells and give the value of only 1
 
=IF(D3<0,D3,D4)
Regards,
Alan.
"The-Jayhawk_fan" wrote in
message ...
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.




Pogue

look between 2 cells and give the value of only 1
 
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)

"The-Jayhawk_fan" wrote:

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.


FiluDlidu

look between 2 cells and give the value of only 1
 
=max(cell1,cell2)
,allows for your value to be either positive, nil or negative.

MIN function would also work.

"The-Jayhawk_fan" wrote:

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.



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

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