Mar 11 2021 10:36 AM
Mar 11 2021 10:36 AM
I am working on a project at work which requires us to have a workbook with anywhere from 1 to 10 sheets of data. On the last sheet we have a Contract that needs to be printed and signed by our clients. The Data on the other sheets is the information from the client that needs to be on the contract.
At this point I have set up the contact to pull the information from 1 sheet onto the contract by entering the Clients name into cell G21 and then using index and match the rest of the cells auto populate. It works great.
When I went to add the rest of the sheets to the formula in the required cells I am getting the error of #VALUE!
Can anyone tell me what I have done wrong in this code?
=INDEX('Sheet 10T'!C3:C122&'Sheet 9'!C3:C72,MATCH(Contract!G21,'Sheet 10T'!B3:B122&'Sheet 9'!B3:B72,0))&""
We have Excel 2013 in my office.
I am very new to any intermediate or advance Excel functions and having been watching YT videos and reading various forms to gain insight into getting Excel to do some of the advanced for me features I would like.
Mar 12 2021 07:18 AM
Mar 12 2021 11:28 AM - edited Mar 12 2021 11:35 AM
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.
Mar 12 2021 12:11 PM
Could you please clarify what exactly doesn't work. I copy/paste formula from your initial post into the second sheet and it works
Mar 12 2021 12:55 PM
Mar 12 2021 01:04 PM
Perhaps you may share the file with formula which returns such error? In current file your formula works as expected on two sheets
Mar 12 2021 02:53 PM
Mar 12 2021 03:02 PMSolution
@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.
Mar 13 2021 06:59 AM
You are right, but in this case formula returns #N/A error, not #VALUE! error as it was declared.
Mar 15 2021 05:41 AM
Mar 15 2021 05:45 AM - edited Mar 15 2021 05:54 AM
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?
Mar 15 2021 06:18 AM
Mar 15 2021 06:30 AM
@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"
Mar 15 2021 08:08 AM - edited Mar 15 2021 08:09 AM
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.
Mar 15 2021 09:14 AM
Mar 18 2021 06:03 AM