Combining ADDRESS with an INDEX MATCH formula, to find cell reference

%3CLINGO-SUB%20id%3D%22lingo-sub-391781%22%20slang%3D%22en-US%22%3ECombining%20ADDRESS%20with%20an%20INDEX%20MATCH%20formula%2C%20to%20find%20cell%20reference%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391781%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20currently%20have%20an%20INDEX%20MATCH%20formula%20which%20is%20working%20across%202%20spreadsheets%20and%20returning%20the%20value%20of%20the%20cell%20I%20want%20it%20to%2C%20but%20I%20want%20it%20to%20return%20the%20reference%20of%20the%20cell%20instead%20of%20the%20value%20it%20contains.%26nbsp%3B%20I%20keep%20getting%20different%20errors%20when%20I%20try%20to%20use%20the%20address%20function.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20I'm%20closer%20to%20using%20it%20correctly%20now%2C%20but%20I'm%20getting%20the%20%22There's%20a%20problem%20with%20the%20formula.%20Not%20trying%20to%20type%20a%20formula%3F%22%20error%20message.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20my%20INDEX%20MATCH%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DINDEX('%5Botherspreadsheet%5DMay%20'!%24E%2411%3A%24I%2413%2C3%2CMATCH(C3%2C'%5Botherspreadsheet%5DMay%20'!%24E%2411%3A%24I%2411%2C0))%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20works%20and%20is%20currently%20returning%20'E'%20which%20is%20what%20is%20in%20the%20cell%20it's%20found.%20I%20want%20it%20to%20return%20%24G13%20which%20is%20the%20address%20of%20the%20cell%20with%20an%20absolute%20column.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20as%20far%20as%20I've%20got%20putting%20it%20in%20the%20address%20formula%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DADDRESS(3%2CINDEX('%5Botherspreadsheet%5DMay%20'!%24E%2411%3A%24I%2413%2C3%2CMATCH(C3%2C'%5Botherspreadsheet%5DMay%20'!%24E%2411%3A%24I%2411%2C0))%2C3%2C0%2C'%5Botherspreadsheet%5DMay%20'!)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20using%203%20as%20my%20row%20number%20because%20this%20is%20the%20row%20number%20I've%20used%20in%20the%20INDEX%20formula%2C%20so%20it's%20the%20row%20that%20cell%20I%20want%20returning%20is%20in%2C%20but%20I'm%20somewhat%20unsure%20on%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20sure%20what%20the%20error%20is%20or%20how%20to%20resolve%20it%2C%20or%20even%20if%20ADDRESS%20is%20the%20correct%20formula%20to%20be%20using%20at%20this%20point.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%20for%20any%20help%20with%20this!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-391781%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-909293%22%20slang%3D%22en-US%22%3ERe%3A%20Combining%20ADDRESS%20with%20an%20INDEX%20MATCH%20formula%2C%20to%20find%20cell%20reference%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-909293%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F311738%22%20target%3D%22_blank%22%3E%40asd6231%3C%2FA%3E%26nbsp%3BCan%20you%20please%20give%20me%20the%20actual%20formula%3F%26nbsp%3B%20Thank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392984%22%20slang%3D%22en-US%22%3ERe%3A%20Combining%20ADDRESS%20with%20an%20INDEX%20MATCH%20formula%2C%20to%20find%20cell%20reference%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392984%22%20slang%3D%22en-US%22%3EI%E2%80%99m%20delighted%20to%20learn%20that.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392894%22%20slang%3D%22en-US%22%3ERe%3A%20Combining%20ADDRESS%20with%20an%20INDEX%20MATCH%20formula%2C%20to%20find%20cell%20reference%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392894%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHey%2C%20thank%20you%2C%20this%20worked%20in%20the%20end!%26nbsp%3B%20I%20swear%20I'd%20tried%20using%20CELL%20%22address%22%20before%2C%20but%20it%20did%20finally%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391897%22%20slang%3D%22en-US%22%3ERe%3A%20Combining%20ADDRESS%20with%20an%20INDEX%20MATCH%20formula%2C%20to%20find%20cell%20reference%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391897%22%20slang%3D%22en-US%22%3EYou%20may%20construct%20your%20formula%20in%20the%20manner%20described%20in%20this%20link%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fexceljet.net%2Fformula%2Fget-address-of-lookup-result%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fexceljet.net%2Fformula%2Fget-address-of-lookup-result%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1835015%22%20slang%3D%22en-US%22%3ERe%3A%20Combining%20ADDRESS%20with%20an%20INDEX%20MATCH%20formula%2C%20to%20find%20cell%20reference%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1835015%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20found%20this%20subject%20interesting.%20But%20I%20have%20a%20twist%20on%20it.%3C%2FP%3E%3CP%3EI'm%20trying%20to%20use%20ADDRESS()%26amp%3B%22%3A%22%26amp%3BADDRESS()%20in%20a%20Match%20formula%20to%20define%20the%20lookup%20range%20but%20it%20doesn't%20work.%3C%2FP%3E%3CP%3EWhen%20I%20hit%20F9%20on%20the%20address%20part%20it%20shows%20the%20expected%20complete%20range%20correct%20but%20with%20quotation%20marks%20around%20it%2C%20that%20seems%20to%20be%20the%20issue.%20Why%3F%3C%2FP%3E%3CP%3E%3DMATCH(LEFT(B2%3B7)%3B%3CSTRONG%3E%22'Sheet1'!%22%26amp%3BADDRESS(E7%2B1%3B3%3B1%3B1%3B)%26amp%3B%22%3A%22%26amp%3BADDRESS(E7%2B1%3B50%3B1%3B1%3B)%3C%2FSTRONG%3E%3B0)%3C%2FP%3E%3CP%3Ein%20the%20formula%20above%20using%20F9%20to%20see%20result%20%22'Sheet1'!R4C3%3AR4C50%22%3C%2FP%3E%3CP%3EWhen%20put%20separately%20in%20a%20cell%3A%3C%2FP%3E%3CP%3E%3D%22'Sheet1'!%22%26amp%3BADDRESS(E7%2B1%3B3%3B1%3B1%3B)%26amp%3B%22%3A%22%26amp%3BADDRESS(E7%2B1%3B50%3B1%3B1%3B)%26nbsp%3B%20%2F%2F%20Result%26nbsp%3B'Sheet1'!R4C3%3AR4C50%3C%2FP%3E%3CP%3EIf%20I%20paste%20the%20latter%20result%20in%20the%20formula%20it%20works.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1835192%22%20slang%3D%22en-US%22%3ERe%3A%20Combining%20ADDRESS%20with%20an%20INDEX%20MATCH%20formula%2C%20to%20find%20cell%20reference%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1835192%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F851003%22%20target%3D%22_blank%22%3E%40AntsXL%3C%2FA%3E%26nbsp%3Bthat%20is%20because%20you%20are%20putting%20TEXT%20in%20there%20instead%20of%20a%20cell%20reference.%26nbsp%3B%20You%20need%20to%20add%20the%20INDIRECT()%20function%20to%20convert%20that%20TEXT%20into%20a%20cell%20reference.%26nbsp%3B%20should%20be%20something%20like%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DMATCH(LEFT(B2%3B7)%3BINDIRECT(%22'Sheet1'!%22%26amp%3BADDRESS(E7%2B1%3B3%3B1%3B1%3B)%26amp%3B%22%3A%22%26amp%3BADDRESS(E7%2B1%3B50%3B1%3B1%3B))%3B0)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1835570%22%20slang%3D%22en-US%22%3ERe%3A%20Combining%20ADDRESS%20with%20an%20INDEX%20MATCH%20formula%2C%20to%20find%20cell%20reference%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1835570%22%20slang%3D%22en-US%22%3EOh%2C%20of%20course%20that's%20how%20to%20make%20it%20non%20text.%3CBR%20%2F%3ENow%20it%20works%20like%20a%20charm%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%20and%20i'm%20sure%20there%20is%20a%20simpler%20way%20to%20solve%20it%20as%20well%20%3AD.%3CBR%20%2F%3E%3DINDIRECT(ADDRESS(MATCH(VLOOKUP(%24A2%3B%24M%242%3A%24N%2429%3B2%3BFALSE)%3B'Sheet1'!%24A%3A%24A%3B0)%2B2%3BMATCH(LEFT(%24B2%3B7)%3BINDIRECT(%22'Sheet1'!%22%26amp%3BADDRESS(MATCH(VLOOKUP(%24A2%3B%24M%242%3A%24N%2429%3B2%3BFALSE)%3B'Sheet1'!A%3AA%3B0)%2B1%3B3%3B1%3B1)%26amp%3B%22%3A%22%26amp%3BADDRESS(MATCH(VLOOKUP(%24A2%3B%24M%242%3A%24N%2429%3B2%3BFALSE)%3B'Sheet1'!A%3AA%3B0)%2B1%3B50%3B1%3B1%3B))%3B0)%3B1%3B1%3B%22Sheet1%22)%3BTRUE)%3CBR%20%2F%3EGreat%20thanks!%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi there,

 

