Forum Discussion
DarianLT
Dec 01, 2021Copper Contributor
Match Function help
I am using this function with my excel formula =INDEX(Total_Revenue,MATCH(1,($I$4=Ticker_Symbol)*(I$5=year),0)) it is not matching correctly and giving me a N/A. This is a link to it. Please let me k...
- Dec 01, 2021
=INDEX(Total_Revenue,MATCH(1,(I4=Ticker_Symbol)*(I5=Years),0))
Is this what you are looking for? I adjusted the named ranges "Years" to =projectdata!$B$2:$B$1711 and Ticker_Symbol to =projectdata!$A$2:$A$1711 and now the formula returns the expected result in my spreadsheet.
Juliano-Petrukio
Dec 01, 2021Bronze Contributor
There are 2 problems
- The formula is written "Year" instead "Years" interval.
- "Year 2 " contains an extra space character.
Just to be easier to understand I would put like this:
=INDEX(Total_Revenue,MATCH(1,(Ticker_Symbol=I4)*(Years=I6),0))
Ps.: Depending of your excel version, you can try new formulas such as FILTER() and XLOOKUP().
Find attached
DarianLT
Dec 01, 2021Copper Contributor
The year to years solution really made the world of difference. Thank you!