LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Sorting with formulaically "empty" cells

Hello,
I have a table of data, and one of the columns generates a percentage.
Since it will sometimes give a DIV/0 error, the formula that generates
the percentage is:

=IF(SUM(I22:J22)=0,"",I22/SUM(I22:J22))

That way, if the divisor would be 0, it leaves the cell "empty."

However, when I then sort by this column in descending order, all of
the rows with "empty" percentages float to the top of the list. Below
them, the ones with data sort correctly.

I can change the formula to

=IF(SUM(I22:J22)=0,0,I22/SUM(I22:J22))

but that creates confusion between the ones that have no percentage and
the ones that legitimately have a percentage of zero.

Is there a way that I can have a truly empty cell instead of one with
"" in it? If so, would that help the sort? Is there another way I can
sort it? Any advice would be greatly appreciated...

Thanks to all.

Mike

 
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
sorting master sheet messes up cells in other sheets linked to it Kt Excel Worksheet Functions 1 October 30th 05 12:25 PM
sorting master sheet messes up cells in other sheets linked to it Kt Excel Worksheet Functions 0 October 30th 05 10:36 AM
identically size merged cells for sorting rows julieanne12 Excel Discussion (Misc queries) 1 August 24th 05 11:26 AM
sorting cells according to all cells in column A Jootje Excel Worksheet Functions 2 August 16th 05 01:40 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


All times are GMT +1. The time now is 02:18 PM.

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

About Us

"It's about Microsoft Excel"