Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Protect formulas during sort

Excel 2000.
In a Pareto charting effort I am importing defect data from an Access
database using an excel template, then to the side I have a list of the
defects and a column that uses €śCOUNTIF€ť to summarize the data for each
defect. The data is then sorted in descending order by the €śCount€ť column
and the top ten defects are used to create a bar chart. The template is kept
on our intranet so that it can be accessed by multiple users.
The problem is that when I sort the summary column that uses the COUNTIF
function the cell references in my formulas change. If a row moves down
during the sort it loses the reference for the upper cells.

Example:
=COUNTIF(C2:F1000,"Bond Wire Lifted")
Changes after sort to;
=COUNTIF(C4:F1002,"Bond Wire Lifted")

I just lost the top two rows of data from the sort.
If I protect the cells the sort doesn't work. Is there a way to protect
only the formulas in a cell so that the results can be accurately sorted?


  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Protect formulas during sort

use the absolute reference
=COUNTIF(C$2:F$1000,"Bond Wire Lifted")

"MMMM" wrote:

Excel 2000.
In a Pareto charting effort I am importing defect data from an Access
database using an excel template, then to the side I have a list of the
defects and a column that uses €śCOUNTIF€ť to summarize the data for each
defect. The data is then sorted in descending order by the €śCount€ť column
and the top ten defects are used to create a bar chart. The template is kept
on our intranet so that it can be accessed by multiple users.
The problem is that when I sort the summary column that uses the COUNTIF
function the cell references in my formulas change. If a row moves down
during the sort it loses the reference for the upper cells.

Example:
=COUNTIF(C2:F1000,"Bond Wire Lifted")
Changes after sort to;
=COUNTIF(C4:F1002,"Bond Wire Lifted")

I just lost the top two rows of data from the sort.
If I protect the cells the sort doesn't work. Is there a way to protect
only the formulas in a cell so that the results can be accurately sorted?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Protect formulas during sort

Thank You!

"bj" wrote:

use the absolute reference
=COUNTIF(C$2:F$1000,"Bond Wire Lifted")

"MMMM" wrote:

Excel 2000.
In a Pareto charting effort I am importing defect data from an Access
database using an excel template, then to the side I have a list of the
defects and a column that uses €śCOUNTIF€ť to summarize the data for each
defect. The data is then sorted in descending order by the €śCount€ť column
and the top ten defects are used to create a bar chart. The template is kept
on our intranet so that it can be accessed by multiple users.
The problem is that when I sort the summary column that uses the COUNTIF
function the cell references in my formulas change. If a row moves down
during the sort it loses the reference for the upper cells.

Example:
=COUNTIF(C2:F1000,"Bond Wire Lifted")
Changes after sort to;
=COUNTIF(C4:F1002,"Bond Wire Lifted")

I just lost the top two rows of data from the sort.
If I protect the cells the sort doesn't work. Is there a way to protect
only the formulas in a cell so that the results can be accurately sorted?


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
Protect worksheet and still allow user to sort data J9 Excel Worksheet Functions 3 July 24th 06 02:08 AM
protect a sort range Craig Excel Discussion (Misc queries) 2 July 3rd 06 01:45 AM
Sort Protect Sheet nvermilye Excel Discussion (Misc queries) 1 February 8th 06 05:28 PM
How to protect data in rows from being seperated during sort tired of finding my data scrambled Excel Discussion (Misc queries) 2 July 31st 05 09:25 PM
How to password protect a cell but still be able to sort ? GW Trainer Excel Worksheet Functions 1 April 19th 05 10:57 PM


All times are GMT +1. The time now is 09:14 AM.

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"