#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CoCoa
 
Posts: n/a
Default sorting

When I have the worksheet filled with different colors to distinguish certain
things it will not sort alphabetically. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Johnson
 
Posts: n/a
Default sorting

Hi CoCoa,
Do you mean the values are not sorting alphabetically or the colors are
not moving when the values are sorted?

How did you color the cells?
Did you just change their fill color or did you use conditional
formatting?
If you just changed their fill color then the colors will not be
affected by the sort.
If you used conditional formatting the colors will change according to
the result of the sort.

Ken Johnson

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Johnson
 
Posts: n/a
Default sorting

Hi CoCoa,
Oops!

I honestly thought that fill color would not be affected by sorting.
After trying it out I have to ever so humbly retract that statement.
Sorry about that.

Ken Johnson

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CoCoa
 
Posts: n/a
Default sorting

I don't understand it either because I need to figure this out for my
business. I think that I might contact microsoft office for a solution. I
still have one free time to contact them.

"Ken Johnson" wrote:

Hi CoCoa,
Oops!

I honestly thought that fill color would not be affected by sorting.
After trying it out I have to ever so humbly retract that statement.
Sorry about that.

Ken Johnson


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Johnson
 
Posts: n/a
Default sorting

Hi CoCoa,
So you want the fill color to be unaffected by the sort?
I'd like to know what you find out?
Ken Johnson



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Johnson
 
Posts: n/a
Default sorting

Hi CoCoa,
If I'm correct in assuming that you want the cells' fill colors not to
be affected by the sorting then one way is to use conditional
formatting.

Say you want A1 to have a yellow fill, then go:

FormatConditional Formatting... select "Formula Is" in left box
type "=OR(NOT(ISBLANK($A$1)), ISBLANK($A$1))" in the right box
(without the speech marks) Click on the Format... buttonselect yellow
fill then click OK.

This over-rides the normal fill color that moves when sorting.

The Formula used is true regardless of what type of data is in A1.

Tedious aye.
Ken Johnson

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Johnson
 
Posts: n/a
Default sorting

Hi CoCoa,
Forget about the unnecessary formula, use "=1=1" instead. This too is
always TRUE and works just as well as "=OR(NOT(ISBLANK($A$1)),
ISBLANK($A$1))". The latter formula is very good for toning up your
finger muscles ;-)
Ken Johnson

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Johnson
 
Posts: n/a
Default sorting

Hi CoCoa,
This should earn me the "Pillock of the Year" award!
All you need to type in the Formula Is box is =1

Also, I wouldn't mind betting this is not really what you are trying to
do anyway!

Ken Johnson

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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
sorting non contiguous ranges gsh20 Excel Discussion (Misc queries) 1 September 8th 05 04:50 PM
Sorting 1, 1A, 2, 2A, 3, 4, 4A, 4B . . . agc1234 Excel Discussion (Misc queries) 6 May 26th 05 08:02 PM
sorting number in ascending order Janice Lee via OfficeKB.com Excel Discussion (Misc queries) 2 April 8th 05 10:31 PM
Adding a KeyID column for sorting Rebecca New Users to Excel 3 February 20th 05 07:09 PM


All times are GMT +1. The time now is 01:11 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"