SOLVED

Can someone explain in laymans terms how this formula works?

%3CLINGO-SUB%20id%3D%22lingo-sub-2288331%22%20slang%3D%22en-US%22%3ECan%20someone%20explain%20in%20laymans%20terms%20how%20this%20formula%20works%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288331%22%20slang%3D%22en-US%22%3E%3CP%3EBack%20in%20June%20of%202020%20I%20ask%20the%20question%20that%20can%20be%20seen%20on%20this%20thread..%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexcel%2Fformula-look-at-sheet-1-find-duplicates-in-sheet-2-and-copy-id%2Fm-p%2F1494051%22%20target%3D%22_self%22%3EPrevious%20Question%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3Ekindly%20provided%20the%20answer%20below%20that%20worked%20perfectly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DINDEX(Sheet1!A%3AA%2CMATCH(Sheet2!%24B2%2CSheet1!B%3AB%2C0))%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20someone%20kindly%20break%20it%20down%20and%20explain%20in%20laymans%20terms%20exactly%20what%20it%20is%20doing%20as%20I%20need%20to%20reuse%20in%20on%20a%20different%20worksheet%20and%20I%20am%20having%20so%20much%20trouble%20working%20out%20what%20references%20I%20need%20to%20change%20and%20so%20on.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERather%20than%20just%20asking%20for%20help%20with%20the%20new%20workbook%20and%20as%20this%20is%20such%20a%20neat%20formula%2C%20I%20really%20want%20to%20learn%20what%20it%20is%20doing%20%2F%20how%20it%20works%20and%20expnd%20my%20knowledge%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2288331%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2288348%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20someone%20explain%20in%20laymans%20terms%20how%20this%20formula%20works%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288348%22%20slang%3D%22en-US%22%3EThis%20may%20help%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fexceljet.net%2Findex-and-match%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fexceljet.net%2Findex-and-match%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2288368%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20someone%20explain%20in%20laymans%20terms%20how%20this%20formula%20works%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288368%22%20slang%3D%22en-US%22%3EHi%20yes%20I%20have%20been%20using%20that%20page%20to%20try%20and%20work%20thing%20out%20but%20its%20over%20my%20head%20which%20is%20what%20I%20asked%20for%20a%20laymans%20walkthrough.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2288409%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20someone%20explain%20in%20laymans%20terms%20how%20this%20formula%20works%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288409%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F698877%22%20target%3D%22_blank%22%3E%40Belinea2010%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20%20language-applescript%22%3E%3CCODE%3EMATCH(Sheet2!%24B2%2CSheet1!B%3AB%2C0)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ELooks%20for%20the%20value%20of%20cell%20B2%20on%20Sheet2%20in%20the%20entire%20column%20B%20of%20Sheet1.%20The%200%20at%20the%20end%20tells%20Excel%20to%20look%20for%20an%20exact%20match.%3C%2FP%3E%0A%3CP%3EMATCH%20returns%20the%20index%20of%20the%20first%20cell%20where%20that%20value%20is%20found.%20For%20example%2C%20if%20the%20value%20is%20found%20in%20the%2012th%20cell%20of%20column%20B%2C%20MATCH%20returns%2012.%20If%20there%20is%20no%20match%2C%20it%20returns%20the%20error%20value%20%23N%2FA%20(not%20available)%3C%2FP%3E%0A%3CP%3EThe%20INDEX%20function%20looks%20in%20column%20A%20on%20Sheet1%2C%20and%20returns%20the%20cell%20with%20the%20index%20returned%20by%20MATCH.%20So%20for%20example%2C%20if%20MATCH%20returned%2012%2C%20the%20final%20formula%20will%20return%20the%2012th%20cell%20of%20column%20A%2C%20that%20is%20A12.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2288572%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20someone%20explain%20in%20laymans%20terms%20how%20this%20formula%20works%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288572%22%20slang%3D%22en-US%22%3EBasically.%3CBR%20%2F%3EMATCH%20formula%20%3A%20returns%20the%20%22serial%20number%22%20of%20a%20searched%20item%20in%20a%20list%20of%20cells.%3CBR%20%2F%3EINDEX%20formula%20%3A%20returns%20the%20value%20of%20the%20%22cell%22%20at%20a%20particular%20%22serial%20number%22%20in%20a%20list%20of%20cells.%3CBR%20%2F%3E%3CBR%20%2F%3EThese%20are%202%20different%20formulas%20which%20can%20be%20used%20in%20combination.%3CBR%20%2F%3E%3CBR%20%2F%3ESometimes%20you%20want%20that%20%22find%20a%20particular%20value%20in%20list%201%20and%20if%20it%20is%20found%20at%20serial%20number%20say%2012%2C%20then%20as%20a%20second%20step%2C%20find%20the%20value%20at%20that%20serial%20number%20(12th)%20in%20another%20list%22%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20you%20see%2C%20the%20above%20requirement%20can%20be%20broken%20down%20in%202%20steps%2C%20finding%20the%20%22serial%20number%22%20of%20interest%20in%20a%20list%20(%3Duse%20of%20MATCH%20formula)%20and%20then%20in%20second%20step%20finding%20the%20%22value%20at%20that%20serial%20number%22%20in%20another%20list%20(%3Duse%20of%20INDEX%20formula)%3CBR%20%2F%3EBy%20using%20the%20MATCH%20formula%20inside%20of%20an%20INDEX%20formula%20you%20are%20combining%20the%20two%20steps%20to%20do%20the%20complete%20job.%3CBR%20%2F%3E%3CBR%20%2F%3ENote%20that%20the%20technical%20term%20used%20for%20%22serial%20number%22%20in%20excel%20is%20%22index%22.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20MATCH%20and%20INDEX%20formula%20have%20more%20details%20which%20you%20would%20need%20to%20study%20in%20Excel%20Help%20site%2C%20or%20some%20other%20such%20tutorial%20sites%20over%20internet%20or%20in%20other%20replies%20of%20this%20post.%3CBR%20%2F%3E%3CBR%20%2F%3ESuggestion%20%3A%20First%20learn%20to%20use%20MATCH%20formula%20in%20isolation.%20Then%20learn%20to%20use%20INDEX%20formula%20in%20isolation.%20After%20you%20have%20understood%20them%2C%20then%20learn%20to%20use%20them%20in%20combination%20as%20done%20in%20your%20post%20example.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2288729%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20someone%20explain%20in%20laymans%20terms%20how%20this%20formula%20works%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288729%22%20slang%3D%22en-US%22%3EThnk%20you%20Hans%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2288732%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20someone%20explain%20in%20laymans%20terms%20how%20this%20formula%20works%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288732%22%20slang%3D%22en-US%22%3EThnk%20you%20amit%3C%2FLINGO-BODY%3E
Occasional Contributor