I currently have an INDEX MATCH formula which is working across 2 spreadsheets and returning the value of the cell I want it to, but I want it to return the reference of the cell instead of the value it contains.  I keep getting different errors when I try to use the address function. 

 

I think I'm closer to using it correctly now, but I'm getting the "There's a problem with the formula. Not trying to type a formula?" error message.

 

This is my INDEX MATCH

 

=INDEX('[otherspreadsheet]May '!$E$11:$I$13,3,MATCH(C3,'[otherspreadsheet]May '!$E$11:$I$11,0))

This works and is currently returning 'E' which is what is in the cell it's found. I want it to return $G13 which is the address of the cell with an absolute column.

 

This is as far as I've got putting it in the address formula

 

=ADDRESS(3,INDEX('[otherspreadsheet]May '!$E$11:$I$13,3,MATCH(C3,'[otherspreadsheet]May '!$E$11:$I$11,0)),3,0,'[otherspreadsheet]May '!)

 

I'm using 3 as my row number because this is the row number I've used in the INDEX formula, so it's the row that cell I want returning is in, but I'm somewhat unsure on this.

 

I'm not sure what the error is or how to resolve it, or even if ADDRESS is the correct formula to be using at this point.

 

Many thanks for any help with this!

 

 

 

 

 

7 Replies
Highlighted
You may construct your formula in the manner described in this link:
https://exceljet.net/formula/get-address-of-lookup-result
Highlighted

