How to reference Data from a query in a different sheet within same workbook.

Chris Slater

New Member
Joined
Dec 30, 2003
Messages
24
Hi Guys,
I am working on a report that pulls in data from another system via a query. The problem is that the data pulls in in the wrong order and cannot be changed. I will call the sheet with this data "DATA".
So what I need to do is to use another sheet for the report which references each column from the "DATA" sheet but in the order required for the report. Also I will need to add cells with formulas at the base of the report for summing the totals.
All this is simple if the content of the "DATA" sheet doesn't change but, as you can imagine, in the real world it's constantly updating which means the number of rows in the "DATA" sheet is increasing/decreasing on a regular basis.
What I need to do is create a sheet that dynamically references the "DATA" sheet in such a way that the content expands or collapses depending on what is happening to the content of the "DATA" sheet. ie it adds or deletes rows automatically without overwriting the formulas at the foot of the report.
Can it be done? And if so I would really appreciate some help from you guys to make it work.
Thanks.
Chris
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach screenshots (not pictures) of your DATA sheet and of the Report sheet showing the order required for the report. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
 
Upvote 0
It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach screenshots (not pictures) of your DATA sheet and of the Report sheet showing the order required for the report. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
I've tried to set this up but it doesn't work
 
Upvote 0
If the XL2BB didn't work, did you try to upload the file to www.box.com or www.dropbox.com?
I don't think that would be relevant because I can't replicate the query that pulls in the data. The problem I'm having is that the data is fluid so is changing all the time.
I need to find a way of referencing it in a way that expands and contracts with the source data and doesn't simple overwrite any summing formulas I may have at the foot of the report.
 
Upvote 0
I can't replicate the query that pulls in the data
I wouldn't need the query. I would need one example Data sheet so I can see how the data is organized and also what the corresponding report would look like based on the Data sheet.
 
Upvote 0
I wouldn't need the query. I would need one example Data sheet so I can see how the data is organized and also what the corresponding report would look like based on the Data sheet.
I've uploaded an example to Dropbox. How do I share it with you?
 
Upvote 0
Mark it for 'Sharing' and you will be given a link to the file that you can post here.
 
Upvote 0
Will the number of columns in the Report always be 25? Will there always be 5 rates?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top