Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
The-Jayhawk_fan
 
Posts: n/a
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Pogue
 
Posts: n/a
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Alan
 
Posts: n/a
Default 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.



  #4   Report Post  
Posted to microsoft.public.excel.misc
Pogue
 
Posts: n/a
Default 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.

  #5   Report Post  
Posted to microsoft.public.excel.misc
FiluDlidu
 
Posts: n/a
Default 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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Condensing a list/range with blank cells to a new list/range without blanks KR Excel Worksheet Functions 4 July 5th 05 04:23 PM
hilght cells at a give day chuck irven [email protected] Excel Worksheet Functions 1 June 27th 05 11:22 PM
monitoring a changing range of cells Kevin Excel Worksheet Functions 1 June 3rd 05 04:54 PM
calculate which cells in column A will give me the total of column Ken Excel Worksheet Functions 4 January 6th 05 06:25 AM


All times are GMT +1. The time now is 02:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"