ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Excel formulas pulling from another worksheet changes when sorted (https://www.excelbanter.com/excel-worksheet-functions/219110-excel-formulas-pulling-another-worksheet-changes-when-sorted.html)

CC

Excel formulas pulling from another worksheet changes when sorted
 
Excel spreadsheet has multiple worksheet tabs. One worksheet has formulas
that pull data from another worksheet. This works fine until you sort the
data worksheet which changes the values on the formula worksheet. How can
you keep the data the same and still be able to re-sort the data worksheet?

JBeaucaire[_90_]

Excel formulas pulling from another worksheet changes when sorted
 
That would require some information about the formulas that are getting
messed up. If you want to be able to freely sort raw data on one sheet and
the summary sheets USING the data still report properly, you have to
structure the formulas to go and find the data needed.

So, a simple =Sheet2!A3 won't work, sorting will change the entry in A3.

Typically, to keep it working you will use a VLOOKUP or LOOKUP or
INDEX(MATCH() on a piece of data that matches in an adjacent column.

For instance, if you're trying to pull over the Address that matches a Name,
you'd "VLOOKUP" the name and pull back the address from the same row wherever
it's found.

Here's a nice tutorial on using VLOOKUP to find data:

http://www.contextures.com/xlFunctions02.html

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"CC" wrote:

Excel spreadsheet has multiple worksheet tabs. One worksheet has formulas
that pull data from another worksheet. This works fine until you sort the
data worksheet which changes the values on the formula worksheet. How can
you keep the data the same and still be able to re-sort the data worksheet?



All times are GMT +1. The time now is 07:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com