@Twifoo 

 

Hey, thank you, this worked in the end!  I swear I'd tried using CELL "address" before, but it did finally work.

Highlighted
I’m delighted to learn that.
Highlighted

@asd6231 Can you please give me the actual formula?  Thank you!

Highlighted

@Twifoo 

Hi,

I found this subject interesting. But I have a twist on it.

I'm trying to use ADDRESS()&":"&ADDRESS() in a Match formula to define the lookup range but it doesn't work.

When I hit F9 on the address part it shows the expected complete range correct but with quotation marks around it, that seems to be the issue. Why?

=MATCH(LEFT(B2;7);"'Sheet1'!"&ADDRESS(E7+1;3;1;1;)&":"&ADDRESS(E7+1;50;1;1;);0)

in the formula above using F9 to see result "'Sheet1'!R4C3:R4C50"

When put separately in a cell:

="'Sheet1'!"&ADDRESS(E7+1;3;1;1;)&":"&ADDRESS(E7+1;50;1;1;)  // Result 'Sheet1'!R4C3:R4C50

If I paste the latter result in the formula it works.

 

Thanks!

Highlighted

@AntsXL that is because you are putting TEXT in there instead of a cell reference.  You need to add the INDIRECT() function to convert that TEXT into a cell reference.  should be something like:

=MATCH(LEFT(B2;7);INDIRECT("'Sheet1'!"&ADDRESS(E7+1;3;1;1;)&":"&ADDRESS(E7+1;50;1;1;));0)
Highlighted
Oh, of course that's how to make it non text.
Now it works like a charm and i'm sure there is a simpler way to solve it as well :D.
=INDIRECT(ADDRESS(MATCH(VLOOKUP($A2;$M$2:$N$29;2;FALSE);'Sheet1'!$A:$A;0)+2;MATCH(LEFT($B2;7);INDIRECT("'Sheet1'!"&ADDRESS(MATCH(VLOOKUP($A2;$M$2:$N$29;2;FALSE);'Sheet1'!A:A;0)+1;3;1;1)&":"&ADDRESS(MATCH(VLOOKUP($A2;$M$2:$N$29;2;FALSE);'Sheet1'!A:A;0)+1;50;1;1;));0);1;1;"Sheet1");TRUE)
Great thanks!