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 Apr 22nd, 2002, 08:22 AM   #1
paulrus
New Member
 
Join Date: Apr 2002
Posts: 15
Default

Can anyone give me an example of how to format a ROW based on a formula? For example - if cell E6= "FL" then shade the entire row 6 Green.

I've seen examples on formatting text, but not entire rows.

Thanks

Paul
paulrus is offline   Reply With Quote
Old Apr 22nd, 2002, 08:27 AM   #2
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

1. Select the entire row
2. Choose the Format | Conditional Formatting... menu command
3. Setup a "Formula Is" condition using =$E6="FL" and applying a green cell pattern.
Mark W. is offline   Reply With Quote
Old Apr 22nd, 2002, 08:28 AM   #3
Audiojoe
Board Regular
 
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
Default

Howdy,

Try the Tip Of The Week on the Mr Excel homepage. Underneath the Gantt part, it shows you what you want to know

Audiojoe
Sometimes I feel like I don't have a partner
Audiojoe is offline   Reply With Quote
Old Apr 22nd, 2002, 08:30 AM   #4
IML
MrExcel MVP
 
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
Default

Quote:
On 2002-04-22 07:22, paulrus wrote:
Can anyone give me an example of how to format a ROW based on a formula? For example - if cell E6= "FL" then shade the entire row 6 Green.
1. Highlight row 6
2. Select conditional format from the format menu
3. change drop down to formula.
4. enter formula
=$e$6="fl"
5. Click format box and choose your green

good luck


[ This Message was edited by: IML on 2002-04-22 07:31 ]
IML is offline   Reply With Quote
Old Apr 22nd, 2002, 08:31 AM   #5
paulrus
New Member
 
Join Date: Apr 2002
Posts: 15
Default

I'm sorry - my question wasn't specific enough. What I wanted to do was conditionally format it not only based on whether or not E6= "FL", but I want to evaluate all of E:E and format rows based on whether or not the state listed is FL, HI, MS, NJ, and so on. Basically I have a list of states, if E:E = one of the names on that list I want to change the color of the row so it's easy for me to spot those rows.

I'm still learning so forgive me for the newbie questions.
paulrus is offline   Reply With Quote
Old Apr 22nd, 2002, 08:35 AM   #6
IML
MrExcel MVP
 
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
Default

you could name your list "states" via the name box.

following the conditional formmating steps and use the formula
=COUNTIF(states,A6)

in cell a6.

Select a6, use the format painter and then select all of row 6.
IML is offline   Reply With Quote
Old Apr 22nd, 2002, 08:43 AM   #7
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Make that...

=COUNTIF(states,$E6)
Mark W. is offline   Reply With Quote
Old Apr 22nd, 2002, 09:02 AM   #8
paulrus
New Member
 
Join Date: Apr 2002
Posts: 15
Default

Well.. this isn't working, but here's what I was trying:

=COUNTIF(states({"FL", "HI", "MS", "NJ", "SC", "DE", "KY", "LA", "MA", "NM", "PR", "VT", "WA", "WV", "WI"}),4:52)

Basically between rows 4:52 if states is one of those listed I wanted to change the color of the row.

This is a bit frustrating....
paulrus is offline   Reply With Quote
Old Apr 22nd, 2002, 09:05 AM   #9
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Quote:
On 2002-04-22 08:02, paulrus wrote:
Well.. this isn't working, but here's what I was trying:

=COUNTIF(states({"FL", "HI", "MS", "NJ", "SC", "DE", "KY", "LA", "MA", "NM", "PR", "VT", "WA", "WV", "WI"}),4:52)

Basically between rows 4:52 if states is one of those listed I wanted to change the color of the row.

This is a bit frustrating....
You can't use an array constant for Conditional Formatting or Data Validation. List your states in a cell range, and use...

=COUNTIF(cell_range,$E6)

...where cell_range is the cell range containing your state abbreviations.

[ This Message was edited by: Mark W. on 2002-04-22 08:07 ]
Mark W. is offline   Reply With Quote
Old Apr 22nd, 2002, 09:09 AM   #10
paulrus
New Member
 
Join Date: Apr 2002
Posts: 15
Default

Ok.. I'm getting it...



[ This Message was edited by: paulrus on 2002-04-22 08:12 ]
paulrus 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 11:25 AM.


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