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 Mar 14th, 2002, 08:12 AM   #1
Guest
 
Posts: n/a
Default

I have column A conditional formatted as =D1=1, but I need to be able to compare it to 10 different number in D1, how can this be done, I am using excel '97. thanks
  Reply With Quote
Old Mar 14th, 2002, 08:16 AM   #2
Guest
 
Posts: n/a
Default

what are the 10 different numbers?
  Reply With Quote
Old Mar 14th, 2002, 08:34 AM   #3
Guest
 
Posts: n/a
Default

1-10, 1,2,3,4,5,6,7,8,9,10,
  Reply With Quote
Old Mar 14th, 2002, 09:15 AM   #4
Tommy Bak
Board Regular
 
Join Date: Feb 2002
Location: Guderup, Denmark
Posts: 287
Default

insert this in conditions
=AND(D1>=1;D1<=10)
Tommy Bak is offline   Reply With Quote
Old Mar 14th, 2002, 09:34 AM   #5
Guest
 
Posts: n/a
Default

I need different conditions for each number
  Reply With Quote
Old Mar 14th, 2002, 09:52 AM   #6
lenze
MrExcel MVP
 
lenze's Avatar
 
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
Default

You will need VBA for more than Three conditions. I seem to recall that Dave Hawley had some code for this on his web site at OZGRID.com
lenze is offline   Reply With Quote
Old Mar 14th, 2002, 11:41 AM   #7
Guest
 
Posts: n/a
Default

looked on OZGRID.com can't find it
  Reply With Quote
Old Mar 14th, 2002, 12:10 PM   #8
Tommy Bak
Board Regular
 
Join Date: Feb 2002
Location: Guderup, Denmark
Posts: 287
Default

Do you want the whole column to change color when D1 changes or do you want
A1 to change when D1 changes
A2 to change when D2 changes
and so on
Tommy Bak is offline   Reply With Quote
Old Mar 14th, 2002, 12:26 PM   #9
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,065
Default

Hi

Ok i do not like to post my VBA Scripted codes as most dont understand my odfd programming, However this i have developwed over time, to colour the whole row which i wanted subject to Col m anywher reading K, thisits does FAST!

I owe Dave Hawley a big ti[p of the hat as really he set the seeds on this one and this is his style of programming, it never fails me, i use this bit MUCH bigger 25 conditions not just row colour easy to convert or edit to WHATEVER.

Everopne will what this its that goos just add section but section to add conditions as you like,

Cheers Dave Hawley http://www.ozgrid.com

.........
Sub Rows_Color()
On Error GoTo Z
Sheets("Sheet1").Select
Range("A1:R500").Select
Selection.Interior.ColorIndex = xlNone
Range("A1").Select
Application.ScreenUpdating = False
Rw = 1
'>>>>>>>>>>>>>>>>>>>>
With Sheets("Sheet1") 'Jack in the UK
For K = 1 To WorksheetFunction.CountIf(.Columns("M:M"), "K")
Set RKateFoundCell = .Columns("M:M").Find(What:="K", _
After:=.Cells(Rw, 13))
RKFoundCell.EntireRow.Interior.ColorIndex = 4
Rw = RKFoundCell.Row
Next K
End With
'>>>>>>>>>>>>>>>>>>>>>

'>>>>>>>>>>>>>>>>>>>>>
Columns("R:IV").Select
Selection.Interior.ColorIndex = xlNone

Application.Goto Reference:="R1C14"
Application.ScreenUpdating = True
Z:
End Sub
..............

These is the base to any conditional format problems !






__________________
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
Old Mar 14th, 2002, 12:51 PM   #10
Guest
 
Posts: n/a
Default

Tommy i need
A1 to change when D1 changes
A2 to change when D2 changes
and so on
Thanks
  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 02:08 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