Hi,
I've been using a combination of Index Match and Aggregate for other similar functions that have been working very well. However, this specific one seems to not return the proper output for the match function.
This is for use in a dynamic table that returns ranked results from a list of parameters:
Here are the parameters:
If you look at the formula in the cell under the header "Name", it should return something like "JOHN DEERE CANADA FND IN" (column #25 in match array) but instead it returns "CAD" which isn't the column that it should return (#23 in match array).
This is part of the table that it refers to:
Any clue on what is going here? Why is it returning the wrong column in the index match function?
Any help will be INCREDIBLY appreciated.
Thank you!
P.S. Could it be related to the fact that the last table that the index match refers to is not in the same workbook and is located somewhere else on the computer or that has nothing to do with it?
I've been using a combination of Index Match and Aggregate for other similar functions that have been working very well. However, this specific one seems to not return the proper output for the match function.
This is for use in a dynamic table that returns ranked results from a list of parameters:
Here are the parameters:
Security selection dashboard - 2020-04-30.xlsx | ||||
---|---|---|---|---|
R | S | |||
31 | Criteria | Parameters | ||
32 | Min Mat YR | 2020 | ||
33 | Max Mat YR | 2040 | ||
34 | Rating | A | ||
35 | Spread > | All | ||
36 | Sector 1 | All | ||
37 | Sector 2 | All | ||
38 | Coupon Type | All | ||
39 | ||||
Dashboard |
If you look at the formula in the cell under the header "Name", it should return something like "JOHN DEERE CANADA FND IN" (column #25 in match array) but instead it returns "CAD" which isn't the column that it should return (#23 in match array).
Security selection dashboard - 2020-04-30.xlsx | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
31 | ID_CUSIP | Name | Ticker | Coupon Rate | Maturity Date | Sector 1 | Sector 2 | Rating | RSK_BB_ISSUER_DEFAULT | BB_5Y_DEFAULT_PROB | Yield | Ask Spread | Base Currency | COUNTRY | CPN_TYP | ||
32 | 013051DW4 | CAD | 2 | CAD | CAD | CAD | CAD | 2 | |||||||||
Dashboard |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A32:H32,K32:O32 | A32 | =IFERROR(INDEX('[CORE PORT.xlsm]PORTF'!$A$8:$AA$1000, AGGREGATE(15,6,ROW('[CORE PORT.xlsm]PORTF'!$A$9:$A$1000)/ IF($S$32="All",1,(YEAR('[CORE PORT.xlsm]PORTF'!$E$9:$E$1000)>=$S$32))/ IF($S$33="All",1,(YEAR('[CORE PORT.xlsm]PORTF'!$E$9:$E$1000)<=$S$33))/ IF($S$34="All",1,(('[CORE PORT.xlsm]PORTF'!$S$9:$S$1000=$S$34)+('[CORE PORT.xlsm]PORTF'!$S$9:$S$1000=$S$4&"-")+('[CORE PORT.xlsm]PORTF'!$S$9:$S$1000=$S$4&"+")))/ IF($S$35="All",1,('[CORE PORT.xlsm]PORTF'!$G$9:$G$1000>$S$35))/ IF($S$36="All",1,('[CORE PORT.xlsm]PORTF'!$Q$9:$Q$1000=$S$36))/ IF($S$37="All",1,('[CORE PORT.xlsm]PORTF'!$R$9:$R$1000=$S$37))/ IF($S$38="All",1,('[CORE PORT.xlsm]PORTF'!$V$9:$V$1000=$S$38)), ROWS(A$32:A32)),MATCH(A$31,'[CORE PORT.xlsm]PORTF'!$A$8:$AA$8)),"") |
Press CTRL+SHIFT+ENTER to enter array formulas. |
This is part of the table that it refers to:
Book1 | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | |||
8 | CUSIP | Pos MM$ | TICKER | COUPON RATE | MATURITY DATE | PX_LAST | YIELD | YAS_YLD_SPREAD | G-Spread Percentile between MIN/MAX Hist. Spread. | YAS_BNCHMRK_SECURITY_DES | DUR_ADJ_MID | PV01 | $PV01 | INT_ACC | Amount MM$ | Inc Accr | SECTOR 1 | SECTOR 2 | Rating | NXT CPN | COUNTRY | CPN_TYP | Base Currency | Settle | NAME | Avg Cost | Coupon Frequency | ||
9 | 25675TAD9 | 1.000 | DOLCN | 2.34% | 22-Jul-21 | CORP | Consumer, Cyclical | BBB | - | CANADA | FIXED | CAD | 3-Sep-19 | DOLLARAMA INC | 100.370 | 2 | |||||||||||||
10 | 47787ZBW1 | 0.444 | DE | 2.70% | 12-Oct-21 | CORP | Industrial | A | - | CANADA | FIXED | CAD | 5-Feb-19 | JOHN DEERE CANADA FND IN | 100.165 | 2 | |||||||||||||
11 | 154728AN9 | 1.100 | CTLONE | 2.60% | 7-Nov-22 | CORP | Banks | A- | - | CANADA | FIXED | CAD | 5-Feb-19 | CENTRAL 1 CREDIT UNION | 98.200 | 2 | |||||||||||||
12 | 190330AC4 | 1.000 | COCAPS | 5.00% | 3-May-23 | CORP | Diversified Finan Serv | BBB | - | CANADA | VARIABLE | CAD | 5-Feb-19 | COAST CAPITAL SV CRE UN | 102.938 | 2 | |||||||||||||
13 | 013051DM6 | 0.200 | ALTA | 3.10% | 1-Jun-24 | PROV | ALTA | AA- | - | CANADA | FIXED | CAD | 13-Mar-20 | PROVINCE OF ALBERTA | 107.762 | 2 | |||||||||||||
14 | 80310ZAC3 | 0.600 | SAPCN | 2.83% | 21-Nov-23 | CORP | Consumer, Non-cyclical | BBB+ | - | CANADA | FIXED | CAD | 5-Feb-19 | SAPUTO INC | 98.788 | 2 | |||||||||||||
15 | 06415ELY9 | 1.000 | BNS | 3.89% | 18-Jan-24 | CORP | Banks | BBB+ | - | CANADA | VARIABLE | CAD | 5-Feb-19 | BANK OF NOVA SCOTIA | 101.838 | 2 | |||||||||||||
16 | 07813ZBZ6 | 1.000 | BCECN | 3.35% | 12-Mar-25 | CORP | Communications | BBB+ | - | CANADA | FIXED | CAD | 5-Feb-19 | BELL CANADA | 100.650 | 2 | |||||||||||||
17 | 013051DW4 | - | ALTA | 2.55% | 1-Jun-27 | PROV | ALTA | AA- | - | CANADA | FIXED | CAD | 13-Mar-20 | PROVINCE OF ALBERTA | 106.334 | 2 | |||||||||||||
Sheet1 |
Any clue on what is going here? Why is it returning the wrong column in the index match function?
Any help will be INCREDIBLY appreciated.
Thank you!
P.S. Could it be related to the fact that the last table that the index match refers to is not in the same workbook and is located somewhere else on the computer or that has nothing to do with it?