Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
on-a-mission
 
Posts: n/a
Default sort columns, but not shading


i have a worksheet with data in column A, every row is either grey or
white shading. i always want to keep the shading alterante grey/white

a1: 7 (white shading)
a2: 4 (grey shading)
a3: 3 (white shading)
a4: 5 (grey shading)
a5: 1 (white shading)
a6: 2 (grey shading)

when i sort assending it mucks up the shading becuase it moves the data
as well as the shaded cell.
is there any way of keeping the cells locked and just sort the data???


--
on-a-mission
------------------------------------------------------------------------
on-a-mission's Profile: http://www.excelforum.com/member.php...o&userid=31630
View this thread: http://www.excelforum.com/showthread...hreadid=513248

  #2   Report Post  
Posted to microsoft.public.excel.newusers
David McRitchie
 
Posts: n/a
Default sort columns, but not shading

What you want to use is Conditional Formatting.

For Color Banding the best place to read about it is at Chip Pearson's
basically to band even rows (leave header row alone) =MOD(ROW(),2)=0
but you will see formulas for any number of rows banded,
and which row to start banding color on at
Color Banding With Conditional Formatting
http://www.cpearson.com/excel/banding.htm

If you were using Filtering there is a different formula you can use, but
you have to have every cell in column A used of those rows that are showing
so it is not as general purpose but =MOD(SUBTOTAL(3,$A$1:$A1),2)
would band alternate rows even with filtering. . You must have activecell on A1
when entering formula.
Conditional Formatting: Color Banding
http://www.mvps.org/dmcritchie/excel....htm#colorband

---
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

"on-a-mission" wrote ...
i have a worksheet with data in column A, every row is either grey or
white shading. i always want to keep the shading alterante grey/white



  #3   Report Post  
Posted to microsoft.public.excel.newusers
Pete_UK
 
Posts: n/a
Default sort columns, but not shading

Highlight all the cells and set the shading to No Fill, then with the
cells still highlighted click Format | Conditional Formatting, then
select "Formula is" in the first drop down, then enter:

=MOD(ROW(),2)=0

in the next panel. Then click on Format and Patterns (tab) and select
the shade of grey you require.

This will give you alternate white and grey shading which is unaffected
by sorting the data.

Hope this helps.

Pete

  #4   Report Post  
Posted to microsoft.public.excel.newusers
gls858
 
Posts: n/a
Default sort columns, but not shading

on-a-mission wrote:
i have a worksheet with data in column A, every row is either grey or
white shading. i always want to keep the shading alterante grey/white

a1: 7 (white shading)
a2: 4 (grey shading)
a3: 3 (white shading)
a4: 5 (grey shading)
a5: 1 (white shading)
a6: 2 (grey shading)

when i sort assending it mucks up the shading becuase it moves the data
as well as the shaded cell.
is there any way of keeping the cells locked and just sort the data???


This doesn't really lock the shading but it makes it really easy to redo.
Look at a freebie program called ASAP Utilities

http://www.asap-utilities.com/

There's a selection that lets you color every nth row or column. Lots of
other useful tools included in the package.

gls858
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
Group and sort on two columns Marianne Excel Discussion (Misc queries) 1 January 26th 06 09:56 PM
How do I sort numbers in a table (ie. rows & columns)? Twinkle17 Excel Discussion (Misc queries) 2 December 2nd 05 04:55 AM
DATE SORT BY COLUMNS Sue Excel Worksheet Functions 0 January 13th 05 06:03 AM
Excel Sort function should not sort the cell formatting! Lisa D.N.1 Excel Worksheet Functions 1 December 28th 04 08:37 PM
ALLOW ROW 1 AS HEADER ROW... NOT PART OF DATA SORT OF ANY COLUMNS. bro. Billy New Users to Excel 4 December 11th 04 12:01 AM


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