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 Feb 24th, 2002, 08:00 AM   #1
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Good Morning,

I have in row 1 dates, 1,2,3 etc.
In row 2 I have days, mon, tue, wed, that corresponds to row 1. In row 3, I would like to shade days off, and not necessarily sat/sun, but also mon/tue etc. The month does not matter. Can the shading be done by using a condtional format, instead of clicking the cells and formatting them manually? Mahalo.....

Brian



[ This Message was edited by: Brian from Maui on 2002-02-24 07:00 ]
Brian from Maui is offline   Reply With Quote
Old Feb 24th, 2002, 08:38 AM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

Quote:
On 2002-02-24 07:00, Brian from Maui wrote:
Good Morning,

I have in row 1 dates, 1,2,3 etc.
In row 2 I have days, mon, tue, wed, that corresponds to row 1. In row 3, I would like to shade days off, and not necessarily sat/sun, but also mon/tue etc. The month does not matter. Can the shading be done by using a condtional format, instead of clicking the cells and formatting them manually? Mahalo.....

Brian



[ This Message was edited by: Brian from Maui on 2002-02-24 07:00 ]
You can have at most 3 conditions/colors thru Format|Conditional Formatting. There is some VBA code to go beyond that limit, which you can uncover from the Archives.

Aladin
Aladin Akyurek is offline   Reply With Quote
Old Feb 24th, 2002, 08:43 AM   #3
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Aladin,

As you well know, my knowledge of formulas and Excel is very limited, doing VBA codes is something I'd like to avoid. I'm trying different IF functions.

Brian
Brian from Maui is offline   Reply With Quote
Old Feb 24th, 2002, 08:45 AM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

Quote:
On 2002-02-24 07:43, Brian from Maui wrote:
Aladin,

As you well know, my knowledge of formulas and Excel is very limited, doing VBA codes is something I'd like to avoid. I'm trying different IF functions.

Brian
If 3 colors are sufficient for your purpose, it's doable with ordinary cond format.
Aladin Akyurek is offline   Reply With Quote
Old Feb 24th, 2002, 08:57 AM   #5
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Aladin,

Actually, I only need one color. And only two conditons. If a2="mon and b2="tue, then color a3 and b3, but my range is from a2:o2. Make sense. I'm trying a countif and if functions.

Brian

[ This Message was edited by: Brian from Maui on 2002-02-24 07:59 ]
Brian from Maui is offline   Reply With Quote
Old Feb 24th, 2002, 09:07 AM   #6
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

Quote:
On 2002-02-24 07:57, Brian from Maui wrote:
Aladin,

Actually, I only need one color. And only two conditons. If a2="mon and b2="tue, then color a3 and b3. Make sense. I'm trying a countif and if functions.

Brian
Select A3:B3.
Activate Format|Conditional Formatting.
Choose Formula Is for Condition 1.
Enter in the Formula Box:

=AND($A$2="mon",$B$2="tue")

Activate Format.
Choose a color on the Patterns tab.
Click OK, OK.
Aladin Akyurek is offline   Reply With Quote
Old Feb 24th, 2002, 09:25 AM   #7
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Aladin,

The =and doesn't work. I've used in a3
countif(a2:o2,"mon") and that works for one cell, but copy and pasting along the rows, colors the whole row.

Brian
Brian from Maui is offline   Reply With Quote
Old Feb 24th, 2002, 09:36 AM   #8
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

Quote:
On 2002-02-24 08:25, Brian from Maui wrote:
Aladin,

The =and doesn't work. I've used in a3
countif(a2:o2,"mon") and that works for one cell, but copy and pasting along the rows, colors the whole row.

Brian
I notice you're changing your specs.

What do you want exactly?

Is it, If a2="mon" and b2="tue", (a) color a3 and b3 as you intially stated or (b) color row 3?

If (b), select row 3 by clicking the row indicator, apply the proc I described.

Aladin Akyurek is offline   Reply With Quote
Old Feb 24th, 2002, 09:47 AM   #9
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Aladin,

What I want is:
if a2=mon,b2=tue, color a3 and b3.
Then I need to drag the format for the whole work month.
I've selected a3 and b3, put the formula in, selected a color, but the cells are still blank.

Brian
Brian from Maui is offline   Reply With Quote
Old Feb 24th, 2002, 12:48 PM   #10
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

Hi brian how the coast sunny i bet! Rain and RAIN!

Lokk if you need some VBA code can i help i have 25 or so conditions that work at a snal subject to col data i wanted line / row coloured...

If so email me at my work you have me email and send the sheet ill have a look and sed back

Rdgs

__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK 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:14 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