Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Krista F
 
Posts: n/a
Default Difficult matrix query

Hello, I'm having some issues with the index, match function.

I'm trying to query a correlation matrix that has of course has the same
text values as row headers and column headers. The matrix values are numbers.

YEAR WW02 WW03 WW04
WW02 0 160.7 40.2
WW03 160.7 0 249.1
WW04 40.2 249.1 0

I need a formula that can give me the distances between any points eg WW04,
WW03 = 249.1.

Here is my formula:
=INDEX($B$2:$D$4,MATCH(--"WW04",$A$2:$A$4,0),MATCH(--"WW03",$B$2:$B$5,0))

Since I am combining text lookups and numeric output I thought the -- was
needed since I was getting #N/A errors. Can you combine -- with "" specific
values?

Sorry if this is unclear... I'm really stuck and I do NOT want to look all
these up by hand as I have nearly 65,000 data points...


  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

You almost have it:

=INDEX($B$2:$D$4,MATCH("WW04",$A$2:$A$4,0),MATCH
("WW03",$B$1:$D$1,0))

To understand the double unary (--)and it's usage, take a
look at:

http://tinyurl.com/5o7lm

HTH
Jason
Atlanta, GA

-----Original Message-----
Hello, I'm having some issues with the index, match

function.

I'm trying to query a correlation matrix that has of

course has the same
text values as row headers and column headers. The

matrix values are numbers.

YEAR WW02 WW03 WW04
WW02 0 160.7 40.2
WW03 160.7 0 249.1
WW04 40.2 249.1 0

I need a formula that can give me the distances between

any points eg WW04,
WW03 = 249.1.

Here is my formula:
=INDEX($B$2:$D$4,MATCH(--"WW04",$A$2:$A$4,0),MATCH(--

"WW03",$B$2:$B$5,0))

Since I am combining text lookups and numeric output I

thought the -- was
needed since I was getting #N/A errors. Can you

combine -- with "" specific
values?

Sorry if this is unclear... I'm really stuck and I do

NOT want to look all
these up by hand as I have nearly 65,000 data points...


.

  #3   Report Post  
Krista F
 
Posts: n/a
Default

Ah yes, I had just tried that and it finally worked... Thanks so much!

I just saved myself literally weeks on this analysis. Wish I had tried this
days ago....

"Jason Morin" wrote:

You almost have it:

=INDEX($B$2:$D$4,MATCH("WW04",$A$2:$A$4,0),MATCH
("WW03",$B$1:$D$1,0))

To understand the double unary (--)and it's usage, take a
look at:

http://tinyurl.com/5o7lm

HTH
Jason
Atlanta, GA

-----Original Message-----
Hello, I'm having some issues with the index, match

function.

I'm trying to query a correlation matrix that has of

course has the same
text values as row headers and column headers. The

matrix values are numbers.

YEAR WW02 WW03 WW04
WW02 0 160.7 40.2
WW03 160.7 0 249.1
WW04 40.2 249.1 0

I need a formula that can give me the distances between

any points eg WW04,
WW03 = 249.1.

Here is my formula:
=INDEX($B$2:$D$4,MATCH(--"WW04",$A$2:$A$4,0),MATCH(--

"WW03",$B$2:$B$5,0))

Since I am combining text lookups and numeric output I

thought the -- was
needed since I was getting #N/A errors. Can you

combine -- with "" specific
values?

Sorry if this is unclear... I'm really stuck and I do

NOT want to look all
these up by hand as I have nearly 65,000 data points...


.


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
Excel2000 ODBC query oddity Arvi Laanemets Excel Discussion (Misc queries) 0 March 10th 05 06:35 AM
Query of External Data Excel GuRu Excel Discussion (Misc queries) 2 January 3rd 05 07:43 PM
Microsoft Query Help Patti Excel Worksheet Functions 4 December 25th 04 09:54 AM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM
Editing MS Query Patti Excel Worksheet Functions 2 December 2nd 04 01:31 PM


All times are GMT +1. The time now is 05:47 AM.

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"