SOLVED

INDEX MATCH

Brass Contributor

Can someone help me with the following formula? 

=INDEX($C$4:$G$7,MATCH($A11,$A$4:$A$7,0),MATCH($B11,$B$4:$B$7,0),MATCH($C11,INDEX($C$1:$G$1,0),MATCH($E11&$D11,INDEX($C$2:$G$2&$C$3:$G$3,0))))

 

  ActualActualActualActualActual
  20182018201820192019
  OctNovDecJanFeb
BrazilSales  500,000  600,000  700,000  800,000     900,000
MexicoSales  200,000  400,000  600,000     80,000  1,000,000
BrazilAR     60,000     80,000     90,000     10,000       45,000
MexicoAR     70,000     90,000     75,000     65,000       55,000
       
       
BUDataTypemonthyearamt 
BrazilSalesActualOct2018#REF! 
MexicoARActualOct2018#REF! 
BrazilSalesActualOct2018#REF! 

 

When I then try to "simplify" it, it posts the incorrect error (see below):

=INDEX($C$4:$G$7,MATCH(A11,$A$4:$A$7,0),MATCH($E11,INDEX($C$2:$G$2,0),MATCH($D$11,INDEX($C$3:$G$3,0),MATCH($C11,INDEX($C$1:$G$1,0),MATCH($B11,$B$4:$B$7,0)))))

 

 

  ActualActualActualActualActual
  20182018201820192019
  OctNovDecJanFeb
BrazilSales  500,000  600,000  700,000   800,000              900,000
MexicoSales  200,000  400,000  600,000      80,000           1,000,000
BrazilAR     60,000     80,000     90,000      10,000                 45,000
MexicoAR     70,000     90,000     75,000      65,000                 55,000
       
       
BUDataTypemonthyearamt 
BrazilSalesActualOct2018700000 
MexicoARActualOct2018600000 
BrazilSalesActualNov2018700000 

 

Thank you!!

8 Replies
best response confirmed by rservice0320 (Brass Contributor)
Solution

@rservice0320 

In F11:

=INDEX($C$4:$G$7,MATCH(1,($A$4:$A$7=A11)*($B$4:$B$7=B11),0),MATCH(1,($C$1:$G$1=C11)*($C$2:$G$2=E11)*($C$3:$G$3=D11),0))

If you don't have Microsoft 365 or Office 2021, confirm the formula with Ctrl+Shift+Enter.

Then fill down.

Han, isn't the "*" trying to multiply?
never saw it used like this, but it works.. thank you so much!!
i tried it on my personal laptop & it worked. when it did it on my work laptop, i got a "spill" error...can you help me with that

@rservice0320 

I don't see why it would cause a spill error. Could you attach a sample workbook demonstrating the problem, or make it available through OneDrive, Google Drive or Dropbox?

can you help me with what a spill error is?
Hans, it was user error. It is working now. I do have a new index match issue I am hoping you can help me with. I posted it as a new discussion.
1 best response

Accepted Solutions
best response confirmed by rservice0320 (Brass Contributor)
Solution

@rservice0320 

In F11:

=INDEX($C$4:$G$7,MATCH(1,($A$4:$A$7=A11)*($B$4:$B$7=B11),0),MATCH(1,($C$1:$G$1=C11)*($C$2:$G$2=E11)*($C$3:$G$3=D11),0))

If you don't have Microsoft 365 or Office 2021, confirm the formula with Ctrl+Shift+Enter.

Then fill down.

View solution in original post