Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ruth
 
Posts: n/a
Default Sort without messing up formulas

I have a spreadsheet where I would like to sort the results of a certain
column starting at the highest number down to the smallest number, when I do
this using the Z to A button, the last column (which works out a percentage
with a formula I have put in using the cells I wish to sort) gets messed up
and just shows #DIV/0! I think this maybe because it is automatically sorting
the total of the sorted column at the top of the spreadsheet after a sort
instead of the bottom which is in turn messing up where the formula is
looking to work out the percent.
Hope this makes sense and someone can help
Ruth
  #2   Report Post  
Posted to microsoft.public.excel.misc
David McRitchie
 
Posts: n/a
Default Sort without messing up formulas

Hi Ruth,
What do your formulas look like, perhaps use of OFFSET Worksheet Function
http://www.mvps.org/dmcritchie/excel/offset.htm
or perhaps you are sorting a row you should not be sorting.-
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Ruth" wrote in message ...
I have a spreadsheet where I would like to sort the results of a certain
column starting at the highest number down to the smallest number, when I do
this using the Z to A button, the last column (which works out a percentage
with a formula I have put in using the cells I wish to sort) gets messed up
and just shows #DIV/0! I think this maybe because it is automatically sorting
the total of the sorted column at the top of the spreadsheet after a sort
instead of the bottom which is in turn messing up where the formula is
looking to work out the percent.
Hope this makes sense and someone can help
Ruth



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ruth
 
Posts: n/a
Default Sort without messing up formulas

Yes you were right I was sorting the totals row too and putting it at the top
as the largest figure in the column, which in turn messed up the formula
which was pointing to the total row. I have fixed it by putting a blank row
between the last row of figures and the totals row, cos excel kept including
the totals row automatically but with a blank row it stopped doing that.
Thanks for your help
Ruth

"David McRitchie" wrote:

Hi Ruth,
What do your formulas look like, perhaps use of OFFSET Worksheet Function
http://www.mvps.org/dmcritchie/excel/offset.htm
or perhaps you are sorting a row you should not be sorting.-
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Ruth" wrote in message ...
I have a spreadsheet where I would like to sort the results of a certain
column starting at the highest number down to the smallest number, when I do
this using the Z to A button, the last column (which works out a percentage
with a formula I have put in using the cells I wish to sort) gets messed up
and just shows #DIV/0! I think this maybe because it is automatically sorting
the total of the sorted column at the top of the spreadsheet after a sort
instead of the bottom which is in turn messing up where the formula is
looking to work out the percent.
Hope this makes sense and someone can help
Ruth




  #4   Report Post  
Posted to microsoft.public.excel.misc
David McRitchie
 
Posts: n/a
Default Sort without messing up formulas

Hi Ruth,
Thanks for the verification.

You do not need a blank row before the total, that is why I included
a reference to
http://www.mvps.org/dmcritchie/excel/offset.htm

Or maybe you are using that blank row to separate the totals so you
can use the current region Ctrl+Shift+* by selecting only a single
cell -- the practice of sorting from a single cell selection is eventually going to
mess up a spreadsheet big time if you have an empty column.
http://www.mvps.org/dmcritchie/excel/sorting.htm
l---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Ruth" wrote...
Yes you were right I was sorting the totals row too and putting it at the top
as the largest figure in the column, which in turn messed up the formula
which was pointing to the total row. I have fixed it by putting a blank row
between the last row of figures and the totals row, cos excel kept including
the totals row automatically but with a blank row it stopped doing that.
Thanks for your help
Ruth

"David McRitchie" wrote:

Hi Ruth,
What do your formulas look like, perhaps use of OFFSET Worksheet Function
http://www.mvps.org/dmcritchie/excel/offset.htm
or perhaps you are sorting a row you should not be sorting.-
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Ruth" wrote in message ...
I have a spreadsheet where I would like to sort the results of a certain
column starting at the highest number down to the smallest number, when I do
this using the Z to A button, the last column (which works out a percentage
with a formula I have put in using the cells I wish to sort) gets messed up
and just shows #DIV/0! I think this maybe because it is automatically sorting
the total of the sorted column at the top of the spreadsheet after a sort
instead of the bottom which is in turn messing up where the formula is
looking to work out the percent.
Hope this makes sense and someone can help
Ruth






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
Data > Sort function amnesia? Dave D Excel Discussion (Misc queries) 1 November 29th 04 10:44 PM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 2 November 27th 04 01:55 AM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 0 November 26th 04 03:19 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 05:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"