I'm new to Excel and macros/VBA and I've been trying to arrange create a graph with the aid of a table. This first part is fairly simple and easy and has been described several times all over the internet. I followed Mr. Peltier's tutorial and it works just fine when it comes to adding new data.
How does one create a graph from a table with a fixed number of rows and only using the data from the last 3 columns of the table? Is it possible to automate this process everytime a new column is added with a macro/VBA?
Basically I want to change the source data of my graph to the last 3 Columns.
I know this concept is known as a sliding window, but I haven't got much sucess searching for this type of use of sliding windows in Excel. Most the examples I've seen use the offset function and apply this concept of sliding windows to simple functions such as sums and what not.
Thank you.
Edit: this has been answered in
https://peltiertech.com/dynamic-chart-source-data/#comment-1465235
See the last comments
Related
I am attempting to create the graph below. Currently it is being completed manually.
The top table is the complete data set.
The second table is formulated to get me the top 3 that I would want on my data label.
I am struggling to come up with a solution to blend the 2 together so that I can get the result on the bottom. Any help would be appreciated!
I am okay to accept a solution with or without VBA, while without is strongly preferred!
Kindly see piture below of problem.
To close the loop on this question. I could not figure out without vba. Using VBA, I added conditional formatting for the top 3 ranks, then added data labels based on the formatting.
I have used Excel for quite some time now but only using traditional formulas. Now I am trying to create a more elaborated document for my business using VBA coding to expand my possibilities.
I have done some research and started practicing but found something that I can’t understand how to do yet.
I have a worksheet with a table on it. Since this is a fresh document it has nothing but the header and a blank row below it. What I always did when writing the information was type text in any of the columns that belong to the row immediately below the table (without actually inserting a new row myself). This creates a new row for the table where most of its format is kept, such as text size and formulas. However, I noticed that the row height doesn’t automatically change to that of the previous rows of the table, and changing it manually for each new row is very time consuming.
I would really appreciate it if anyone could share me the necessary Excel VBA code to fix this issue. I have thought of two possible approaches. The first one is a code that automatically sets all the rows of the table to a height of 20 (I want all rows to be the same size so no problem with that), supposing this would also affect new rows as I add them the way I mentioned. The second one would be a code that automatically sets every new row of the table to a size of 20. It doesn’t matter which one you choose, the easiest will be just fine. Thanks in advance.
I'm tying to convert a matrix of data into a list of entries. I have found a few solutions that are close but nothing that I can get working completely. My challenges are I need 4 pieces of information from each row and I want it to be automatic. This Solution was close, but I need something That brings an extra two columns with it.I don't want to have to process the data once it's entered into the Grid.
I created something that works but I feel it's clumsy and there has to be a better way to do it. I have added a Sample Time sheet to my Google drive of what I have created. Essentially I enter the work order, description and pay code on the left. The dates are up top and hours hours worked are entered into the grid. I use a few simple formulas to make a list of every grid cell in the format my finance department needs and then bring it back into the main sheet to sort it. I feel this setup is fragile and it requires manual sort every time info is updated.
Can you help me get from the format on the left to the format on the right with 0 steps. The data arrangement on the left can be modified but the data on the right has to be exactly as show. Mostly I don't know what I'm trying to do is called. It took me longer than I care to admit to find the term "matrix to list." All suggestions are welcome.
Thanks
A Screenshot of the excel sheet for when the google drive link stops working.
I thought there would be a simple way of doing this, but unfortunately I have not come across one. My company has an Excel workbook with 12 sheets (1 for each month), into which I enter sales data as accounts are written. I reformatted each month's data into tables, thinking that this would provide an easy reference to gather the data into a pivot table that joins all the months and would be updated as I enter data; however, a pivot table based on multiple sets of data allows highly limited manipulation.
So what I want to do is create a new table that is automatically populated as I enter data in any of the 12 current tables, to combine them into a master listing. I have tried doing a query, but when I try to set up the data sources, it doesn't recognize my tables. I tried Power Query, but I couldn't get it to update the data as I updated the source. Consolidate also was not a useful feature, as it required all the data to be somehow calculated, and my columns need to simply be copied over, not summed or averaged.
As you can probably tell from my explanations and terminology, I'm no Excel expert. I don't know what VBA even is, let alone know how to use it, but I've seen it mentioned a lot, so I figure at some point in my life I should learn it.
Is there a formula or some other Excel 2010 feature that can automatically copy all of this data onto one running list, and keep it updating as I enter data in the source tables? It would have to run automatically.
I believe your end goal is to have a pivot table which consolidates data from each of the individual 12 sheets/tables and not really to have the intermediate "single running list which is an aggregation of all the 12 sheets".
If so, I suggest to create an Excel Pivot table directly based upon the 'Multiple consolidation ranges'.
To start, create a new spreadsheet and select a cell (say A3) and use the click sequence Alt+D+P, this will bring up the PivotTable and PivotChart Wizard, and proceed further using the third option - 'Mulitple consolidation ranges'.
I will have to refer you to the below site for a detailed step by step instructions on the above: http://www.contextures.com/xlPivot08.html
Please be aware that the Difficulty level for this solution is Medium, suggest you to bookmark the solution from maintainability reasons, in case you choose to implement it.
How do I create a timeline chat which visualizes peoples activities throughout a day in one graph? On the x-axis I plan to place the time. And the y-Axis would be the different persons. First, I thought of a simple stacked bar chart. However, the problem is that Excel would combine all the same activities to one item and don't visualize it on the timeline... I also can't do it by hand as I have several 1000 entries to visualize...
I found this post on Stackoverflow, but there there is only one activity per entry and not mulitple times the same...
It would be great if I could use Excel (as my data set is there). But if there is a better way (i.e. tool) I'd also appreciate new suggestions.
This is what I imagine the timeline to look like:
If you have data prepared in the correct way this can be easily done in Excel. Check the animation below (you can open image in a new tab to see the full resolution).
As I didn't find a solution that let me create a timeline in Excel, I used JavaScript and the visualization framework D3, together with a neat opensource library, d3-timeline: https://github.com/jiahuang/d3-timeline