Excel: Create dynamic table from named range in another sheet - excel

I'm creating templates reports to be filled by Apache-Poi.
I made some graph reports using named ranges, without problems. So, I don't need to know the amount of rows to graph it.
I have my presentation sheet separately from my data sheet (so I can hide the data sheet).
How can I have a table in the presentation sheet created from the data of the data sheet?
For instance, with my application I fill the table in the data sheet having 3 rows, I want to have a formatted table in the presentation sheet (with filters) populated with those 3 rows in the data sheet. And then if I fill the data sheet with 9 rows, well, you get the point. Any idea?
Edited: I'm working in an Export to Excel functionality for an application. What I do is to use an excel file as a report template, then with Apache POI, I clone the file, populate it with the report data, and then serve this file to be downloaded by the client browser.
I only fill the data in the Data sheet with Apache POI. Now, on the other reports, with my graphs on the presentation sheet, I don't have to do anything more than complete the data table (because I'm using named ranges).
I'm adding some screenshots with dummy data in order to explain a little more.
-- Data Sheet --
-- Presentation Sheet -- (what I want to achieve)

Related

Excel Dynamic Table with Data from Another Sheet

I am trying to create a table of dynamic range that takes data from another sheet. The short story is that I need to do this because Alteryx will drop an old existing sheet of the same name when uploading new data each time that it is ran.
I am filling up a template from a pivot table formed from this table that takes the raw data (4 sheets total).
The Problem: The problem I have is with the Raw Data and the Table sheets. The Table Sheet needs to mimic the exact data of the Raw Data Sheet, but in table form. So there are two things to consider: the size of the raw data, and the actual data itself.
How might one do this?
And before I answer redundant questions:
Why don't you make a table on the raw data sheet? Because the sheet gets dropped each time Alteryx runs and will not save that there once existed a table there
Just say the cell references the other cell/ size references the size Yes, I get this, but I am making things dynamic on the table sheet
Make a giant table to take any size data range and map the expected columns also did this but if I told my college professor I did this as a professional analyst I would get slapped on the wrists
If you are using Excel 2016 or later, you can create a "Pivot Table":
And choose where to place it, for example in another worksheet:

EPPLUS - Charts not updating after table grows

I have an Excel file with a table and several charts created from data in the table. I need the charts to take any new data when the table grows. It works fine if I work from Excel, obviously (i.e. when I add a new row, the charts make room for the new data and when the numbers are added, the charts show the changes).
But I need to do it programmatically with Epplus. I've managed to add a row to the table and have it update all the formulae in it properly, but the charts are not updated.
Any idea of why this is? Is it a known limitation of EPPlus?
Or do I have to traverse all the charts and update the data series for each?

Programmatically add rows to an Excel data model via C#

We're looking at allowing our customers to download an Excel file from our web application which contains a raw export of their data along with some basic charts and pivot tables based on that data.
The basic way, we want to make this work is that we have a fixed Excel file which contains all the reporting elements in one worksheet and have room for the underlying data in another worksheet. When the user requests their Excel report, we programmatically fill out the data worksheet with their results and send them the final Excel file.
Everything seemed a bit to easy when doing the prototyping with a fixed set of data. The dataset we worked with was added to the Excel Data Model and we then set up the charts and other reporting elements. However, when using that file as the template for the generated Excel file in our application we are finding that the definition of the data model still remains - meaning, that we built the "protype" with a table definition of $A$1:$T$5879
but when generating the report, that definition isn't changed to contain whatever size the added dataset might have.
We're using EPPlus to work with the generation of our Excel sheets and have so far been unable to find any sort of solution to this kind of problem. This might very much be due to us being quite Excel novices. The goal is to have the user experience, that the charts and pivot tables contained in the Excel sheet reflects the total dataset contained in the Excel file without them having to do anything.
Ok, I've actually found a solution for it.
The solution was right infront of us.
We define the dataset as a named set - this is done under under the "Formulas" and inside the "Name Manager". We have a range which defines our dataset - the "Refers To" field when defining a range can take a formula. So intead of giving it a fixed size, we use this: =OFFSET(Data!$A$1;0;0;COUNTA(Data!$A:$A);COUNTA(Data!$1:$1))
This counts the amount of rows and columns, with reference to A1 in our Data worksheet. All our pivots are set to reload on startup and that seems to work.

how to setup a excel chart with data points

I have a excel spreadsheet that has been exported from a kendo-ui grid. I have zero experience with excel and I need help turning this data into a excel chart. the attached spreadsheet is what i am working with. Every subdivision name is its own series with (sqft,price) points. is there a way to make one chart with the supplied data?
attached is link to the excel spreadsheet
excel spreadsheet
update from first answer
First you need a table with just one header-row (create a new column for the Arbor .. Values).
The value of this column is the name for the diagram line (instead of serie1 etc.)

Excel : Selecting data and keeping it up to date

Ugh,
I'm not a hero when it comes to Excel...
I have an Excel file with one sheet that contains all data. It's basically a list of tickets, displaying the ticket ID, type, value and 5 dates per row.
I'm looking for a way to have new sheets in the Excel that actually display only tickets of a specific type. So on the sheet Bug Tickets I want to diplay like a filtered sub-set of the raw data in the first sheet.
However, this new sheet needs to refresh it's data automatically when I add new data to the main list.
Is this possible in Excel?
Ok here is a way using a Pivot Tables and Tables.
You should set it up like below: (in the SS, I put the pivot in the same sheet but you can put it in another).
Steps:
You need to create a table out of your data. See here on how to do it.
Then create a Pivot Table out of your table. See here on how to do it
After that you just need to format it the way you want.
The Pivot table will update everytime you add data on your table.
It will display what you've filtered.(in my example I filtered type A).
Notice: Apologies I cannot create a step by step procedure for you(very tedious). I wouldn't have posted this as answer if only it would fit as comment.

Resources