Forum Discussion
How do I auto-populate information from one tab to another in sheets?
Had the same question as OP, but disappointed there were only follow questions versus and explanation of an actual answer.
You've never heard that sometimes you need to answer a question with a question (or two)?! As in sometimes, the situation needs a bit more definition. As in sometimes a quick "answer" is less helpful than a bit more back-and-forth first to make sure all parties are on the same page?
Not to be defensive, but I would point out your opening comment doesn't serve to endear me to you.
In may case, YES, Everything would be the same from one Tab to the Next as it's the same form; and YES, I would manually rename each tab as they are Invoice #'s per each form.
Edit: The new Data would drop into the Master List of Data from the Tabs, to which I already have a chart set up to incorporate that data for my needs.
Nevertheless, without any further ado, what I'm guessing (in the absence of further definition of the situation) is that the INDIRECT function would work in the OP's case, and maybe even in yours; you'll have to find that out.
With INDIRECT, as I've used it in my own situation (which may or may not mirror yours), I've entered, in a single column of the master or summary sheet, the word/text that serves also as the label on a tab from which I want to extract date. Then, across the top of the master sheet, I've entered into a singe row the specific cell references in those various sheets from which I want to extract data.
What INDIRECT does is construct a complete reference to another spot in the workbook. In this case, it is to a specific cell (or series of them) in another sheet in the same workbook, which I believe is what you're trying to accomplish.
The INDIRECT formula looks like this:
=INDIRECT($D6&"!"&C$1)
- where $D6 is the cell containing the sheet's name (the absolute reference to column D keeps that constant as it's copied across other columns; the relative reference to row 6 allows it to change as it's copied down)
- The &"!" designates the foregoing as a reference to a sheet in the same workbook (I'm assuming you know the concatenation symbol &)
- The final reference to C$1 is to the cell in which there is a cell address to the cell(s) in the various detail sheets containing the data elements you want in the summary sheet.
Let me know if that works. If not, come back with a description of what does happen, and maybe a sample of your actual workbook.
Thank you for posting this solution, but I'm having difficulty getting it to work correctly. Using your example =INDIRECT($A5&"!"&C$8) where cell A5 on the current/active worksheet contains the tab/worksheet name on which the cell C8 contains the data I want to show up in this cell. I received an error. Then, I tried to put the cell name from the "back up" worksheets in a row across the top of the master worksheet and instead of referring in the indirect formula to the cell on the other worksheet, I referred to the one on this one that had the address, which I think is what you described. I still received an error. Is it a problem that my tab names are numbers like this "21-001"? It obviously works if I manually identify the worksheet in the formula (i.e., =21-001!$C$8). but then I'll have to change the formula for each cell across and down as I copy the formulas down the worksheet. Did I misunderstand the parameters in the formula? What am I doing incorrectly?
- mathetesMar 30, 2021Silver ContributorYou're coming in to the middle of a conversation which already had TWO other people asking the question. It took me a while to realize you weren't just the prior person asking a follow-up question.
It's generally better to start a new thread. In this case, it would also be helpful if you posted a copy of the workbook you're working with.- npopa1248Mar 30, 2021Copper Contributor
mathetes - my apologies for the confusion. I'll attach the document I'm working on - data listed is fictitious to see if it the functions in there so far are working. I'm trying to get the "high level" data from each project detail sheet to auto-populate into the summary log so that it can be reviewed "at a glance", but without having to edit the formula in each cell to change the worksheet name from which it is pulling. It seems like the "indirect" function should work, but I must have syntax incorrect or something. Thanks in advance for your assistance.