Forum Discussion
Help with Index and Match Formula - Excel 2013
- Mar 12, 2021
capeperson In the attached I mocked up something that is working
a) I unmerged A1 on your 10 sheets and made A2 be the "ADDRESS" title and put a formula in the new A1 that will pull the sheet name (I did that so I didn't have to manually type each sheet name and if you copy the sheet or change the sheet name it auto updates, but you could manually insert the sheet name there)
b) I added a new sheet and in Col A I used a formula to collect all those sheet names. Again, you could just skip to this step and manually type all the sheet names
c) I do a match for that name on all the sheets
d) I have cells in row 1 to identify the sheet name and the corresponding row that the name is found
e) I then used an INDIRECT formula to use that sheet name (I named that cell "sName") and row ("sRow") to pull that row and the INDEX is used to pull which column has the info you want. I only did a few examples to give you an idea of how it works. I also tried to use all 'older' non-DA formulas because you mentioned you are on an older Excel.
see attached
Thank you, I will upload a sample file.
sorry for all the edits, I uploaded a sample sheet blank and sample 2 with an entry on the forms.
capeperson In the attached I mocked up something that is working
a) I unmerged A1 on your 10 sheets and made A2 be the "ADDRESS" title and put a formula in the new A1 that will pull the sheet name (I did that so I didn't have to manually type each sheet name and if you copy the sheet or change the sheet name it auto updates, but you could manually insert the sheet name there)
b) I added a new sheet and in Col A I used a formula to collect all those sheet names. Again, you could just skip to this step and manually type all the sheet names
c) I do a match for that name on all the sheets
d) I have cells in row 1 to identify the sheet name and the corresponding row that the name is found
e) I then used an INDIRECT formula to use that sheet name (I named that cell "sName") and row ("sRow") to pull that row and the INDEX is used to pull which column has the info you want. I only did a few examples to give you an idea of how it works. I also tried to use all 'older' non-DA formulas because you mentioned you are on an older Excel.
see attached
- capepersonMar 15, 2021Copper ContributorSorry to be a pain, I am muddling around in the Sample sheet and I can't see to get any results with the information you entered on the sample sheet. I can get "Sue" and "not bob" to work to pull the street name, but that is using Sheet 10 and the old code I had in, when I use "Steve" or "Bob" on Sheet 1 and Sheet 6 respectively, I get no results at all, for any of the boxes in the Contract.
- mtarlerMar 15, 2021Silver Contributor
capeperson In the attached I added some more data. So instead of blank cells you should see something now.
check it out, but if it isn't working can you post what you see on the LookupSheet (I changed that sheet name also). Here is an example what I get for "steve"- capepersonMar 15, 2021Copper Contributor
It appears that if I enabling editing I the information disappears, but if I leave editing un enabled that I see the results you see on that page.
- capepersonMar 15, 2021Copper Contributor
Thank you for all this, I can't wait to check it out and see how it works, I for sure will have to spend time on it to figure it out.
I very much appreciate the time and effort you took in helping me solve my problem.
Do you have any recommended courses or books to learn more about Excel?