I have a parameter with 4 dimensions which I would like to import in Excel.
Currently I have a series of Excel sheets with each over 500,000 rows. The columns are:
Parcel,
Farm,
Year,
Species,
Class,
Surface
Ideally I would like to have a parameter in GAMS like: Surface(Parcel,Farm,Year,Species,Class)
Is there an elegant way to do this?
Problem solved.
For those interested, the solution is as simple as this:
$CALL GDXXRW.EXE DeParcels2012_GAMS.xlsx par=input2012 rdim=5
The number of dimensions can be specified in the gdxxrw tool.
Related
let me start out by saying I have a basic understanding of python and excel. What I’m trying to do is take a CSV file with data points for voltages along side with date in mm/dd/yyyy in a separate column, and averaging the data points for each day into a chart. There’s roughly 10000 data points for the month each separated by 5 minute increments. I don’t know where to start. I also have to do this about 12 separate times so if I can just feed a program an excel file or data from notepad that would help me tremendously.
I’m a bit rusty with python but I can read it pretty well to figure out what does what. Any help would be greatly appreciated.
If I can do this all in excel then that would be amazing. But I would like to brush up on my coding. If someone can point me in the right direction, I’m using Jupyter notebook and excel for reference. I tried starting with just opening the file with open() but now I don’t even know where to begin. Should I install pandas? Selenium?
I tried grouping the data in excel manually by using group. I tried opening up files in Python and creating a list of values to go through and average them. I also looked into using pivot tables to group the data as well.
No coding needed for that. Excel pivot can solve it.
Bring your date column in a format excel understands as date.
Insert pivot from the range that contains your data
Drag the Date to lower left quadrant rows
Drag the voltage to lower right quadrant values
Change aggregation of values from sum to average
The result will be this table:
I have a set of Sparklines. For each line I want only 1 Marker to appear that depends on an input called NP YEAR.
As you can see, the target data point for each Sparkline is different, and is not necessarily the max, min, first, or last of the respective data sets. E.g., Sub Company 7 should have a Marker appear on the 2018 data point ($5,010,031), which is not the max, min, first, or last data point.
EXAMPLE
I would appreciate help on this problem just as it is.
However, if you also know of a way to make the Marker appear as of function of the NP YEAR input, e.g., not manually doing the keystrokes to create the marker, but using a formula, it would be even more greatly appreciated. I have about 100 of these Sparklines.
Thank you for your help.
I have a report that is generated weekly with productivity numbers for employees in Excel. I am wanting to create a bell curve for several data points where the viewer can select the week time range and the bell curve will be updated. I have figured out formula wise how to make the mean, standard deviation, norm.dist, etc update when the date range is updated. The issue I have yet to solve or find an answer to though is how to graph this data without having to manually update the ranges of the graphs. Once this is accomplished I'd also like to be able to add vertical lines for the average and 1 standard deviation on either side of the average. Is this a possibility in Excel or any other program? I was hoping to be able to use Excel, but am happy to explore other options if that's the only way to do it. Thanks!
Excel seems not to enjoy the quantity of data i need to plot.
So i am considering, is it even possible with excel?
I have tried using pivot tables, but it splits the data into multiple parts, which i dont need.
I also tried Using a normal line plot, i get the error maximum 255 in a series.
Do i need to find alternative software for this plot?
Example of the data:
Long time open question, in the mean time i found a answer which i will share.
I went outside Excel and found a old outdated app called DatPlot
and it worked like a charm..
I am trying to plot some time series data, but in a way that has stumped me so far. The salient part here is that each data point is associated with an open date and a closed date. I would like a time series line graph that counts the number open on a given date.
Example: Open - Close
first record: 2/10/2013 - 3/1/2013
second record: 2/15/2013 - 3/5/2013
The graph I'm looking for would start at 0, rise to 1 on 2/10 rise again to 2 on 2/15 then drop down 1 on 3/1 and back to 0 on 3/5.
The actual dataset contains hundreds of records, so manual processing is out of the question. I'm sure there must be an easy way to do it, but I have not found it yet. Tried help and google search, but I'm not exactly sure what I'm looking for.
Use the CountIfs() function like so:
So, you specify the category labels, and then use the COUNTIFS() function to evaluate, for each category label, how many records are open at that time.
You can use the result of the Countifs function as the frequency for a histogram, time series, bar chart, etc.
Then, plot the data in columns E & F (or however your sheet happens to be arranged) to create the chart.
Edit
To include blank values in the count, modify the formula thusly:
=COUNTIFS($B$3:$B$7,"<="&E3,$C$3:$C$7,">="&E3)+COUNTIFS($B$3:$B$7,"<="&E3,$C$3:$C$7,"")