Back in June of 2020 I ask the question that can be seen on this thread..

Previous Question 

and @Sergei Baklan  kindly provided the answer below that worked perfectly.

 

 

 

=INDEX(Sheet1!A:A,MATCH(Sheet2!$B2,Sheet1!B:B,0))

 

 

 

Can someone kindly break it down and explain in laymans terms exactly what it is doing as I need to reuse in on a different worksheet and I am having so much trouble working out what references I need to change and so on.

 

Rather than just asking for help with the new workbook and as this is such a neat formula, I really want to learn what it is doing / how it works and expnd my knowledge?

6 Replies
Hi yes I have been using that page to try and work thing out but its over my head which is what I asked for a laymans walkthrough.
best response confirmed by Belinea2010 (Occasional Contributor)
Solution

@Belinea2010 

MATCH(Sheet2!$B2,Sheet1!B:B,0)

Looks for the value of cell B2 on Sheet2 in the entire column B of Sheet1. The 0 at the end tells Excel to look for an exact match.

MATCH returns the index of the first cell where that value is found. For example, if the value is found in the 12th cell of column B, MATCH returns 12. If there is no match, it returns the error value #N/A (not available)

The INDEX function looks in column A on Sheet1, and returns the cell with the index returned by MATCH. So for example, if MATCH returned 12, the final formula will return the 12th cell of column A, that is A12.

Basically.
MATCH formula : returns the "serial number" of a searched item in a list of cells.
INDEX formula : returns the value of the "cell" at a particular "serial number" in a list of cells.

These are 2 different formulas which can be used in combination.

Sometimes you want that "find a particular value in list 1 and if it is found at serial number say 12, then as a second step, find the value at that serial number (12th) in another list"

So you see, the above requirement can be broken down in 2 steps, finding the "serial number" of interest in a list (=use of MATCH formula) and then in second step finding the "value at that serial number" in another list (=use of INDEX formula)
By using the MATCH formula inside of an INDEX formula you are combining the two steps to do the complete job.

Note that the technical term used for "serial number" in excel is "index".

The MATCH and INDEX formula have more details which you would need to study in Excel Help site, or some other such tutorial sites over internet or in other replies of this post.

Suggestion : First learn to use MATCH formula in isolation. Then learn to use INDEX formula in isolation. After you have understood them, then learn to use them in combination as done in your post example.