Index match combined

mari_hitz

Board Regular
Joined
Jan 25, 2011
Messages
101
Hi everyone, hope you are good! Please note that I am trying to figure out how a formula is working on a spreadsheet that I have. I understand how Index and match work combined, nonetheless, I can see that before the match formula there is a "1" and I cannot understand how it works, in addition, it appears that there are "*", is this some sort of concatenate for multiple options? Could you please help me to understand how this formula would work?

'INDEX(A_Table[[#All],
Code:
:[Years]],(MATCH(1,(A_Table[[#All],[Code]]=[@[Guide]])*(A_Table[[#All],[Group]]=[@[Range]])*(A_Table[[#All],[Years]]<=[@[2018 Years]]),0)),3)

Just to give you a bit of background, this formula in a spreadsheet called Data, then there is another spreadsheet which contains the "A_Table" and "Guide Code", "Years",  "Guide" and "Group" are columns in this table. In addition "Range" and "2018 Years" are columns in the Data spreadsheet. 

I appreciate your help and support in advance. Regards!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
This is a normal way of lookup with various conditions.

The * in the formula means multiplying the various conditions, ie
(condition1) * (condition2) * (condition3)

In Excel: FALSE * FALSE = 0; FALSE * TRUE = 0; TRUE * TRUE = 1

For example
(TRUE; FALSE; TRUE) * (TRUE; FALSE; TRUE) * (FALSE; TRUE; TRUE)

Multiplying conditions 1 and 2
(1;0;1)

And multiplying by the third condition, we obtain
(0;0;1)

At last, in the example,
MATCH (1, {0;0;1}, 0) result = 3

M.
 
Last edited:
Upvote 0
Thanks for your reply Marcelo! Can I make a quick question? The above formula returns #N/A, when I click on evaluate to check why the 3 statements are 1,1,0. Does this have an impact and that is why is returning #n/A. It is weird because it should return a the value on column 3 on the other table, is complete and the fields comparable are a match. Thanks!
 
Upvote 0
It's an array formula so you must confirm the formula with Ctrl+Shift+Enter, not just Enter.

M.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,716
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top