Forum Discussion
How to take inputs from one table, plug them into a different table, and save a copy of outputs
Hello,
I have a question regarding how to take a row of inputs from one sheet, plug them into a table from another sheet, and save a copy of the results from the second sheet. That is the end result I would like to achieve. I will elaborate more below with specifics.
1) I have a workbook with 1 sheet. This workbook is called Analysis_Inputs and the sheet is called Inputs. It has a formatted table called All_Inputs with 4 columns that I want to be fed as inputs to another workbook. Each row of that table is its own set and I would like to iterate through each row.
2) The second workbook is where it takes 4 inputs and goes through some calculations in a table called Full_A. These calculations yield results that I want. This workbook is called Full_Analysis. The first sheet does the work and is called Analysis. The second sheet in this workbook is a summary of the first sheet and is called "Summary".
3) What I ultimately want is to be able to save a copy of sheet "Summary" for each iterated row in workbook Analysis_Inputs. I would like each iteration to be saved to its own workbook, or to a different sheet within the same workbook. What I will then do is join all the resulting Summaries into a single table. This "table" is what my end result for this entire exercise.
See my example excel files below. Workbook "Desired_Summaries" is the end result that I would like to see.
I have very little experience with VBA code but some in Python and Matlab.
Does anyone here have a good approach for reaching my desired outcome?
<see new demo files in replies below>
Please let me know if you can't open the example files.
- If it takes too long to get another nibble, you might consider starting a new thread, making sure you include the files with your first post. I would also consider adding a bit more complete description (maybe with an example) of that first "iteration" routine you want, in bringing the data over from the inputs sheet to the analysis sheet.
11 Replies
- mathetesSilver Contributor
Those sample files seem to be on your own company's server (or behind some kind of wall)...I was prompted by Microsoft for a password, but the one for my own Microsoft account didn't work.....
So if you can put them on a public OneDrive area, or a copy on GoogleDrive, then post a link here, that would be helpful.
What you're describing sounds potentially like a process I follow in tracking some investments, taking data from one sheet, importing it to another, then building a summary of several of the intermediate sheets...... I'm eager to see if the process I use might be helpful to you.
- Antonino2023Brass Contributor
mathetes Hello Mathetes,
Try these files:
https://1drv.ms/x/s!AhR2YhuTZhdXgmYj0QJSedhi_bdL
https://1drv.ms/x/s!AhR2YhuTZhdXgmp2LBYDhqnMe41J
https://1drv.ms/x/s!AhR2YhuTZhdXgm2kSJt6XugEZGWH
- mathetesSilver Contributor
I can get (have gotten) Full_Analysis and Desired_Summaries, but the Analysis_Inputs link yields a screen which remains totally blank.