#1   Report Post  
 
Posts: n/a
Default Match - #N/A

Short question: What am I doing wrong?

I have a range of cells:

The range of cells (C22:ap34) is populated by the formula:
=INDIRECT(C$4&"!E"&$A22) thru =INDIRECT(AP$4&"!E"&$A34) - this created
a summary table pulling the values from other sheets as indicated by
the column header, always found in row 4.

In cell C20, I have the formula: =MAX(C22:AP34) - which shows me the
max value in that range.

In a cell, adjacent to the cell showing the max value, I want to show
the row and column header that matches that maximum value.

I have entered and INDEX/MATCH formula, but it will only result in a
"#N/A" error. I have tried it using the actual number instead of the
cell reference (C20) to the max value. I have tried to enter the match
formula on its own. I am using the ,0 parameter for an exact match, but
the same "#N/A" appears if I change it to ,1 or ,-1. Here's that exact
formula:

=INDEX(C21:AP21,MATCH(C20,C22:AP34,0))

The column headers are repeated on C21:AP21.

What am I doing wrong? Is the range too large - is it the formula that
populates the range?

  #2   Report Post  
Domenic
 
Posts: n/a
Default

Assumptions:

C4:AP4 contains your column headers

B22:B34 contains your row headers


Formulas (all formulas need to be confirmed with CONTROL+SHIFT+ENTER,
not just ENTER):

For the row header, try...

=INDEX(B22:B34,MIN(IF((ISNUMBER(C22:AP34))*(C22:AP 34=C20),ROW(C22:AP34)-R
OW(C22)+1)))

For the column header, try...

=INDEX(C4:AP4,MATCH(C20,INDEX(C22:AP34,MIN(IF((ISN UMBER(C22:AP34))*(C22:A
P34=C20),ROW(C22:AP34)-ROW(C22)+1)),0),0))

For the row number, relative to the first row in your sheet, try...

=MIN(IF((ISNUMBER(C22:AP34))*(C22:AP34=C20),ROW(C2 2:AP34)))

For the row number, relative to the first row in your table, try...

=MIN(IF((ISNUMBER(C22:AP34))*(C22:AP34=C20),ROW(C2 2:AP34)-ROW(C22)+1))

Note that if the maximum value contained in your table is 100, and cells
H28 and T23 contain 100, the formula will return the co-ordinates for
T23.

Hope this helps!

In article .com,
wrote:

Short question: What am I doing wrong?

I have a range of cells:

The range of cells (C22:ap34) is populated by the formula:
=INDIRECT(C$4&"!E"&$A22) thru =INDIRECT(AP$4&"!E"&$A34) - this created
a summary table pulling the values from other sheets as indicated by
the column header, always found in row 4.

In cell C20, I have the formula: =MAX(C22:AP34) - which shows me the
max value in that range.

In a cell, adjacent to the cell showing the max value, I want to show
the row and column header that matches that maximum value.

I have entered and INDEX/MATCH formula, but it will only result in a
"#N/A" error. I have tried it using the actual number instead of the
cell reference (C20) to the max value. I have tried to enter the match
formula on its own. I am using the ,0 parameter for an exact match, but
the same "#N/A" appears if I change it to ,1 or ,-1. Here's that exact
formula:

=INDEX(C21:AP21,MATCH(C20,C22:AP34,0))

The column headers are repeated on C21:AP21.

What am I doing wrong? Is the range too large - is it the formula that
populates the range?

  #3   Report Post  
 
Posts: n/a
Default

Thanks for the effort, but I am still getting a #N/A error for the
Column Header formula. And I did enter it as an array formula.

I didn't try the Row Header formula - it was easier to use Conditional
Formatting to highlight the Row that I am looking for.

Will the Match function work on it's own? I suspect that is the source
of the #N/A error.

  #5   Report Post  
Morrigan
 
Posts: n/a
Default


Try this:

=CONCATENATE(IF(SUMPRODUCT(--(C22:AP34=C20)*COLUMN(C22:AP34))<=26,CHAR(SUMPRODU CT(--(C22:AP34=C20)*COLUMN(C22:AP34))+64),"A"&CHAR(SUMP RODUCT(--(C22:AP34=C20)*COLUMN(C22:AP34))+64-26)),SUMPRODUCT(--(C22:AP34=C20)*ROW(C22:AP34)))


Hope it helps.


--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=397291



  #7   Report Post  
Morrigan
 
Posts: n/a
Default


Sorry I misread your question, try this instead:

=CONCATENATE(OFFSET(A1,20,SUMPRODUCT(--(C22:AP34=C20)*COLUMN(C22:AP34))-1),SUMPRODUCT(--(C22:AP34=C20)*ROW(C22:AP34)))


--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=397291

  #8   Report Post  
Domenic
 
Posts: n/a
Default

I've just emailed you a sample file. Post back if you have any
questions or need further help.

In article .com,
wrote:

Sure -
is best for this.

Thanks

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
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 22nd 05 01:41 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 19th 05 09:27 PM
Match Function arguments Stan Altshuller Excel Worksheet Functions 3 March 11th 05 08:48 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


All times are GMT +1. The time now is 10:44 PM.

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

About Us

"It's about Microsoft Excel"