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 24th, 2002, 06:12 AM   #1
technix
Board Regular
 
Join Date: May 2002
Location: Grand Rapids, MI
Posts: 326
Default

I would like to change the color of a whole line based on a cell value, I used conditional format and was able to get the cell to change color but I would like to get the whole line that color, e.g. Cell f1 = cash then a1:q1 yellow, f1= warranty then a1:q1 = green, So I can visually look through many lines and see. If there is a way to do this with the conditional format please explain as I have not figured it out yet, IF this is to be done with VBA please be detailed as I am just learning it. Any help that you may be able to offer is greatly appreciated.

Thank you all
technix is offline   Reply With Quote
Old May 24th, 2002, 06:19 AM   #2
Mudface
MrExcel MVP
 
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
Default

Select all the cells you want to be coloured (entire row if wanted). Then click on Format- Conditional Formatting and enter this as a formula: -

=$F$1="Warranty"

Select your formatting and then do the same for your "cash" entry.
Mudface is offline   Reply With Quote
Old May 24th, 2002, 06:35 AM   #3
technix
Board Regular
 
Join Date: May 2002
Location: Grand Rapids, MI
Posts: 326
Default

Thank you that worked, One more question regarding this,, is there an easier way to have this conditional format for each row than to do a new conditional for each, e.g.

I have the two conditions cash and warranty yellow and green for a3:q3 based on g3 and i want this to be the conditions on each line in a4:q4 through a50:q50. Do i need to do the conditional format on each line or can I just say if g4 use g3 conditional or soemthing like that.

Thank you
technix is offline   Reply With Quote
Old May 24th, 2002, 06:41 AM   #4
Mudface
MrExcel MVP
 
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
Default

Select the rows or area that you want to be coloured, go through the above, but this time enter: -

=$G3="Warranty"

where 3 is the starting row for your area. Because we're now using relative row references, this will colour each line in your selection when the condition is met.
Mudface is offline   Reply With Quote
Old May 24th, 2002, 07:41 AM   #5
technix
Board Regular
 
Join Date: May 2002
Location: Grand Rapids, MI
Posts: 326
Default

the =g3="warranty" even though I select a3:q3 only colors a3 so I went back to the $G$3 however, that isnt fixing my secondary problem.

I want a3:q3 to color yellow and green based on g3 being cash and warranty. which you have solved for me, again thank you i was getting so frustrated. I want a4:q4 to color the same based on g4 and so on through a53:q53 based on g5,6, etc. Is there an easy way to do it or do i need to highlight a4:q4 click conditional format then =$G$4="cash" yellow and condition 2 green for each line

Thank you in advance
technix is offline   Reply With Quote
Old May 24th, 2002, 08:39 AM   #6
technix
Board Regular
 
Join Date: May 2002
Location: Grand Rapids, MI
Posts: 326
Default

Im sorry, I either misread your =$g3="warranty" or typed it in wrong, That in fact did it the way I want, Thank you

technix 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 03:20 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