Linking data from a table into a worksheet

%3CLINGO-SUB%20id%3D%22lingo-sub-1351324%22%20slang%3D%22en-US%22%3ELinking%20data%20from%20a%20table%20into%20a%20worksheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1351324%22%20slang%3D%22en-US%22%3E%3CP%3EHi!%20I%20want%20to%20link%20data%20(not%20cells)%20that%20I%20have%20in%20a%20table%20to%20another%20worksheet.%20Making%20a%20reference%20to%20a%20cell%20in%20the%20source%20table%20does%20not%20work%20because%20if%20I%20manipulate%20the%20table%20by%20using%20filters%20the%20destination%20worksheet%20keeps%20pointing%20to%20the%20same%20original%20cell%20that%20is%20displaying%20a%20different%20value%20now.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20table%20with%20oil%20output%20values%20from%20different%20fields%20and%20for%20different%20years.%20I%20need%20to%20work%20with%20a%20particular%20oil%20field%20in%20a%20worksheet%20using%20output%20values%20of%20that%20particular%20field.%20So%2C%20I%20want%20to%20link%20my%20worksheet%20to%20the%20database%20table%20rather%20than%20duplicate%20the%20data%20by%20copying%20and%20pasting%20from%20the%20table%20to%20the%20worksheet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1351324%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1351479%22%20slang%3D%22en-US%22%3ERe%3A%20Linking%20data%20from%20a%20table%20into%20a%20worksheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1351479%22%20slang%3D%22en-US%22%3EYou%20can%20use%20Get%20and%20transform%20and%20use%20only%20connection%20to%20the%20data%20instead%20of%20copying%20and%20pasting.%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

Hi! I want to link data (not cells) that I have in a table to another worksheet. Making a reference to a cell in the source table does not work because if I manipulate the table by using filters the destination worksheet keeps pointing to the same original cell that is displaying a different value now.

 

I have a table with oil output values from different fields and for different years. I need to work with a particular oil field in a worksheet using output values of that particular field. So, I want to link my worksheet to the database table rather than duplicate the data by copying and pasting from the table to the worksheet.

2 Replies
Highlighted
You can use Get and transform and use only connection to the data instead of copying and pasting.
Highlighted
If you have values filtered, those cells which are being filtered out (not visible) are still there, and references will still point there and be completely valid. If you're wanting to return only the visible cells, that is a whole other ball of wax. It can certainly be done, but the formula structuring is a little complex.

There are various ways to accomplish what you're trying to do. It really all depends on what data you have, where it's located, and how it's structured.

When you say "database", what kind of database is it? SQL Server? MySQL? PosgreSQL? AS400? Or do you mean another Excel workbook?

When you say "I need to work with ... output values of that particular field" what does that mean exactly? Do you want to aggregate that data? Use it for reference only? Plot charts to it?

When you say "I want to link my worksheet to the database table" what does that mean? Almost all data from a database (assuming you mean a proper database, not an Excel workbook) should be a copy of the data. It's generally dangerous and dissuaded to work with actual master data. Having some layer protects your data.

Please be entirely specific in where your data is and what you need done with it. Chances are we can recommend a solution which is best.