MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 15th, 2002, 03:23 PM   #1
SpreadsheetMaster
New Member
 
Join Date: May 2002
Posts: 6
Default

I have a spreadsheet that I have incorporated the auto filter function on. What I need to know is when I have a situation where I have filtered my data for specific information, how can I format the data without formatting the data that is hidden due to it being filtered. I have a very light grey background color selected for every other line of information to make it easier to view the data accross the page when printed for a report. But when I filter the spreadsheet it throws the background colors out of sync and this report is way too large to individually adjust each line's background color. If I copy and then "paste special" the background colors, it still does not work out because the hidden rows are formatted as well.

Thanks
SpreadsheetMaster is offline   Reply With Quote
Old May 15th, 2002, 03:29 PM   #2
Juan Pablo González
MrExcel MVP
 
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
Default

I'm not sure what you mean, but you may need to select only "visible" cells...

F5, Special, Visible cells (With the range selected)
__________________
Regards,

Juan Pablo González
http://www.juanpg.com
Juan Pablo González is offline   Reply With Quote
Old May 15th, 2002, 03:30 PM   #3
invisigirl
Board Regular
 
Join Date: Mar 2002
Location: Oregon
Posts: 130
Default

When you have your info filtered like you want it, highlight the columns you want formatted, and Ctrl G (Goto). Click "Special," then select "Visible cells only." With the cells still highlighted, apply your formatting.

Hope that helps!
invisigirl is offline   Reply With Quote
Old May 15th, 2002, 03:32 PM   #4
sen_edp
Board Regular
 
sen_edp's Avatar
 
Join Date: Mar 2002
Location: Hellas
Posts: 553
Default

hello Master

when autofiltering
press f5 ->goto->special->select visible cells only

and apply the format you wish
__________________
Best Regards
Andreas
sen_edp is offline   Reply With Quote
Old May 15th, 2002, 07:09 PM   #5
SpreadsheetMaster
New Member
 
Join Date: May 2002
Posts: 6
Default

Thanks everyone for your replies. I appreciate it.

SpreadsheetMaster is offline   Reply With Quote
Old May 16th, 2002, 01:28 PM   #6
SpreadsheetMaster
New Member
 
Join Date: May 2002
Posts: 6
Default

I've run into a problem. When I follow the instructions above and try to paste the formats only for the selected cells I get a window that states "That command cannot be used on multiple selections".

Any ideas?

Thanks
SM
SpreadsheetMaster is offline   Reply With Quote
Old May 16th, 2002, 01:35 PM   #7
invisigirl
Board Regular
 
Join Date: Mar 2002
Location: Oregon
Posts: 130
Default

Hmm. You shouldn't have to be copying any formats. After you autofilter, select the cells you're going to want to format. All of them. THEN do the F5, Special, Visible cells only thing. Don't click off of your selected range. Go to Format, Cells, and do your formatting in there. You should be okay.
invisigirl is offline   Reply With Quote
Old May 16th, 2002, 01:38 PM   #8
Corticus
Board Regular
 
Corticus's Avatar
 
Join Date: Apr 2002
Location: Sarasota, FL
Posts: 1,539
Default

Instead of worrying about sorting right, you could use conditional formatting to shade alternating rows:

=MOD(ROW()-Rw,N*2)+1<=N This is for odd banding

=MOD(ROW()-Rw,N*2)+1>=N This is for even banding

Rw = Starting Row Number

N = Number of rows in each band

(thanks to Ienze)

Corticus
Corticus is offline   Reply With Quote
Old May 17th, 2002, 08:55 AM   #9
SpreadsheetMaster
New Member
 
Join Date: May 2002
Posts: 6
Default

invisigirl,

Here is why I have to copy formats. The spreadsheet covers 20 or so columns and thousands of rows. I have every other row formatted with a modified background color that is a very, very light grey so that when the data is printed, the individual can easily follow the data accross the page. If also provides a nice clean look on the report. But when I autofilter the spreadsheet, the background colors get out of sequence. In other words, I end up with a couple of rows with the grey background next to each other and then the next one might be without background color, etc. So I have to copy the formats (background color) and then try to repaste over the filter data to get the correctly formatted background colors.

Corticus,

I like your formulas for conditional formatting. Will they automatically adjust for filter data or will I have to plug the formulas in after the data is filtered?

Thanks,
SpreadsheetMaster (not)
SpreadsheetMaster is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:44 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes