Solverstudio: How to add data item using VBA? - excel

I am using SolverStudio to solve a problem which will require me to create ALOT of Data items in the Data Items Editor
In the image in the link you would add a data item by entering in the name cell range and optionally index range. Would it be possible to add data items using VBA or something similar as I have ALOT of data items to add so anything that would make adding data items simpler and faster I need.
Any help or advise is welcome.
Thanks

I managed to find out how to do this in the SolverStudio Documentation.
see here

Related

How can I run a vlookup on vba array

Fairly new to posting here but not new to the site.
I have done a fair bit of Googling on this one but still don’t seem to have the answer so thought I’d post here.
This is high level and no code included just now although can provide later.
I have a template that is completed by customers and within that template are hidden tabs, one of which has a table that is used as part of a vlookup.
What I am trying to achieve here is to read the customers submitted data into account of an array (done) and then do some kind of equivalent to a vlookup on a column in the array and then add the results to a new column in the array.
I’m happy to also read the lookup table into an array or dictionary as I understand this is a far better approach.
I’m just stuck on what to use instead of vlookup and how to achieve the above.
Any thoughts would be appreciated. Thanks in advance.

Dynamically extract a list of unique items from multiple sources in Excel

I am trying to make a list in Excel that has as its output a list of unique items that appear multiple times in different sources of the excel sheet. Ideally, the list should be automated automatically as more data is inputted in the sources, but no additional sources will be added. I used a formula I found here, but it only works for a single source of data (and this data then needs to be adjacent).
I attached a picture of my document with circles enclosing the sources and pointing to where the list should be created. I highlighted in yellow a cell in the top row that does not get outputted (because I don't know how to do this). Picture for reference
I can provide the excel document if need be.
I am thinking of consolidating the sources to a single source, but I would like to solve this in a more sophisticated way that does not involve creating more tables.
As per your screenshot it seems you are using tables. Then try below formula-
=IFERROR(INDEX(FILTERXML("<t><s>"&TEXTJOIN("</s><s>",TRUE,Table1[Machine],Table2[Machine])&"</s></t>","//s[not(preceding::*=.)]"),ROW(1:1)),"")
Please note: TEXTJOIN() is available to Excel-2019 & Excel-365 and it has limitation to 50,000 data only.
To learn more about FILTERXML() read this article from JvdV.

Excel - Create an indented hierarchy list from a source data set

I'm trying to create an indented hierarchy list in Excel from a source data set.
The source data set has 3 levels (department, municipality and city).
I tried many different formula but honestly I cannot find the right system. Actually it's not even a matter of formula, what I'm missing here it's logic, honestly.
It would be easy to do it manually but since I have more 8000 rows it would be also pretty time consuming.
This is the format of the source data:
And this is what I'd like to achieve:
Any suggestion on how to proceed would be very appreciated.
Thanks,
Stefano
Create a pivot table with your categories in the row field and any
of them additionally as a data field.
Change the report layout to Outline form
Copy / Paste Values
I was able to accomplish this with a pivot table...

How to make a drop-down list in excel and displaying the data acording to the selection?

I'm trying to make a drop down list to select the month(luna) and so my data changes in the table.
I've tried making a drop down list according to the help found on Google but i thing i'm not doing it in the right way.
Thank you!

Automatic Data transfer in Microsoft Excel

I have created three lists with similar fields in Excel. I would like to set these lists up so that when I input Data into my master list in a given field it will automatically transfer to the same field on my other lists. How would I do this. I have searched for an answer, but I have found none. I am new to Excel, but I do have programming experience.
I think the =VLOOKUP() function is what you are looking for.
I have fixed adressess($) and used a column choser to be able to easily change column information, and also to just copy or strech your table into new columns or rows whithout needing to update formulas.
=VLOOKUP() http://img638.imageshack.us/img638/2596/unledjyl.png

Resources