Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Daminc
 
Posts: n/a
Default Showing the contents of a cell based on another cell


I sure it's quite simple but I'm having all sorts of problems with
this:

Background:

one cell gives me the MAX value of a range of cells
I want to then use that value to refer back to the range of cells and
return the value one column to the left

This formula returns "A4" which is the cell number for this result I
want to show but it just enters A4 not the contents of cell A4

="A"&(MATCH(B10,B2:B5,1)+1)

does that make sense?


--
Daminc
------------------------------------------------------------------------
Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074
View this thread: http://www.excelforum.com/showthread...hreadid=483454

  #2   Report Post  
Niek Otten
 
Posts: n/a
Default Showing the contents of a cell based on another cell

=INDIRECT("A"&(MATCH(B10,B2:B5,1)+1))

--
Kind regards,

Niek Otten

"Daminc" wrote in
message ...

I sure it's quite simple but I'm having all sorts of problems with
this:

Background:

one cell gives me the MAX value of a range of cells
I want to then use that value to refer back to the range of cells and
return the value one column to the left

This formula returns "A4" which is the cell number for this result I
want to show but it just enters A4 not the contents of cell A4

="A"&(MATCH(B10,B2:B5,1)+1)

does that make sense?


--
Daminc
------------------------------------------------------------------------
Daminc's Profile:
http://www.excelforum.com/member.php...o&userid=27074
View this thread: http://www.excelforum.com/showthread...hreadid=483454



  #3   Report Post  
DOR
 
Posts: n/a
Default Showing the contents of a cell based on another cell

=INDEX(A2:A5,MATCH(B10,B2:B5,0)) or

=INDEX(A2:A5,MATCH(MAX(B2:B5),B2:B5,0)) does it in one formula

HTH

  #4   Report Post  
Roger Govier
 
Posts: n/a
Default Showing the contents of a cell based on another cell

Hi Daminc

Try
=INDIRECT("A"&(MATCH(B10,B2:B5,1)+1))
or
=INDEX(A:A,MATCH(B10,B2:B5,1)+1)

Regards

Roger Govier


Daminc wrote:
I sure it's quite simple but I'm having all sorts of problems with
this:

Background:

one cell gives me the MAX value of a range of cells
I want to then use that value to refer back to the range of cells and
return the value one column to the left

This formula returns "A4" which is the cell number for this result I
want to show but it just enters A4 not the contents of cell A4

="A"&(MATCH(B10,B2:B5,1)+1)

does that make sense?


  #5   Report Post  
Daminc
 
Posts: n/a
Default Showing the contents of a cell based on another cell


This: =INDIRECT("A"&(MATCH(B10,B2:B5,1)+1)) worked great

I'll have to look at the INDIRECT function more closely I think :)


--
Daminc
------------------------------------------------------------------------
Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074
View this thread: http://www.excelforum.com/showthread...hreadid=483454



  #6   Report Post  
Daminc
 
Posts: n/a
Default Showing the contents of a cell based on another cell


Code:
--------------------
Term 1 Term 2 Term 3 Term 4
Class 1 200.0 98.0
Class 2 111.0 99.0
Class 3 100.0 97.9
Class 4 99.0 97.2

Average 127.5 98.0 No numbers No numbers

Winner Class 4 Class 2 #N/A #N/A
200.0 99.0 0.0 0.0
--------------------



I spoke too soon I think. That formula works for all of them apart from
"Class 1" which returns "Class 4" instead


--
Daminc
------------------------------------------------------------------------
Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074
View this thread: http://www.excelforum.com/showthread...hreadid=483454

  #7   Report Post  
DOR
 
Posts: n/a
Default Showing the contents of a cell based on another cell

I suspect the problem may be due to your using 1 as the third parameter
in MATCH - this requires the list to be in ascending sequence. I
suggest using 0 as the third parameter and/or using the formulas I
provided above, since your lists are not in sequence and you require an
exact match.

HTH

  #8   Report Post  
Daminc
 
Posts: n/a
Default Showing the contents of a cell based on another cell


Changing the third parameter to 0 did the job. Thanks DOR


--
Daminc
------------------------------------------------------------------------
Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074
View this thread: http://www.excelforum.com/showthread...hreadid=483454

  #9   Report Post  
DOR
 
Posts: n/a
Default Showing the contents of a cell based on another cell

You may have a problem with the +1 also following the match if youuse 0
as the third parameter, but a bigger question is what do you do if you
have two or more classes in a tie for first place?

DOR

  #10   Report Post  
Daminc
 
Posts: n/a
Default Showing the contents of a cell based on another cell


The +1 doesn't seem to be a problem at the moment and as for a tied
first place...well I'm not sure at the moment. I'm going to have to
face that hurdle if and when it arises.

Cheers for your help. If you have any other suggestions I'd be glad to
learn from them.


--
Daminc
------------------------------------------------------------------------
Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074
View this thread: http://www.excelforum.com/showthread...hreadid=483454

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
Getting contents of a cell when cell reference is in the sheet A Nelson Excel Discussion (Misc queries) 3 October 5th 05 06:46 PM
Conversion of Cell Contents into a Functional Worksheet name ? GMJT Excel Worksheet Functions 1 August 21st 05 04:59 PM
Using contents of a cell in a formula Mike Excel Discussion (Misc queries) 4 June 9th 05 03:10 AM
Function syntax to compare cell contents ES Excel Worksheet Functions 2 May 18th 05 03:53 PM
Sum numbers based on the contents of another cell Doreen Excel Worksheet Functions 5 May 5th 05 04:41 PM


All times are GMT +1. The time now is 01:33 PM.

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"