RE: Sorting data, but not the formulae

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The values you are sorting are the results of the formulas. If you sort the
values returned by the formulas, you are going to sort the formulas. Here are
a couple of workarounds which may work for you:

- Have the retrieval formulas in a column outside your second table. Then
have your macro copy the retrieved data as values to the second table and
sort it there only.

- In an unused column adjoining your second table, add sequential numbers to
the rows containing your formulas. Then you can reset the formulas into their
original order by sorting using the sequence numbers.

Hope this helps,

Hutch

"Harry123" wrote:

I have two tables. Data is entered into the first table, for example 5, 2,
3, 4, 1 in A2-A6. This data is then copied, using formulae, into my second
table. I then have a macro that will sort the data from low to high.
Obviously, the data changes from 5, 2, 3, 4, 1 to 1, 2, 3, 4, 5. However, the
formulae that I used to copy the data from table 1 to table 2 also moves with
the data. I want the formulae to stay in the cell I typed it into when I sort
the column. Is there a way to do that?
.



Relevant Pages

  • Re: What about an EXPLICIT naming scheme for built-ins?
    ... But having sortedto return a iterator ... sortedreturns a brand new sorted sequence. ... -- sorting long sequences to use only a few of the first elements. ... if you need to sort a long list to get the top 10 elements. ...
    (comp.lang.python)
  • Re: Auto sort in real time
    ... > Is it possible to auto sort data so that changes update themselves ... > Bernard Jordan - Liverpool UK ... in the columnnext to the data that changes to stay in sequence, ... record a macro that updates a sort and attach it to a button that I can ...
    (microsoft.public.excel.misc)
  • Re: A Fast sorting algorithm for almost sorted data
    ... far my compressor has potential but is nowhere near ready. ... It does however make heavy use of sorting. ... which I am currently calling Run sort. ... entire selected run can be added to the sorted output array. ...
    (comp.compression)
  • Re: Solution for sorting an array alpha-numerically
    ... strings up into groups and sorting the groups seperately, ... > so that numeric and alphabetic data sort as seperate groups. ... To the same project as the web page, add the class AlphaNumCompare() ...
    (microsoft.public.dotnet.general)
  • Re: how fast can I sort on mainframe (using DFSORT)?
    ... Since I joined the team as the performance lead a couple years ago, ... Frank now defers these types of questions to me. ... I have been out of the sorting business for a while, ... Writing to sort work files should not be the problem, ...
    (bit.listserv.ibm-main)